mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-03 02:14:29 +08:00
Fix show password for invitation/password reset screens [SCI-6791]
This commit is contained in:
parent
5d198924af
commit
f84a972f6a
2 changed files with 18 additions and 18 deletions
|
@ -8,40 +8,40 @@
|
|||
|
||||
<%= f.hidden_field :invitation_token %>
|
||||
|
||||
<div class="form-group">
|
||||
<p class="sci-input-container">
|
||||
<%= f.label :full_name %>
|
||||
<%= f.text_field :full_name,
|
||||
value: (params[:user] ? params[:user][:full_name] : ''),
|
||||
autofocus: true,
|
||||
class: 'form-control' %>
|
||||
</div>
|
||||
class: 'sci-input-field' %>
|
||||
</p>
|
||||
|
||||
<div class="form-group">
|
||||
<p class="sci-input-container">
|
||||
<%= f.label :password %>
|
||||
<% if @minimum_password_length %>
|
||||
<em>(<%= @minimum_password_length %> characters minimum)</em>
|
||||
<% end %>
|
||||
<%= f.password_field :password, autocomplete: "off", class: "form-control" %>
|
||||
</div>
|
||||
<%= f.password_field :password, autocomplete: "off", class: "sci-input-field" %>
|
||||
</p>
|
||||
|
||||
<div class="form-group">
|
||||
<p class="sci-input-container">
|
||||
<%= f.label :password_confirmation %>
|
||||
<%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" %>
|
||||
</div>
|
||||
<%= f.password_field :password_confirmation, autocomplete: "off", class: "sci-input-field" %>
|
||||
</p>
|
||||
|
||||
<% if Rails.configuration.x.new_team_on_signup %>
|
||||
<div class="form-group"
|
||||
<p class="sci-input-container"
|
||||
data-hook="confirm-invitation-team-name">
|
||||
<%= 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 %>
|
||||
</div>
|
||||
</p>
|
||||
<% end %>
|
||||
<%= recaptcha_input_tag %>
|
||||
|
||||
|
|
|
@ -13,18 +13,18 @@
|
|||
|
||||
<%= f.hidden_field :reset_password_token %>
|
||||
|
||||
<div class="form-group">
|
||||
<p class="sci-input-container">
|
||||
<%= f.label :password, t("devise.passwords.edit.password") %>
|
||||
<% if @minimum_password_length %>
|
||||
<em><%= t("devise.passwords.edit.password_length", min_length: @minimum_password_length) %></em>
|
||||
<% end %><br />
|
||||
<%= f.password_field :password, autofocus: true, autocomplete: "off", class: "form-control" %>
|
||||
</div>
|
||||
<%= f.password_field :password, autofocus: true, autocomplete: "off", class: "sci-input-field" %>
|
||||
</p>
|
||||
|
||||
<div class="form-group">
|
||||
<p class="sci-input-container">
|
||||
<%= f.label :password_confirmation, t("devise.passwords.edit.password_confirm") %>
|
||||
<%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control" %>
|
||||
</div>
|
||||
<%= f.password_field :password_confirmation, autocomplete: "off", class: "sci-input-field" %>
|
||||
</p>
|
||||
|
||||
<div class="form-group">
|
||||
<%= f.button t("devise.passwords.edit.submit"), class: "btn btn-primary" %>
|
||||
|
|
Loading…
Add table
Reference in a new issue