internetee-registry/app/views/admin/epp_users/index.haml
2014-09-30 14:27:37 +03:00

28 lines
861 B
Text

.row
.col-sm-6
%h2.text-center-xs= t('shared.epp_users')
.col-sm-6
%h2.text-right.text-center-xs
= link_to(t('shared.create_new_epp_user'), new_admin_epp_user_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, 'username')
%th{class: 'col-xs-2'}
= sort_link(@q, 'registrar', t('shared.registrar'))
%th{class: 'col-xs-2'}
= sort_link(@q, 'active', t('shared.active'))
%tbody
- @epp_users.each do |x|
%tr
%td= link_to(x, [:admin, x])
%td= link_to(x.registrar, [:admin, x.registrar])
%td= x.active
.row
.col-md-12
= paginate @epp_users