Format
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
<h2 class="margin-none txt-large txt-negative">Delete account</h2>
|
||||
<div class="txt-align-start">
|
||||
<h3 class="margin-block-start margin-block-end-half txt-normal">What happens next:</h3>
|
||||
|
||||
<ul class="list-unindented margin-block-start-half margin-block-end">
|
||||
<li>Your <strong><%= Current.account.name %></strong> account will be closed immediately.</li>
|
||||
<li>All users, including you, will lose access.</li>
|
||||
@@ -23,7 +22,6 @@
|
||||
</ul>
|
||||
|
||||
<h3 class="margin-block-end-half txt-normal">Remember to export your data</h3>
|
||||
|
||||
<p class="margin-block-start-half margin-block-end">
|
||||
<button type="button" class="btn btn--plain txt-link" data-controller="dispatch-event" data-dispatch-event-name-value="open-export" data-action="click->dialog#close click->dispatch-event#dispatch">Export your data</button> before you go. You won’t be able to do it after you delete your account.
|
||||
</p>
|
||||
@@ -36,7 +34,12 @@
|
||||
|
||||
<div class="flex gap justify-center">
|
||||
<button type="button" class="btn" autofocus data-action="dialog#close">Not now</button>
|
||||
<%= button_to "Delete my account", account_cancellation_path, method: :post, class: "btn btn--negative", disabled: true, form: { data: { action: "submit->dialog#close", turbo: false } }, data: { toggle_enable_target: "element" } %>
|
||||
<%= button_to "Delete my account", account_cancellation_path,
|
||||
method: :post,
|
||||
class: "btn btn--negative",
|
||||
disabled: true,
|
||||
form: { data: { action: "submit->dialog#close", turbo: false } },
|
||||
data: { toggle_enable_target: "element" } %>
|
||||
</div>
|
||||
</dialog>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user