Renamed contact code to id #2831

This commit is contained in:
Priit Tark 2015-08-13 15:58:32 +03:00
parent 07f89f8ce5
commit d27bad73b2
12 changed files with 14 additions and 14 deletions

View file

@ -22,7 +22,7 @@
%th{class: 'col-xs-2'} %th{class: 'col-xs-2'}
= sort_link(@q, 'name', t(:name)) = sort_link(@q, 'name', t(:name))
%th{class: 'col-xs-2'} %th{class: 'col-xs-2'}
= sort_link(@q, 'code', t(:code)) = sort_link(@q, 'code', t(:id))
%th{class: 'col-xs-2'} %th{class: 'col-xs-2'}
= sort_link(@q, 'ident', t(:ident)) = sort_link(@q, 'ident', t(:ident))
%th{class: 'col-xs-2'} %th{class: 'col-xs-2'}

View file

@ -3,7 +3,7 @@
%h3.panel-title= t(:general) %h3.panel-title= t(:general)
.panel-body .panel-body
%dl.dl-horizontal %dl.dl-horizontal
%dt= t(:code) %dt= t(:id)
%dd= @contact.code %dd= @contact.code
%dt= t(:password) %dt= t(:password)

View file

@ -7,7 +7,7 @@
%thead %thead
%tr %tr
%th{class: 'col-xs-4'}= t(:name) %th{class: 'col-xs-4'}= t(:name)
%th{class: 'col-xs-4'}= t(:code) %th{class: 'col-xs-4'}= t(:id)
%th{class: 'col-xs-4'}= t(:email) %th{class: 'col-xs-4'}= t(:email)
%tbody %tbody
- @domain.admin_contacts.each do |ac| - @domain.admin_contacts.each do |ac|

View file

@ -6,7 +6,7 @@
%dt= t(:name) %dt= t(:name)
%dd= link_to(@domain.registrant, [:admin, @domain.registrant]) %dd= link_to(@domain.registrant, [:admin, @domain.registrant])
%dt= t(:code) %dt= t(:id)
%dd= @domain.registrant_code %dd= @domain.registrant_code
%dt= t(:identity_code) %dt= t(:identity_code)

View file

@ -7,7 +7,7 @@
%thead %thead
%tr %tr
%th{class: 'col-xs-4'}= t(:name) %th{class: 'col-xs-4'}= t(:name)
%th{class: 'col-xs-4'}= t(:code) %th{class: 'col-xs-4'}= t(:id)
%th{class: 'col-xs-4'}= t(:email) %th{class: 'col-xs-4'}= t(:email)
%tbody %tbody
- @domain.tech_contacts.each do |tc| - @domain.tech_contacts.each do |tc|

View file

@ -29,7 +29,7 @@
%dt= t(:reference_no) %dt= t(:reference_no)
%dd= @registrar.reference_no %dd= @registrar.reference_no
%dt= t(:code) %dt= t(:id)
%dd= @registrar.code %dd= @registrar.code
.col-md-6 .col-md-6

View file

@ -1,9 +1,9 @@
.panel.panel-default .panel.panel-default
.panel-heading.clearfix .panel-heading.clearfix
.pull-left= t(:code) .pull-left= t(:id)
.panel-body .panel-body
.form-group .form-group
.col-md-2.control-label .col-md-2.control-label
= f.label :code = f.label :code, t(:id)
.col-md-10 .col-md-10
= f.text_field :code, class: 'form-control' = f.text_field :code, class: 'form-control'

View file

@ -8,7 +8,7 @@
%thead %thead
%tr %tr
%th{class: 'col-xs-3'}= t(:name) %th{class: 'col-xs-3'}= t(:name)
%th{class: 'col-xs-3'}= t(:code) %th{class: 'col-xs-3'}= t(:id)
%th{class: 'col-xs-3'}= t(:ident) %th{class: 'col-xs-3'}= t(:ident)
%th{class: 'col-xs-3'}= t(:actions) %th{class: 'col-xs-3'}= t(:actions)
%tbody %tbody

View file

@ -3,7 +3,7 @@
%h3.panel-title= t(:general) %h3.panel-title= t(:general)
.panel-body .panel-body
%dl.dl-horizontal %dl.dl-horizontal
%dt= t(:contact_code) %dt= t(:id)
%dd= @contact.id %dd= @contact.id
%dt= t(:password) %dt= t(:password)

View file

@ -16,7 +16,7 @@
.form-group .form-group
.col-md-3.control-label .col-md-3.control-label
= label_tag "domain_contacts_attributes_#{k}_code", t(:contact_code), class: 'required' = label_tag "domain_contacts_attributes_#{k}_code", t(:id), class: 'required'
.col-md-7.has-feedback .col-md-7.has-feedback
= select_tag "domain[contacts_attributes][#{k}][code]", = select_tag "domain[contacts_attributes][#{k}][code]",
options_for_select(@contacts_autocomplete_map, selected: v['code']), options_for_select(@contacts_autocomplete_map, selected: v['code']),

View file

@ -6,7 +6,7 @@
%thead %thead
%tr %tr
%th{class: 'col-xs-4'}= t(:type) %th{class: 'col-xs-4'}= t(:type)
%th{class: 'col-xs-8'}= t(:code) %th{class: 'col-xs-8'}= t(:id)
%tbody %tbody
- @data.css('contact').each do |x| - @data.css('contact').each do |x|
%tr %tr

View file

@ -657,7 +657,7 @@ en:
m_id: 'M-ID' m_id: 'M-ID'
pending_removed: Pending was successfully removed. pending_removed: Pending was successfully removed.
pending_applied: Pending was successfully applied. pending_applied: Pending was successfully applied.
something_wrong: Not success, something went wrong! something_wrong: Not success, something went wrong
failure: Not success failure: Not success
not_found: Not found not_found: Not found
no_connection_to_registry: Connection issue to the registry EPP or REPP server! Please try again later. no_connection_to_registry: Connection issue to the registry EPP or REPP server! Please try again later.
@ -909,4 +909,4 @@ en:
poll_pending_delete_confirmed_by_registrant: 'Registrant confirmed domain deletion' poll_pending_delete_confirmed_by_registrant: 'Registrant confirmed domain deletion'
manage: Manage manage: Manage
pending_epp: Pending epp pending_epp: Pending epp
id: ID