new.html.erb 873 B

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