Site para o estudio Velvet Design em São Paulo. http://velvetdesign.com.br

edit.html.erb 1.1KB

    <%= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> <div class="span4 offset4 well" style=""> <div class="login-panel panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><%= t 'registration.change_your_password' %></h3> </div> <div class="panel-body"> <form role="form"> <% bootstrap_flash %> <%= f.alert_message "Please fix the errors below."%> <%= f.hidden_field :reset_password_token %> <fieldset> <%= f.password_field :password, label: (t 'registration.new_password'), required: true, autofocus: true, class: "input-block-level" %> <%= f.password_field :password_confirmation, label: (t 'registration.confirm_your_new_password'), required: true, class: "input-block-level" %> <div class="form-group" style="margin-top: 25px;"> <%= f.submit t 'registration.change_password' %> </div> </fieldset> </form> </div> </div> </div> <% end %>