mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
47 lines
1.4 KiB
Text
47 lines
1.4 KiB
Text
.row
|
|
.col-sm-12
|
|
%h2.text-center-xs= t(:contacts)
|
|
%hr
|
|
.row
|
|
.col-md-12
|
|
= search_form_for [:admin, @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(:name))
|
|
%th{class: 'col-xs-2'}
|
|
= sort_link(@q, 'ident', t(:identity))
|
|
%th{class: 'col-xs-2'}
|
|
= sort_link(@q, 'email', t(:email))
|
|
%th{class: 'col-xs-2'}
|
|
= sort_link(@q, 'code', t(:code))
|
|
%th{class: 'col-xs-2'}
|
|
= sort_link(@q, 'registrar_name', t(:registrar))
|
|
%tbody
|
|
- @contacts.each do |contact|
|
|
%tr
|
|
%td= link_to(contact, admin_contact_path(contact))
|
|
%td= ident_for(contact)
|
|
%td= contact.email
|
|
%td= contact.code
|
|
%td
|
|
- if contact.registrar
|
|
= link_to(contact.registrar, admin_registrar_path(contact.registrar))
|
|
|
|
.row
|
|
.col-md-12
|
|
= paginate @contacts
|