31 lines
1.2 KiB
Plaintext
Executable File
31 lines
1.2 KiB
Plaintext
Executable File
<div class="module" style="padding:15px 25px 0px 25px;">
|
|
<div class='module_header'>
|
|
<h4>User Control Panel </h4>
|
|
</div>
|
|
<br/>
|
|
|
|
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
|
<%= devise_error_messages! %>
|
|
|
|
<p><%= f.label :email %>
|
|
<%= f.email_field :email %></p>
|
|
|
|
<p><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br/>
|
|
<%= f.password_field :password %></p>
|
|
|
|
<p><%= f.label :password_confirmation %>
|
|
<%= f.password_field :password_confirmation %></p>
|
|
|
|
<p><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
|
<%= f.password_field :current_password %></p>
|
|
|
|
<p>
|
|
<%= f.submit "Update", :class=> 'btn btn-primary'%> <%= button_tag "Cancel", :confirm => 'Are you sure? Any changes will be lost.', :class => 'btn', :type => 'submit', :name => 'commit', :value => 'cancel' %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<h3>Unhappy?</h3>
|
|
<%= button_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete, :class =>'btn btn-danger' %>
|
|
<div class="clear"></div>
|
|
</div>
|