From f84a972f6abaa644ecf91fcf9751028f806c7a7b Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 9 Jun 2022 11:40:22 +0200 Subject: [PATCH] Fix show password for invitation/password reset screens [SCI-6791] --- app/views/users/invitations/edit.html.erb | 24 +++++++++++------------ app/views/users/passwords/edit.html.erb | 12 ++++++------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/app/views/users/invitations/edit.html.erb b/app/views/users/invitations/edit.html.erb index c91dee660..bbc40f52f 100644 --- a/app/views/users/invitations/edit.html.erb +++ b/app/views/users/invitations/edit.html.erb @@ -8,40 +8,40 @@ <%= f.hidden_field :invitation_token %> -
+

<%= f.label :full_name %> <%= f.text_field :full_name, value: (params[:user] ? params[:user][:full_name] : ''), autofocus: true, - class: 'form-control' %> -

+ class: 'sci-input-field' %> +

-
+

<%= f.label :password %> <% if @minimum_password_length %> (<%= @minimum_password_length %> characters minimum) <% end %> - <%= f.password_field :password, autocomplete: "off", class: "form-control" %> -

+ <%= f.password_field :password, autocomplete: "off", class: "sci-input-field" %> +

-
+

<%= f.label :password_confirmation %> - <%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" %> -

+ <%= f.password_field :password_confirmation, autocomplete: "off", class: "sci-input-field" %> +

<% if Rails.configuration.x.new_team_on_signup %> -
<%= label :team, :name, t('users.registrations.new.team_name_label') %> <% if @team %> - <%= text_field :team, :name, class: 'form-control', value: @team.name %> + <%= text_field :team, :name, class: 'sci-input-field', value: @team.name %> <% else %> <%= text_field :team, :name, class: 'form-control', value: (params[:team] ? params[:team][:name] : '') %> <% end %> -
+

<% end %> <%= recaptcha_input_tag %> diff --git a/app/views/users/passwords/edit.html.erb b/app/views/users/passwords/edit.html.erb index 2d238f1a2..a3dc84f58 100644 --- a/app/views/users/passwords/edit.html.erb +++ b/app/views/users/passwords/edit.html.erb @@ -13,18 +13,18 @@ <%= f.hidden_field :reset_password_token %> -
+

<%= f.label :password, t("devise.passwords.edit.password") %> <% if @minimum_password_length %> <%= t("devise.passwords.edit.password_length", min_length: @minimum_password_length) %> <% end %>
- <%= f.password_field :password, autofocus: true, autocomplete: "off", class: "form-control" %> -

+ <%= f.password_field :password, autofocus: true, autocomplete: "off", class: "sci-input-field" %> +

-
+

<%= f.label :password_confirmation, t("devise.passwords.edit.password_confirm") %> - <%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" %> -

+ <%= f.password_field :password_confirmation, autocomplete: "off", class: "sci-input-field" %> +

<%= f.button t("devise.passwords.edit.submit"), class: "btn btn-primary" %>