mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Refactor EPP users to API users
This commit is contained in:
parent
b8494993ea
commit
c91c9c8ebf
44 changed files with 154 additions and 150 deletions
28
app/views/admin/api_users/index.haml
Normal file
28
app/views/admin/api_users/index.haml
Normal file
|
@ -0,0 +1,28 @@
|
|||
.row
|
||||
.col-sm-6
|
||||
%h2.text-center-xs= t('api_users')
|
||||
.col-sm-6
|
||||
%h2.text-right.text-center-xs
|
||||
= link_to(t('create_new_api_user'), new_admin_api_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('registrar'))
|
||||
%th{class: 'col-xs-2'}
|
||||
= sort_link(@q, 'active', t('active'))
|
||||
%tbody
|
||||
- @api_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 @api_users
|
Loading…
Add table
Add a link
Reference in a new issue