Skip to content

Commit 63302fb

Browse files
authored
enh: Improve danger-zone layout (#4039)
1 parent 46ad4ce commit 63302fb

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed
Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
<div class="row">
2-
{{#if isUserDeletable}}
3-
<p>
4-
{{t 'All user data will be deleted. Your user data will be entirely erased and any data that will stay
5-
in the system for accounting purposes will be anonymised and there will be no link to any of your personal information.
6-
Once you delete this account, you will have no longer access to the system.'}}
7-
</p>
8-
<button {{action 'openDeleteUserModal' data.user.id data.user.email}} class='ui red button'>
9-
{{t 'Delete Your Account'}}
10-
</button>
2+
<div class="ui grid">
3+
<div class="ui left aligned sixteen wide mobile ten wide computer column">
4+
<h3 class="ui header">
5+
{{t 'Delete Your Account'}}
6+
</h3>
7+
<p class="ui muted text">
8+
{{#if isUserDeletable}}
9+
{{t 'All user data will be deleted. Your user data will be entirely erased and any data that will stay
10+
in the system for accounting purposes will be anonymised and there will be no link to any of your personal information.
11+
Once you delete this account, you will have no longer access to the system.'}}
12+
{{else}}
13+
{{t 'Your account currently cannot be deleted as active events and/or orders are associated with it.
14+
Before you can delete your account you must transfer the ownership of your event(s) to another organizer or cancel your event(s).
15+
If you have ticket orders stored in the system, please cancel your orders first too.'}}
16+
{{/if}}
17+
</p>
18+
</div>
19+
<div class="ui right aligned sixteen wide mobile six wide computer column">
20+
<button {{action 'openDeleteUserModal' data.user.id data.user.email}} class={{if isUserDeletable 'ui labeled icon red button' 'ui labeled icon red button disabled'}}>
21+
<i class="trash icon"></i>
22+
{{t 'Delete Your Account'}}
23+
</button>
24+
</div>
1125
{{modals/user-delete-modal isLoading=isLoading isOpen=isUserDeleteModalOpen openConfirmDeleteUserModal=(action 'openConfirmDeleteUserModal') confirmEmail=confirmEmail userEmail=userEmail deleteUser=(action 'deleteUser' data.user)}}
1226
{{modals/confirm-user-delete-modal isLoading=isLoading isOpen=isConfirmUserDeleteModalOpen checked=checked deleteUser=(action 'deleteUser' data.user)}}
13-
{{else}}
14-
<p>
15-
{{t 'Your account currently cannot be deleted as active events and/or orders are associated with it.
16-
Before you can delete your account you must transfer the ownership of your event(s) to another organizer or cancel your event(s).
17-
If you have ticket orders stored in the system, please cancel your orders first too.'}}
18-
</p>
19-
<button class='ui red button disabled'>
20-
{{t 'Delete Your Account'}}
21-
</button>
22-
{{/if}}
27+
</div>
2328
</div>

0 commit comments

Comments
 (0)