internetee-registry/app/views/admin/contacts/index.haml
2014-09-26 14:34:01 +03:00

29 lines
861 B
Text

.row
.col-sm-12
%h2.text-center-xs= t('shared.contacts')
= render 'admin/contacts/partials/search'
%hr
.row
.col-md-12
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%thead
%tr
%th{class: 'col-xs-2'}
= sort_link(@q, 'name', t('shared.name'))
%th{class: 'col-xs-2'}
= sort_link(@q, 'code', t('shared.code'))
%th{class: 'col-xs-2'}
= sort_link(@q, 'ident', t('shared.identity_code'))
%th{class: 'col-xs-2'}
= sort_link(@q, 'email', t('shared.email'))
%tbody
- @contacts.each do |x|
%tr
%td= link_to(x, admin_contact_path(x))
%td= x.code
%td= x.ident
%td= x.email
.row
.col-md-12
= paginate @contacts