Use model attributes and attribute help for the registration fields

The disply name keeps its specific help, since it is different on the account settings page
This commit is contained in:
Andy Allan 2021-01-27 12:36:21 +00:00
parent 2b8d2bcb9f
commit f737d2d34a
2 changed files with 6 additions and 4 deletions

View file

@ -18,10 +18,10 @@
<%= bootstrap_form_for current_user, :url => { :action => "create" } do |f| %>
<%= hidden_field_tag("referer", h(@referer)) unless @referer.nil? %>
<%= f.email_field :email, :label => t(".email address"), :tabindex => 1 %>
<%= f.email_field :email_confirmation, :label => t(".confirm email address"), :help => t(".not_displayed_publicly_html"), :tabindex => 2 %>
<%= f.email_field :email, :tabindex => 1 %>
<%= f.email_field :email_confirmation, :tabindex => 2 %>
<%= f.text_field :display_name, :label => t(".display name"), :help => t(".display name description"), :tabindex => 3 %>
<%= f.text_field :display_name, :help => t(".display name description"), :tabindex => 3 %>
<fieldset class="form-group" id="auth_field">
<label for="user_auth_provider"><%= t(".external auth") %></label>