Skip to content

Instantly share code, notes, and snippets.

@dareddov
Created June 4, 2018 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dareddov/7f55178bb39a5155f07fc4ca53d9e91a to your computer and use it in GitHub Desktop.
Save dareddov/7f55178bb39a5155f07fc4ca53d9e91a to your computer and use it in GitHub Desktop.
<div class="row">
<div class="col-lg-6 col-lg-offset-3 col-md-6 col-md-offset-3">
<div class="row">
<div class="col-sm-9 col-sm-offset-3">
<%= image_tag "Bode_BLK.svg", class: "devise-logo" %>
<h2 class="text-center">Change your password</h2>
</div>
</div>
<%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
<%= f.error_notification %>
<div class="form-inputs">
<%= f.input :password, autofocus: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %>
<%= f.input :password_confirmation %>
</div>
<div class="row">
<div class="col-sm-9 col-sm-offset-3">
<div class="form-actions">
<%= f.button :submit, "Change my password", class: "btn-primary btn-block" %>
</div>
<%= render "devise/shared/links" %>
</div>
</div>
<% end %>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment