mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Contextual panels in domain show
This commit is contained in:
parent
7f26c8c769
commit
df5da8dc4b
4 changed files with 25 additions and 9 deletions
|
@ -1,4 +1,5 @@
|
|||
.panel.panel-default
|
||||
- panel_class = @domain.errors.messages[:admin_contacts] ? 'panel-danger' : 'panel-default'
|
||||
.panel{class: panel_class}
|
||||
.panel-heading= t('shared.admin_contacts')
|
||||
.table-responsive
|
||||
%table.table.table-hover.table-bordered.table-condensed
|
||||
|
@ -15,4 +16,8 @@
|
|||
%td
|
||||
= link_to(t('shared.edit'), root_path, class: 'btn btn-primary btn-xs')
|
||||
= link_to(t('shared.detach'), root_path, method: :delete, data: { confirm: t('shared.are_you_sure') }, class: 'btn btn-warning btn-xs')
|
||||
|
||||
- if @domain.errors.messages[:admin_contacts]
|
||||
%tfoot
|
||||
- @domain.errors.messages[:admin_contacts].each do |x|
|
||||
%tr
|
||||
%td{colspan: 4}= x
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
.panel.panel-default
|
||||
- panel_class = @domain.errors.messages[:nameservers] ? 'panel-danger' : 'panel-default'
|
||||
.panel{class: panel_class}
|
||||
.panel-heading.clearfix
|
||||
.pull-left
|
||||
= t('shared.nameservers')
|
||||
|
@ -21,7 +22,9 @@
|
|||
%td
|
||||
= link_to(t('shared.edit'), root_path, class: 'btn btn-primary btn-xs')
|
||||
= link_to(t('shared.delete'), root_path, method: :delete, data: { confirm: t('shared.are_you_sure') }, class: 'btn btn-danger btn-xs')
|
||||
%tfoot
|
||||
%tr
|
||||
%td{colspan: 4}
|
||||
Nameservers count must be between %{min}-%{max}
|
||||
- if @domain.errors.messages[:nameservers]
|
||||
%tfoot
|
||||
- @domain.errors.messages[:nameservers].each do |x|
|
||||
%tr
|
||||
%td{colspan: 4}= x
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue