2019-01-02 12:58:55 +03:00
<header class="modal-header" data-test-modal="delete-user">
2015-11-18 13:50:48 +03:00
<h1>Are you sure you want to delete this user?</h1>
</header>
2020-05-28 19:11:21 +03:00
<a class="close" href="" role="button" title="Close" {{ action "closeModal" }} > {{ svg-jar "close" }} <span class="hidden">Close</span></a>
2015-11-18 13:50:48 +03:00
<div class="modal-body">
2019-12-13 17:20:29 +03:00
{{ # if this .user .count .posts }}
2020-02-07 12:46:05 +03:00
<p>
2022-07-12 15:09:02 +03:00
<strong> {{ this .user .name }} </strong> will be permanently deleted and their <strong data-test-text="user-post-count"> {{ gh-pluralize this .user .count .posts 'post' }} </strong> will be automatically assigned to <strong> {{ this .ownerUser .name }} </strong>.
</p>
2022-07-14 17:11:43 +03:00
<p class="gh-transfer-tag">
2022-07-12 15:09:02 +03:00
To make these easy to find in the future, each post will be given an internal tag of <strong># {{ this .user .slug }} </strong>
2020-02-07 12:46:05 +03:00
</p>
2015-11-18 13:50:48 +03:00
{{ else }}
2020-02-07 12:46:05 +03:00
<p>
2022-07-08 11:37:56 +03:00
<strong> {{ this .user .name }} </strong> will be permanently deleted.
2020-02-07 12:46:05 +03:00
</p>
2015-11-18 13:50:48 +03:00
{{ / if }}
</div>
<div class="modal-footer">
2022-02-02 19:09:43 +03:00
<button class="gh-btn" data-test-button="cancel-delete-user" type="button" {{ action "closeModal" }} >
2019-01-02 12:58:55 +03:00
<span>Cancel</span>
</button>
2022-07-08 11:37:56 +03:00
<GhTaskButton @buttonText="Delete user"
2020-01-16 18:14:03 +03:00
@successText="Deleted"
@task= {{ this .deleteUser }}
@class="gh-btn gh-btn-red gh-btn-icon"
data-test-button="confirm-delete-user" />
2017-02-16 22:50:05 +03:00
</div>