mirror of
https://github.com/internetee/registry.git
synced 2025-05-31 09:53:56 +02:00
Updated regisntrar and updated index views
This commit is contained in:
parent
b91f9b1a8e
commit
b333bc4146
3 changed files with 33 additions and 5 deletions
|
@ -29,6 +29,8 @@
|
||||||
= sort_link(@q, 'email', t(:email))
|
= sort_link(@q, 'email', t(:email))
|
||||||
%th{class: 'col-xs-2'}
|
%th{class: 'col-xs-2'}
|
||||||
= sort_link(@q, 'code', t(:code))
|
= sort_link(@q, 'code', t(:code))
|
||||||
|
%th{class: 'col-xs-2'}
|
||||||
|
= sort_link(@q, 'registrar_name', t(:registrar))
|
||||||
%tbody
|
%tbody
|
||||||
- @contacts.each do |contact|
|
- @contacts.each do |contact|
|
||||||
%tr
|
%tr
|
||||||
|
@ -36,6 +38,10 @@
|
||||||
%td= "#{contact.ident} #{ident_indicator(contact)}"
|
%td= "#{contact.ident} #{ident_indicator(contact)}"
|
||||||
%td= contact.email
|
%td= contact.email
|
||||||
%td= contact.code
|
%td= contact.code
|
||||||
|
%td
|
||||||
|
- if contact.registrar
|
||||||
|
= link_to(contact.registrar, admin_registrar_path(contact.registrar))
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
= paginate @contacts
|
= paginate @contacts
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.panel.panel-default
|
.panel.panel-default
|
||||||
.panel-heading
|
.panel-heading
|
||||||
%h3.panel-title= t('general')
|
%h3.panel-title= t(:general)
|
||||||
.panel-body
|
.panel-body
|
||||||
%dl.dl-horizontal
|
%dl.dl-horizontal
|
||||||
%dt= t(:ident)
|
%dt= t(:ident)
|
||||||
|
@ -23,5 +23,27 @@
|
||||||
%dt= t(:code)
|
%dt= t(:code)
|
||||||
%dd= @contact.code
|
%dd= @contact.code
|
||||||
|
|
||||||
%dt= t('password')
|
%dt= t(:password)
|
||||||
%dd= @contact.auth_info
|
%dd= @contact.auth_info
|
||||||
|
|
||||||
|
%br
|
||||||
|
|
||||||
|
%dt= t(:created)
|
||||||
|
%dd
|
||||||
|
= l(@contact.created_at, format: :short)
|
||||||
|
by
|
||||||
|
= @contact.creator
|
||||||
|
|
||||||
|
%dt= t(:updated)
|
||||||
|
%dd
|
||||||
|
= l(@contact.updated_at, format: :short)
|
||||||
|
by
|
||||||
|
= @contact.updator
|
||||||
|
|
||||||
|
|
||||||
|
%dt= t(:registrar)
|
||||||
|
%dd
|
||||||
|
- if @contact.registrar.present?
|
||||||
|
= link_to(@contact.registrar, admin_registrar_path(@contact.registrar))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,19 +23,19 @@
|
||||||
%tr
|
%tr
|
||||||
%th{class: 'col-xs-2'}
|
%th{class: 'col-xs-2'}
|
||||||
= sort_link(@q, 'name')
|
= sort_link(@q, 'name')
|
||||||
%th{class: 'col-xs-2'}
|
|
||||||
= sort_link(@q, 'registrar_name', t('registrar'))
|
|
||||||
%th{class: 'col-xs-2'}
|
%th{class: 'col-xs-2'}
|
||||||
= sort_link(@q, 'owner_contact_name', t('owner'))
|
= sort_link(@q, 'owner_contact_name', t('owner'))
|
||||||
%th{class: 'col-xs-2'}
|
%th{class: 'col-xs-2'}
|
||||||
= sort_link(@q, 'valid_to', t('valid_to'))
|
= sort_link(@q, 'valid_to', t('valid_to'))
|
||||||
|
%th{class: 'col-xs-2'}
|
||||||
|
= sort_link(@q, 'registrar_name', t('registrar'))
|
||||||
%tbody
|
%tbody
|
||||||
- @domains.each do |x|
|
- @domains.each do |x|
|
||||||
%tr
|
%tr
|
||||||
%td= link_to(x, admin_domain_path(x))
|
%td= link_to(x, admin_domain_path(x))
|
||||||
%td= link_to(x.registrar, admin_registrar_path(x.registrar)) if x.registrar
|
|
||||||
%td= link_to(x.owner_contact, [:admin, x.owner_contact])
|
%td= link_to(x.owner_contact, [:admin, x.owner_contact])
|
||||||
%td= l(x.valid_to, format: :short)
|
%td= l(x.valid_to, format: :short)
|
||||||
|
%td= link_to(x.registrar, admin_registrar_path(x.registrar)) if x.registrar
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
= paginate @domains
|
= paginate @domains
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue