internetee-registry/app/views/admin/registrars/show.haml
2015-01-30 11:53:33 +02:00

72 lines
1.8 KiB
Text

.row
.col-sm-6
%h2.text-center-xs
= "#{t('registrar_details')}"
.col-sm-6
%h2.text-right.text-center-xs
= link_to(t('edit'), edit_admin_registrar_path(@registrar), class: 'btn btn-primary')
= link_to(t('delete'), admin_registrar_path(@registrar), method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-danger')
%hr
- if @registrar.errors.any?
- @registrar.errors.each do |attr, err|
= err
%br
- if @registrar.errors.any?
%hr
.row
.col-md-6
.panel.panel-default
.panel-heading
%h3.panel-title= t('general')
.panel-body
%dl.dl-horizontal
%dt= t('name')
%dd= @registrar.name
%dt= t('reg_no')
%dd= @registrar.reg_no
%dt= t('vat_no')
%dd= @registrar.vat_no
.col-md-6
.panel.panel-default
.panel-heading
%h3.panel-title= t('contact')
.panel-body
%dl.dl-horizontal
%dt= t('country')
%dd= @registrar.country
%dt= t('address')
%dd= @registrar.address
%dt= t('contact_phone')
%dd= @registrar.phone
%dt= t('contact_email')
%dd= @registrar.email
%dt= t('billing_address')
%dd= @registrar.billing_address
%dt= t('billing_email')
%dd= @registrar.billing_email
.row
.col-md-12
#epp-users.panel.panel-default
.panel-heading.clearfix
= t('api_users')
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%thead
%tr
%th{class: 'col-xs-6'}= t('username')
%th{class: 'col-xs-6'}= t('active')
%tbody
- @registrar.api_users.each do |x|
%tr
%td= link_to(x, [:admin, x])
%td= x.active