OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/views/users/deletion_info.html.erb

29 lines
898 B

<h2><%=l('account.deletion_info.heading', :name => @user.name) %></h2>
<%= form_for :user, :url => user_path(@user), :html => { :method => :delete, :class => 'confirm_required' } do |form| %>
<div class='wiki'>
<p>
<%= l("account.deletion_info.login_consequences.#{User.current == @user ? 'self' : 'other'}") %>
</p>
<p>
<%= l("account.deletion_info.data_consequences.#{User.current == @user ? 'self' : 'other'}") %>
</p>
<p>
<%= l("account.deletion_info.info.#{User.current == @user ? 'self' : 'other'}") %>
</p>
</div>
<p>
<%= form.submit l(:button_delete) %>
<%= link_to l(:button_cancel), { :controller => '/my', :action => 'account' } %>
</p>
<% end %>
<%= javascript_tag do -%>
jQuery(document).ready(function() {
SubmitConfirm.init(jQuery('.confirm_required'), '<%= l('account.delete_confirmation') %>');
});
<% end -%>