A website template with lots of features, built with ruby on rails.

edit.html.erb 1.1KB

1234567891011121314151617181920212223
  1. <%= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
  2. <div class="span4 offset4 well" style="">
  3. <div class="login-panel panel panel-default">
  4. <div class="panel-heading">
  5. <h3 class="panel-title"><%= t 'registration.change_your_password' %></h3>
  6. </div>
  7. <div class="panel-body">
  8. <form role="form">
  9. <% bootstrap_flash %>
  10. <%= f.alert_message "Please fix the errors below."%>
  11. <%= f.hidden_field :reset_password_token %>
  12. <fieldset>
  13. <%= f.password_field :password, label: (t 'registration.new_password'), required: true, autofocus: true, class: "input-block-level" %>
  14. <%= f.password_field :password_confirmation, label: (t 'registration.confirm_your_new_password'), required: true, class: "input-block-level" %>
  15. <div class="form-group" style="margin-top: 25px;">
  16. <%= f.submit t 'registration.change_password' %>
  17. </div>
  18. </fieldset>
  19. </form>
  20. </div>
  21. </div>
  22. </div>
  23. <% end %>