.row .col-sm-6 %h2.text-center-xs= t('shared.contacts') = render 'admin/contacts/partials/search' .col-sm-6 %h2.text-right.text-center-xs = link_to(t('shared.create_new_contact'), new_client_contact_path, class: 'btn btn-primary') %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, [:client, x]) %td= x.code %td= x.ident %td= x.email .row .col-md-12 = paginate @contacts