42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
h1 Listing contacts
|
|
|
|
table.table.table-condensed.table-striped
|
|
thead
|
|
tr
|
|
td ID
|
|
th Client
|
|
th Name
|
|
th Phone
|
|
th Email
|
|
th Last contact
|
|
th Note
|
|
th Region
|
|
th Department
|
|
th Postal code
|
|
th Address
|
|
th
|
|
th
|
|
th
|
|
|
|
tbody
|
|
- @contacts.each do |contact|
|
|
tr
|
|
td = contact.id
|
|
td = link_to contact.client.name, contact.client
|
|
td = link_to contact.name, contact
|
|
td = contact.phone
|
|
td = contact.email
|
|
td = contact.last_contact
|
|
td = contact.note
|
|
td = contact.region
|
|
td = contact.department
|
|
td = contact.postal_code
|
|
td = contact.address
|
|
td = link_to '', contact, class: 'glyphicon glyphicon-eye-open'
|
|
td = link_to '', edit_contact_path(contact), class: 'glyphicon glyphicon-pencil'
|
|
td = link_to '', contact, data: {:confirm => 'Are you sure?'}, :method => :delete, class: 'glyphicon glyphicon-remove-sign'
|
|
|
|
br
|
|
|
|
= link_to 'New Contact', new_contact_path, class: 'btn btn-sm btn-default'
|