mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Address depricated, new contact requires, domain_contacts refactor
This commit is contained in:
parent
0e252b0b6b
commit
5fd73b037a
38 changed files with 402 additions and 501 deletions
|
@ -1,20 +1,20 @@
|
|||
- panel_class = @domain.errors.messages[:admin_contacts] ? 'panel-danger' : 'panel-default'
|
||||
.panel{class: panel_class}
|
||||
.panel-heading.clearfix
|
||||
= t('admin_contacts')
|
||||
= t(:admin_contacts)
|
||||
.table-responsive
|
||||
%table.table.table-hover.table-bordered.table-condensed
|
||||
%thead
|
||||
%tr
|
||||
%th{class: 'col-xs-4'}= t('name')
|
||||
%th{class: 'col-xs-4'}= t('code')
|
||||
%th{class: 'col-xs-4'}= t('email')
|
||||
%th{class: 'col-xs-4'}= t(:name)
|
||||
%th{class: 'col-xs-4'}= t(:code)
|
||||
%th{class: 'col-xs-4'}= t(:email)
|
||||
%tbody
|
||||
- @domain.domain_contacts.admin.each do |x|
|
||||
- @domain.admin_contacts.each do |ac|
|
||||
%tr
|
||||
%td= link_to(x.contact, admin_contact_path(x.contact))
|
||||
%td= x.contact.code
|
||||
%td= x.contact.email
|
||||
%td= link_to(ac, admin_contact_path(ac))
|
||||
%td= ac.code
|
||||
%td= ac.email
|
||||
- if @domain.errors.messages[:admin_contacts]
|
||||
%tfoot
|
||||
- @domain.errors.messages[:admin_contacts].each do |x|
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
%th{class: 'col-xs-4'}= t('code')
|
||||
%th{class: 'col-xs-4'}= t('email')
|
||||
%tbody
|
||||
- @domain.domain_contacts.tech.each do |x|
|
||||
- @domain.tech_contacts.each do |tc|
|
||||
%tr
|
||||
%td= link_to(x.contact, admin_contact_path(x.contact))
|
||||
%td= x.contact.code
|
||||
%td= x.contact.email
|
||||
%td= link_to(tc, admin_contact_path(tc))
|
||||
%td= tc.code
|
||||
%td= tc.email
|
||||
- if @domain.errors.messages[:tech_contacts]
|
||||
%tfoot
|
||||
- @domain.errors.messages[:tech_contacts].each do |x|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue