-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73f7884
commit e25f4c7
Showing
2 changed files
with
40 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,46 @@ | ||
<h2>Edit <%= resource_name.to_s.humanize %></h2> | ||
|
||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %> | ||
<%= devise_error_messages! %> | ||
|
||
<div><%= f.label :email %><br /> | ||
<%= f.email_field :email %></div> | ||
|
||
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br /> | ||
<%= f.password_field :password %></div> | ||
|
||
<div><%= f.label :password_confirmation %><br /> | ||
<%= f.password_field :password_confirmation %></div> | ||
|
||
<div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br /> | ||
<%= f.password_field :current_password %></div> | ||
|
||
<div><%= f.submit "Update" %></div> | ||
<div class="control-group"> | ||
<%= f.label :name, :class => "control-label" %> | ||
<div class="controls"> | ||
<%= f.text_field :name %> | ||
</div> | ||
</div> | ||
|
||
<div class="control-group"> | ||
<%= f.label :email, :class => "control-label" %> | ||
<div class="controls"> | ||
<%= f.email_field :email %> | ||
</div> | ||
</div> | ||
|
||
<div class="control-group"> | ||
<%= f.label :password, :class => "control-label" %> | ||
<div class="controls"> | ||
<%= f.password_field :password %> | ||
<p class="help-block">Deixe em branco caso não queira alterar.</p> | ||
</div> | ||
</div> | ||
|
||
<div class="control-group"> | ||
<%= f.label :password_confirmation, :class => "control-label" %> | ||
<div class="controls"> | ||
<%= f.password_field :password_confirmation %> | ||
</div> | ||
</div> | ||
|
||
<div class="control-group"> | ||
<%= f.label :current_password, :class => "control-label" %> | ||
<div class="controls"> | ||
<%= f.password_field :current_password %> | ||
</div> | ||
<p class="help-block">Entre com sua senha atual para confirmar as alterações.</p> | ||
</div> | ||
|
||
<%= f.submit "Atualizar", :class => "btn" %> | ||
<% end %> | ||
|
||
<h3>Cancel my account</h3> | ||
|
||
<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p> | ||
|
||
<%= link_to "Back", :back %> |
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