diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index ea455c7..0b3bdbd 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -3,8 +3,8 @@ <%= raw t("helpers.user_details_text_html") %>
- <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => {:method => :put}) do |f| %> - <%= hidden_field_tag :unlink_flag, "false", :id => "unlink_flag" %> + <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: {method: :put}) do |f| %> + <%= hidden_field_tag :unlink_flag, "false", id: "unlink_flag" %>
@@ -13,14 +13,14 @@ - + - @@ -28,8 +28,8 @@ @@ -39,7 +39,7 @@ + { class: "typeahead org_sign_up" }) %> <% other_organisations = Array.new %> <% Org.where("parent_id IS ? AND is_other = ?", nil, true).each do |org| %> @@ -48,8 +48,8 @@ "> + as: :string, + class: "text_field has-tooltip reg-input", "data-toggle" => "tooltip", "data-container" => "body", "title" => t("helpers.org_type.other_org_help_text") %> @@ -60,15 +60,15 @@ <% end %> - + + as: :string, + autocomplete: "off" , + class: "text_field has-tooltip", "data-toggle" => "tooltip", "data-html" => "true", "title" => t("helpers.orcid_html") %> <% unless @user.api_token.blank? %> @@ -85,7 +85,7 @@

<% if Rails.application.config.shibboleth_enabled %> <% if resource.shibboleth_id.nil? || resource.shibboleth_id.length == 0 then %> - <%= link_to t("helpers.shibboleth_to_link_text"), user_omniauth_shibboleth_path, :class => "a-orange" %> + <%= link_to t("helpers.shibboleth_to_link_text"), user_omniauth_shibboleth_path, class: "a-orange" %> <% else %> <%= t("helpers.shibboleth_linked_text") %> @@ -107,30 +107,24 @@

- - +
<%= (t("helpers.email") + " *") %><%= f.email_field :email, :as => :email %><%= f.email_field :email, as: :email %>
<%= t("helpers.first_name") %><%= f.text_field :firstname, :as => :string, - :id => "first_time_login_firstname", - :autofocus => true, - :class => "text_field has-tooltip", + <%= f.text_field :firstname, as: :string, + id: "first_time_login_firstname", + autofocus: true, + class: "text_field has-tooltip", "data-toggle" => "tooltip", "data-trigger" => "focus" , "title" => t("helpers.first_name_help_text") %>
<%= t("helpers.last_name") %> <%= f.text_field :surname, - :as => :string, :id => "first_time_login_surname", - :class => "text_field has-tooltip", + as: :string, id: "first_time_login_surname", + class: "text_field has-tooltip", "data-toggle" => "tooltip", "data-trigger" => "focus" , "title" => t("helpers.surname_help_text") %><%= collection_select(:user, :org_id, Org.where("parent_id IS NULL").order("name"), :id, :name, {include_blank: constant("organisation_types.organisation")}, - { :class => "typeahead org_sign_up" }) %>
<%= t('helpers.user_details_language') %>
<%= t("helpers.orcid_id") %> <%= f.text_field :orcid_id , - :as => :string, - :autocomplete => "off" , - :class => "text_field has-tooltip", "data-toggle" => "tooltip", "data-html" => "true", "title" => t("helpers.orcid_html") %>
<%= t("helpers.current_password") %> - <%= f.password_field :current_password, :as => :password %> + <%= f.password_field :current_password, as: :password %>
<%= t("helpers.new_password") %><%= f.password_field :password, :as => :password, :autocomplete => "off" %> + <%= f.password_field :password, as: :password, autocomplete: "off" %>
<%= t("helpers.password_conf") %><%= f.password_field :password_confirmation, :as => :password, :autocomplete => "off" %><%= f.password_field :password_confirmation, as: :password, autocomplete: "off" %>
- <%= f.submit t("helpers.submit.save"), :class => "btn btn-primary" %> - <%= link_to t("helpers.submit.cancel"), :back, :class => "btn btn-primary" %> + <%= f.submit t("helpers.submit.save"), class: "btn btn-primary" %> + <%= link_to t("helpers.submit.cancel"), :back, class: "btn btn-primary" %>
<% end %> - -