-
Notifications
You must be signed in to change notification settings - Fork 1
https://github.com/BoTreeConsultingTeam/LearningPath/issues/81 #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <h2>Resend confirmation instructions</h2> | ||
|
|
||
| <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> | ||
| <%= devise_error_messages! %> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :email %><br /> | ||
| <%= f.email_field :email, autofocus: true %> | ||
| </div> | ||
|
|
||
| <div class="actions"> | ||
| <%= f.submit "Resend confirmation instructions" %> | ||
| </div> | ||
| <% end %> | ||
|
|
||
| <%= render "devise/shared/links" %> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| <p>Welcome <%= @email %>!</p> | ||
|
|
||
| <p>You can confirm your account email through the link below:</p> | ||
|
|
||
| <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <p>Hello <%= @resource.email %>!</p> | ||
|
|
||
| <p>Someone has requested a link to change your password. You can do this through the link below.</p> | ||
|
|
||
| <p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p> | ||
|
|
||
| <p>If you didn't request this, please ignore this email.</p> | ||
| <p>Your password won't change until you access the link above and create a new one.</p> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <p>Hello <%= @resource.email %>!</p> | ||
|
|
||
| <p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p> | ||
|
|
||
| <p>Click the link below to unlock your account:</p> | ||
|
|
||
| <p><%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %></p> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <h2>Change your password</h2> | ||
|
|
||
| <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> | ||
| <%= devise_error_messages! %> | ||
| <%= f.hidden_field :reset_password_token %> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :password, "New password" %><br /> | ||
| <%= f.password_field :password, autofocus: true, autocomplete: "off" %> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :password_confirmation, "Confirm new password" %><br /> | ||
| <%= f.password_field :password_confirmation, autocomplete: "off" %> | ||
| </div> | ||
|
|
||
| <div class="actions"> | ||
| <%= f.submit "Change my password" %> | ||
| </div> | ||
| <% end %> | ||
|
|
||
| <%= render "devise/shared/links" %> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <h2>Forgot your password?</h2> | ||
|
|
||
| <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> | ||
| <%= devise_error_messages! %> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :email %><br /> | ||
| <%= f.email_field :email, autofocus: true %> | ||
| </div> | ||
|
|
||
| <div class="actions"> | ||
| <%= f.submit "Send me reset password instructions" %> | ||
| </div> | ||
| <% end %> | ||
|
|
||
| <%= render "devise/shared/links" %> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| <h2>Edit <%= resource_name.to_s.humanize %></h2> | ||
|
|
||
| <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %> | ||
| <%= devise_error_messages! %> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :email %><br /> | ||
| <%= f.email_field :email, autofocus: true %> | ||
| </div> | ||
|
|
||
| <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> | ||
| <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div> | ||
| <% end %> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br /> | ||
| <%= f.password_field :password, autocomplete: "off" %> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :password_confirmation %><br /> | ||
| <%= f.password_field :password_confirmation, autocomplete: "off" %> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br /> | ||
| <%= f.password_field :current_password, autocomplete: "off" %> | ||
| </div> | ||
|
|
||
| <div class="actions"> | ||
| <%= f.submit "Update" %> | ||
| </div> | ||
| <% end %> | ||
|
|
||
| <h3>Cancel my account</h3> | ||
|
|
||
| <p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p> | ||
|
|
||
| <%= link_to "Back", :back %> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| <h2>Sign up</h2> | ||
|
|
||
| <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> | ||
| <%= devise_error_messages! %> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :email %><br /> | ||
| <%= f.email_field :email, autofocus: true %> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :password %> | ||
| <% if @validatable %> | ||
| <em>(<%= @minimum_password_length %> characters minimum)</em> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add proper indentation |
||
| <% end %><br /> | ||
| <%= f.password_field :password, autocomplete: "off" %> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :password_confirmation %><br /> | ||
| <%= f.password_field :password_confirmation, autocomplete: "off" %> | ||
| </div> | ||
|
|
||
| <div class="actions"> | ||
| <%= f.submit "Sign up" %> | ||
| </div> | ||
| <% end %> | ||
|
|
||
| <%= render "devise/shared/links" %> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| <h2>Log in</h2> | ||
|
|
||
| <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> | ||
| <div class="field"> | ||
| <%= f.label :email %><br /> | ||
| <%= f.email_field :email, autofocus: true %> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :password %><br /> | ||
| <%= f.password_field :password, autocomplete: "off" %> | ||
| </div> | ||
|
|
||
| <% if devise_mapping.rememberable? -%> | ||
| <div class="field"> | ||
| <%= f.check_box :remember_me %> | ||
| <%= f.label :remember_me %> | ||
| </div> | ||
| <% end -%> | ||
|
|
||
| <div class="actions"> | ||
| <%= f.submit "Log in" %> | ||
| </div> | ||
| <% end %> | ||
|
|
||
| <%= render "devise/shared/links" %> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <h2>Resend unlock instructions</h2> | ||
|
|
||
| <%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %> | ||
| <%= devise_error_messages! %> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :email %><br /> | ||
| <%= f.email_field :email, autofocus: true %> | ||
| </div> | ||
|
|
||
| <div class="actions"> | ||
| <%= f.submit "Resend unlock instructions" %> | ||
| </div> | ||
| <% end %> | ||
|
|
||
| <%= render "devise/shared/links" %> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,32 @@ | ||
| <h2>Forgot your password?</h2> | ||
| <section class="wrapper "> | ||
| <div class="row mt"> | ||
| <div class="col-lg-3 col-md-3"></div> | ||
| <div class="col-lg-6 col-md-6 col-sm-10"> | ||
|
|
||
|
|
||
| <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> | ||
| <%= devise_error_messages! %> | ||
| <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post , class: "form-login form-panel"}) do |f| %> | ||
|
|
||
| <div class="field"> | ||
| <%= f.label :email %><br /> | ||
| <%= f.email_field :email, autofocus: true %> | ||
| </div> | ||
| <h2 class="form-login-heading">Forgot your password?</h2> | ||
|
|
||
| <div class="actions"> | ||
| <%= f.submit "Send me reset password instructions" %> | ||
| </div> | ||
| <% end %> | ||
| <div class="login-wrap"> | ||
|
|
||
| <%= render "users/shared/links" %> | ||
| <%= devise_error_messages! %> | ||
|
|
||
| <div class="field"> | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove extra blank line |
||
| <%= f.email_field :email, autofocus: true , class: "form-control", placeholder: 'Enter email address.'%> | ||
| </div> | ||
| <div class="spacer20"></div> | ||
|
|
||
| <div class="actions"> | ||
| <%= f.submit "Send me reset password instructions" , class: "btn btn-theme btn-block" %> | ||
| </div> | ||
| <% end %> | ||
|
|
||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this blank lines |
||
| </div> | ||
| </div> | ||
| </div><!--/ row --> | ||
| </section><!-- --/wrapper ----> | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra blank line.