diff options
Diffstat (limited to 'app/views/admin/users/_form.html.haml')
-rw-r--r-- | app/views/admin/users/_form.html.haml | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/app/views/admin/users/_form.html.haml b/app/views/admin/users/_form.html.haml index b3ed8369263..9d62c19e2fc 100644 --- a/app/views/admin/users/_form.html.haml +++ b/app/views/admin/users/_form.html.haml @@ -3,40 +3,38 @@ = form_errors(@user) %fieldset - %legend Account + %legend= _('Account') .form-group.row .col-sm-2.col-form-label = f.label :name .col-sm-10 = f.text_field :name, required: true, autocomplete: 'off', class: 'form-control gl-form-input' - %span.help-inline * required + %span.help-inline * #{_('required')} .form-group.row .col-sm-2.col-form-label = f.label :username .col-sm-10 = f.text_field :username, required: true, autocomplete: 'off', autocorrect: 'off', autocapitalize: 'off', spellcheck: false, class: 'form-control gl-form-input' - %span.help-inline * required + %span.help-inline * #{_('required')} .form-group.row .col-sm-2.col-form-label = f.label :email .col-sm-10 = f.text_field :email, required: true, autocomplete: 'off', class: 'form-control gl-form-input' - %span.help-inline * required + %span.help-inline * #{_('required')} - if @user.new_record? %fieldset - %legend Password + %legend= _('Password') .form-group.row .col-sm-2.col-form-label = f.label :password .col-sm-10 %strong - Reset link will be generated and sent to the user. - %br - User will be forced to set the password on first sign in. + = _('Reset link will be generated and sent to the user. %{break} User will be forced to set the password on first sign in.').html_safe % { break: '<br />'.html_safe } - else %fieldset - %legend Password + %legend= _('Password') .form-group.row .col-sm-2.col-form-label = f.label :password @@ -55,7 +53,7 @@ = render_if_exists 'admin/users/limits', f: f %fieldset - %legend Profile + %legend= _('Profile') .form-group.row .col-sm-2.col-form-label = f.label :avatar @@ -87,8 +85,8 @@ .form-actions - if @user.new_record? - = f.submit 'Create user', class: "btn gl-button btn-confirm" - = link_to 'Cancel', admin_users_path, class: "gl-button btn btn-default btn-cancel" + = f.submit _('Create user'), class: "btn gl-button btn-confirm" + = link_to _('Cancel'), admin_users_path, class: "gl-button btn btn-default btn-cancel" - else - = f.submit 'Save changes', class: "btn gl-button btn-confirm" - = link_to 'Cancel', admin_user_path(@user), class: "gl-button btn btn-default btn-cancel" + = f.submit _('Save changes'), class: "btn gl-button btn-confirm" + = link_to _('Cancel'), admin_user_path(@user), class: "gl-button btn btn-default btn-cancel" |