-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move password confirmation field that was in wrong place (#7393)
* Alter password confirmation field * Change Confirmation text to Passoword Confirmation
- Loading branch information
1 parent
fdc44a4
commit 2a4af95
Showing
3 changed files
with
22 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,45 +25,40 @@ | |
</div> | ||
|
||
<div class="form-group col-md-6"> | ||
|
||
<label for="email"><%= t('users._form.email') %></label> | ||
<%= f.text_field :email, { tabindex: 3, required: true, placeholder: "[email protected]", class: 'form-control', id: 'email'} %> | ||
</div> | ||
|
||
</div> | ||
|
||
<!-- <div class="form-group"> | ||
<label for="email"><%= t('users._form.email') %></label> | ||
<%= f.text_field :email, { tabindex: 3, placeholder: "[email protected]", class: 'form-control', id: 'email' } %> | ||
</div> --> | ||
|
||
<div class="form-group"> | ||
<% if @user.crypted_password.nil? %> | ||
<label for="password"><%= t('users._form.create_password') %></label> | ||
<% else %> | ||
<label for="password"><%= t('users._form.change_password') %></label> | ||
<% end %> | ||
<%= f.password_field :password, { placeholder: "Enter your new password", | ||
tabindex: 4, | ||
class: 'form-control', | ||
id: 'password1', | ||
onpaste: 'return false;' } | ||
<label for="current_password"><%= t('users._form.current_password') %></label> | ||
<%= f.password_field :current_password, { placeholder: "Type your current password for verification", | ||
tabindex: 4, | ||
class: 'form-control', | ||
id: 'current-password' } | ||
%> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="form-group col-md-6"> | ||
<label for="current_password"><%= t('users._form.current_password') %></label> | ||
<%= f.password_field :current_password, { placeholder: "Type your current password for verification", | ||
tabindex: 7, | ||
class: 'form-control', | ||
id: 'current-password' } | ||
<% if @user.crypted_password.nil? %> | ||
<label for="password"><%= t('users._form.create_password') %></label> | ||
<% else %> | ||
<label for="password"><%= t('users._form.change_password') %></label> | ||
<% end %> | ||
<%= f.password_field :password, { placeholder: "Enter your new password", | ||
tabindex: 5, | ||
class: 'form-control', | ||
id: 'password1', | ||
onpaste: 'return false;' } | ||
%> | ||
</div> | ||
|
||
<div class="form-group col-md-6"> | ||
<label for="password_confirmation"><%= t('users._form.confirmation') %></label> | ||
<label for="password_confirmation"><%= t('users._form.password_confirmation') %></label> | ||
<%= f.password_field :password_confirmation, { placeholder: I18n.t('users._form.confirm_password'), | ||
tabindex: 5, | ||
tabindex: 6, | ||
class: 'form-control', | ||
id: 'password-confirmation', | ||
onpaste: 'return false;' } | ||
|
@@ -76,14 +71,14 @@ | |
<%= f.text_area :bio, { placeholder: I18n.t('users._form.add_bio'), | ||
rows: 8, | ||
class: 'form-control', | ||
tabindex: 6 } | ||
tabindex: 7 } | ||
%> | ||
</div> | ||
|
||
<div class="form-group form-inline" style="clear:both;padding-top:10px;"> | ||
|
||
<!-- button for saving edits for existing users --> | ||
<button class="btn btn-lg btn-primary btn-save" type="submit" tabindex="7"><%= t('users._form.save') %></button> | ||
<button class="btn btn-lg btn-primary btn-save" type="submit" tabindex="8"><%= t('users._form.save') %></button> | ||
|
||
<script> | ||
(function() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters