Add users to registrar show

This commit is contained in:
Martin Lensment 2014-10-07 14:45:43 +03:00
parent 6f874ecb2a
commit d5cf921e5d
2 changed files with 38 additions and 1 deletions

View file

@ -19,5 +19,5 @@
%tfoot %tfoot
- @domain.errors.messages[:nameservers].each do |x| - @domain.errors.messages[:nameservers].each do |x|
%tr %tr
%td{colspan: 4}= x %td{colspan: 3}= x

View file

@ -44,3 +44,40 @@
%dt= t('shared.billing_address') %dt= t('shared.billing_address')
%dd= @registrar.billing_address %dd= @registrar.billing_address
.row
.col-md-12
#users.panel.panel-default
.panel-heading.clearfix
= t('shared.users')
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%thead
%tr
%th{class: 'col-xs-3'}= t('shared.username')
%th{class: 'col-xs-3'}= t('shared.email')
%th{class: 'col-xs-3'}= t('shared.identity_code')
%th{class: 'col-xs-3'}= t('shared.admin')
%tbody
- @registrar.users.each do |x|
%tr
%td= link_to(x, [:admin, x])
%td= x.email
%td= x.identity_code
%td= x.admin
.row
.col-md-12
#epp-users.panel.panel-default
.panel-heading.clearfix
= t('shared.epp_users')
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%thead
%tr
%th{class: 'col-xs-6'}= t('shared.username')
%th{class: 'col-xs-6'}= t('shared.active')
%tbody
- @registrar.epp_users.each do |x|
%tr
%td= link_to(x, [:admin, x])
%td= x.active