mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
29 lines
861 B
Text
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
|