-
Notifications
You must be signed in to change notification settings - Fork 112
/
show.html.erb
44 lines (37 loc) · 1.32 KB
/
show.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<% title t('titles.confirmations.delete') %>
<%= render PageHeadingComponent.new.with_content(t('users.delete.heading')) %>
<p class="margin-bottom-1">
<%= t('users.delete.subheading') %>
</p>
<ul>
<li class="margin-bottom-1"><%= t('users.delete.bullet_1', app_name: APP_NAME) %></li>
<li class="margin-bottom-1"><%= current_user.decorate.delete_account_bullet_key %></li>
<li class="margin-bottom-1"><%= t('users.delete.bullet_3', app_name: APP_NAME) %></li>
<li class="margin-bottom-1"><%= t('users.delete.bullet_4', app_name: APP_NAME) %></li>
</ul>
<%= simple_form_for(
current_user,
url: account_delete_path,
html: { autocomplete: 'off', method: :post },
) do |f| %>
<p class="margin-bottom-4">
<%= t('users.delete.instructions') %>
</p>
<%= render ValidatedFieldComponent.new(
form: f,
name: :password,
label: t('idv.form.password'),
required: true,
input_html: { class: 'password-toggle' },
) %>
<%= f.button(
:submit,
t('users.delete.actions.delete'),
class: 'usa-button--big usa-button--wide usa-button--danger margin-top-1 margin-bottom-2',
) %>
<% end %>
<%= link_to(
t('users.delete.actions.cancel'),
account_path,
class: 'usa-button usa-button--big usa-button--wide usa-button--outline',
) %>