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

edit.html.erb 1.2KB

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