|
1 |
| -<h2>Edit <%= resource_name.to_s.humanize %></h2> |
| 1 | +<div class="container mwd"> |
| 2 | + <div class="row"> |
2 | 3 |
|
3 |
| -<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %> |
4 |
| - <%= f.error_notification %> |
5 | 4 |
|
6 |
| - <div class="form-inputs"> |
7 |
| - <%= f.input :username, required: true, autofocus: true %> |
8 |
| - <%= f.input :email, required: true, autofocus: true %> |
| 5 | + <h2>Edit <%= resource_name.to_s.humanize %></h2> |
9 | 6 |
|
10 |
| - <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> |
| 7 | + <%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %> |
| 8 | + <%= f.error_notification %> |
| 9 | + |
| 10 | + <div class="form-inputs"> |
| 11 | + <%= f.input :username, required: true, autofocus: true %> |
| 12 | + <%= f.input :email, required: true, autofocus: true %> |
| 13 | + |
| 14 | + <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> |
11 | 15 | <p>Currently waiting confirmation for: <%= resource.unconfirmed_email %></p>
|
12 |
| - <% end %> |
| 16 | + <% end %> |
13 | 17 |
|
14 |
| - <%= f.input :password, autocomplete: "off", hint: "leave it blank if you don't want to change it", required: false %> |
15 |
| - <%= f.input :password_confirmation, required: false %> |
16 |
| - <%= f.input :current_password, hint: "we need your current password to confirm your changes", required: true %> |
17 |
| - </div> |
| 18 | + <%= f.input :password, autocomplete: "off", hint: "leave it blank if you don't want to change it", required: false %> |
| 19 | + <%= f.input :password_confirmation, required: false %> |
| 20 | + <%= f.input :current_password, hint: "we need your current password to confirm your changes", required: true %> |
| 21 | + </div> |
18 | 22 |
|
19 |
| - <div class="form-actions"> |
20 |
| - <%= f.button :submit, "Update" %> |
21 |
| - </div> |
22 |
| -<% end %> |
| 23 | + <div class="form-actions"> |
| 24 | + <%= f.button :submit, "Update" %> |
| 25 | + </div> |
| 26 | + <% end %> |
23 | 27 |
|
24 |
| -<h3>Cancel my account</h3> |
| 28 | + <h3>Cancel my account</h3> |
25 | 29 |
|
26 |
| -<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p> |
| 30 | + <p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p> |
27 | 31 |
|
28 |
| -<%= link_to "Back", :back %> |
| 32 | + <%= link_to "Back", :back %> |
| 33 | + </div> |
| 34 | +</div> |
0 commit comments