Rename en.registrar translation key to en.registrar_name

#240
This commit is contained in:
Artur Beljajev 2016-11-11 12:42:16 +02:00
parent 2643df8d21
commit 064716bebf
29 changed files with 45 additions and 46 deletions

View file

@ -6,7 +6,7 @@
- field_required = ''
= form_for([:admin, @api_user], multipart: true,
= form_for([:admin, @api_user], multipart: true,
html: {class: 'form-horizontal', autocomplete: 'off'}) do |f|
= render 'shared/full_errors', object: @api_user
@ -32,11 +32,11 @@
.form-group
.form-group.has-feedback.js-typeahead-container
.col-md-4.control-label
= f.label :registrar_typeahead, t(:registrar), class: 'required'
= f.label :registrar_typeahead, t(:registrar_name), class: 'required'
.col-md-7
= f.text_field(:registrar_typeahead,
class: 'form-control js-registrar-typeahead typeahead required',
placeholder: t(:registrar), autocomplete: 'off')
= f.text_field(:registrar_typeahead,
class: 'form-control js-registrar-typeahead typeahead required',
placeholder: t(:registrar_name), autocomplete: 'off')
%span.glyphicon.glyphicon-ok.form-control-feedback.js-typeahead-ok.hidden
%span.glyphicon.glyphicon-remove.form-control-feedback.js-typeahead-remove
= f.hidden_field(:registrar_id, class: 'js-registrar-id')
@ -45,7 +45,7 @@
.col-md-4.control-label
= f.label :role, class: 'required'
.col-md-7
= select_tag 'api_user[roles][]',
= select_tag 'api_user[roles][]',
options_for_select(ApiUser::ROLES.map {|x| [t(x), x] }, @api_user.roles.try(:first)),
class: 'form-control selectize'
.checkbox

View file

@ -11,7 +11,7 @@
%th{class: 'col-xs-2'}
= sort_link(@q, 'username')
%th{class: 'col-xs-2'}
= sort_link(@q, 'registrar_name', t(:registrar))
= sort_link(@q, 'registrar_name', t(:registrar_name))
%th{class: 'col-xs-2'}
= sort_link(@q, 'active', t(:active))
%tbody

View file

@ -23,7 +23,7 @@
%dt= t(:password)
%dd= @api_user.password
%dt= t(:registrar)
%dt= t(:registrar_name)
%dd= link_to(@api_user.registrar, admin_registrar_path(@api_user.registrar))
%dt= t(:role)