mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 18:53:42 +08:00
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-alt"
|
||
|
@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>
|