mirror of
https://github.com/discourse/discourse.git
synced 2024-12-26 04:43:42 +08:00
a914d3230b
Followup to 7d8974d02f
Co-authored-by: David Taylor <david@taylorhq.com>
36 lines
882 B
Handlebars
36 lines
882 B
Handlebars
<DModal
|
|
@title={{html-safe
|
|
(i18n
|
|
"admin.user.delete_posts.confirmation.title" username=@model.user.username
|
|
)
|
|
}}
|
|
@closeModal={{@closeModal}}
|
|
>
|
|
<:body>
|
|
<p>{{html-safe
|
|
(i18n
|
|
"admin.user.delete_posts.confirmation.description"
|
|
username=@model.user.username
|
|
post_count=@model.user.post_count
|
|
text=this.text
|
|
)
|
|
}}</p>
|
|
<Input @type="text" @value={{this.value}} />
|
|
</:body>
|
|
<:footer>
|
|
<DButton
|
|
class="btn-danger"
|
|
@action={{@model.deleteAllPosts}}
|
|
@icon="trash-can"
|
|
@disabled={{this.deleteDisabled}}
|
|
@translatedLabel={{i18n
|
|
"admin.user.delete_posts.confirmation.delete"
|
|
username=@model.user.username
|
|
}}
|
|
/>
|
|
<DButton
|
|
@action={{@closeModal}}
|
|
@label="admin.user.delete_posts.confirmation.cancel"
|
|
/>
|
|
</:footer>
|
|
</DModal> |