mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Keyrelays index
This commit is contained in:
parent
f8ef86dcd5
commit
71df97f553
8 changed files with 58 additions and 4 deletions
44
app/views/admin/keyrelays/index.haml
Normal file
44
app/views/admin/keyrelays/index.haml
Normal file
|
@ -0,0 +1,44 @@
|
|||
.row
|
||||
.col-sm-12
|
||||
%h2.text-center-xs= t('keyrelays')
|
||||
%hr
|
||||
.row
|
||||
.col-md-12
|
||||
= search_form_for [:admin, @q], html: { class: 'form-horizontal' } do |f|
|
||||
.col-md-11
|
||||
.form-group
|
||||
= f.search_field :domain_name_cont, class: 'form-control', placeholder: t('domain_name')
|
||||
.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-4'}
|
||||
= sort_link(@q, 'pa_date', t('uploaded_at'))
|
||||
%th{class: 'col-xs-3'}
|
||||
= t('expiry')
|
||||
%th{class: 'col-xs-2'}
|
||||
= sort_link(@q, 'requester_name', t('requester'))
|
||||
%th{class: 'col-xs-2'}
|
||||
= sort_link(@q, 'accepter_name', t('accepter'))
|
||||
%th{class: 'col-xs-1'}
|
||||
= t('status')
|
||||
%tbody
|
||||
- @keyrelays.each do |x|
|
||||
%tr
|
||||
%td= link_to(x.pa_date, [:admin, x])
|
||||
%td= x.expiry
|
||||
%td= link_to(x.requester, [:admin, x.requester])
|
||||
%td= link_to(x.accepter, [:admin, x.accepter])
|
||||
%td= x.status
|
||||
.row
|
||||
.col-md-12
|
||||
= paginate @keyrelays
|
Loading…
Add table
Add a link
Reference in a new issue