Created
December 5, 2013 13:40
-
-
Save askehansen/7805278 to your computer and use it in GitHub Desktop.
passwords/new.html.erb for devise and bootstrap 3.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-sm-offset-2 col-sm-4"> | |
<h1>Forgot your password?</h1> | |
</div> | |
</div> | |
<hr> | |
<div class="row"> | |
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post, class: 'form-horizontal' }) do |f| %> | |
<%= devise_error_messages! %> | |
<div class="form-group"> | |
<label class="col-sm-2 control-label"><%= f.label :email %></label> | |
<div class="col-sm-4"> | |
<%= f.email_field :email, class: 'form-control', :autofocus => true %> | |
</div> | |
</div> | |
<div class="form-group"> | |
<div class="col-sm-offset-2 col-sm-4"> | |
<%= f.submit "Send me reset password instructions", class: 'btn btn-primary' %> | |
</div> | |
</div> | |
<% end %> | |
</div> | |
<hr> | |
<div class="row"> | |
<div class="col-sm-offset-2 col-sm-3"> | |
<%= render "devise/shared/links" %> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment