MorningPeak/app/views/contacts/show.html.slim
2015-07-28 01:37:51 +02:00

41 lines
765 B
Plaintext

h1.page-header Show contact
p
strong Client:
= link_to @contact.client.name, @contact.client
p
strong Name:
= @contact.name
p
strong Phone:
= @contact.phone
p
strong Email:
= @contact.email
p
strong View at:
= @contact.view_at
p
strong Note:
= @contact.note
p
strong Region:
= @contact.region
p
strong Department:
= @contact.department
p
strong Postal code:
= @contact.postal_code
p
strong Address:
= @contact.address
= link_to 'Edit', edit_contact_path(@contact), class: 'btn btn-sm btn-default'
= link_to 'Back', contacts_path, class: 'btn btn-sm btn-default'
#comments.container-fluid
h2.page-header Comments
= render partial: "/comments/about", locals: {commentable: @contact}
= render partial: "/comments/form"