new.html.erb 953 B

123456789101112131415161718192021222324252627282930
  1. <% content_for :title, "Reset password" -%>
  2. <div class='row'>
  3. <div class='col-md-6 col-md-offset-3'>
  4. <div class='well'>
  5. <h2>Forgot your password?</h2>
  6. <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post, class: 'form-horizontal' }) do |f| %>
  7. <%= render "devise/shared/error_messages", resource: resource %>
  8. <div class="form-group">
  9. <%= f.label :login, :class => 'col-md-2 col-md-offset-2 control-label' %>
  10. <div class="col-md-6">
  11. <%= f.text_field :login, autofocus: true, :class => 'form-control' %>
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <div class="col-md-offset-4 col-md-10">
  16. <%= f.submit "Send me reset password instructions", class: "btn btn-primary" %>
  17. </div>
  18. </div>
  19. <% end %>
  20. <hr>
  21. <%= render "devise/shared/links" %>
  22. </div>
  23. </div>
  24. </div>