<%=l('account.deletion_info.heading', :name => @user.name) %>

<% form_for :user, :url => user_path(@user), :html => { :method => :delete, :class => 'confirm_required' } do |form| %>

<%= l("account.deletion_info.login_consequences.#{User.current == @user ? 'self' : 'other'}") %>

<%= l("account.deletion_info.data_consequences.#{User.current == @user ? 'self' : 'other'}") %>

<%= l("account.deletion_info.info.#{User.current == @user ? 'self' : 'other'}") %>

<%= form.submit l(:button_delete) %> <%= link_to l(:button_cancel), { :controller => 'my', :action => 'account' } %>

<% end %> <% javascript_tag do -%> jQuery(document).ready(function() { SubmitConfirm.init(jQuery('.confirm_required'), '<%= l('account.delete_confirmation') %>'); }); <% end -%>