<% toolbar :profile => current_subject %> <%= location(image_tag("btn/btn_account.png", :class => "menu_icon")+t('account.one'), link_to(t('account.edit'), edit_user_registration_path) ) %> <%= devise_error_messages! %> <% content_for :javascript do %> $(".user_edit").validate(); <%end%>

<%= t('account.edit') %>

<%=t("account.password.change")%>
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
<%= f.label t('account.password.new') %>
<%= f.password_field :password, :class => "form_tag" %>
<%= f.label t('account.password.retype') %>
<%= f.password_field :password_confirmation, :class => "form_tag" %>
<%= f.label :current_password %>
<%= f.password_field :current_password, :class => "form_tag" %>
<%= f.submit t('button.update'), :class => "button" %>
<% end%>
<%=t("account.email.change")%>
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
<%= f.label :email %>
<%= f.email_field :email, :class => "required form_tag" %>
<%= f.label :current_password %>
<%= f.password_field :current_password, :class => "required form_tag" %>
<%= f.submit t('button.update'), :class => "button" %>
<% end%>
<%=t("account.cancel")%>
Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.