mirror of
https://github.com/internetee/registry.git
synced 2025-07-04 10:13:34 +02:00
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
.row
|
|
.col-sm-6
|
|
%h2.text-center-xs= t('shared.contacts')
|
|
.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
|
|
= search_form_for [:client, @q], html: { class: 'form-horizontal' } do |f|
|
|
.col-md-11
|
|
.form-group
|
|
= f.search_field :name_cont, class: 'form-control'
|
|
.col-md-1.text-right.text-center-xs
|
|
.form-group
|
|
%button.btn.btn-primary
|
|
|
|
%span.glyphicon.glyphicon-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, [:client, x])
|
|
%td= x.code
|
|
%td= x.ident
|
|
%td= x.email
|
|
.row
|
|
.col-md-12
|
|
= paginate @contacts
|