mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
34 lines
1.4 KiB
Handlebars
34 lines
1.4 KiB
Handlebars
|
<div class="modal-content" data-test-modal="delete-user">
|
||
|
<header class="modal-header">
|
||
|
<h1>Are you sure you want to delete this user?</h1>
|
||
|
</header>
|
||
|
<button type="button" class="close" title="Close" {{on "click" @close}}>{{svg-jar "close"}}<span class="hidden">Close</span></button>
|
||
|
|
||
|
<div class="modal-body">
|
||
|
{{#if @data.user.count.posts}}
|
||
|
<p>
|
||
|
<strong>{{@data.user.name}}</strong> will be permanently deleted and their <strong data-test-text="user-post-count">{{gh-pluralize @data.user.count.posts 'post'}}</strong> will be automatically assigned to <strong>{{this.ownerUser.name}}</strong>.
|
||
|
</p>
|
||
|
|
||
|
<p class="gh-transfer-tag">
|
||
|
To make these easy to find in the future, each post will be given an internal tag of <strong>#{{@data.user.slug}}</strong>
|
||
|
</p>
|
||
|
{{else}}
|
||
|
<p>
|
||
|
<strong>{{@data.user.name}}</strong> will be permanently deleted.
|
||
|
</p>
|
||
|
{{/if}}
|
||
|
</div>
|
||
|
|
||
|
<div class="modal-footer">
|
||
|
<button class="gh-btn" data-test-button="cancel-delete-user" type="button" {{on "click" @close}}>
|
||
|
<span>Cancel</span>
|
||
|
</button>
|
||
|
<GhTaskButton
|
||
|
@buttonText="Delete user"
|
||
|
@successText="Deleted"
|
||
|
@task={{this.deleteUserTask}}
|
||
|
@class="gh-btn gh-btn-red gh-btn-icon"
|
||
|
data-test-button="confirm-delete-user" />
|
||
|
</div>
|
||
|
</div>
|