2016-11-16 06:09:55 +08:00
|
|
|
{{#d-modal-body title="admin.user.suspend_modal_title"}}
|
2017-09-14 01:06:41 +08:00
|
|
|
<div class='duration-controls'>
|
|
|
|
<label>
|
|
|
|
{{i18n 'admin.user.suspend_duration'}}
|
|
|
|
{{text-field value=duration maxlength="5" autofocus="autofocus" class="suspend-duration"}}
|
|
|
|
{{i18n 'admin.user.suspend_duration_units'}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='reason-controls'>
|
|
|
|
<label>
|
|
|
|
<div class='suspend-reason-label'>
|
|
|
|
{{#if siteSettings.hide_suspension_reasons}}
|
|
|
|
{{{i18n 'admin.user.suspend_reason_hidden_label'}}}
|
|
|
|
{{else}}
|
|
|
|
{{{i18n 'admin.user.suspend_reason_label'}}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{text-field
|
|
|
|
value=reason
|
|
|
|
class="suspend-reason"
|
|
|
|
placeholderKey="admin.user.suspend_reason_placeholder"}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<label>
|
|
|
|
<div class='suspend-message-label'>
|
|
|
|
{{i18n "admin.user.suspend_message"}}
|
|
|
|
</div>
|
|
|
|
{{textarea
|
|
|
|
value=message
|
|
|
|
class="suspend-message"
|
|
|
|
placeholder=(i18n "admin.user.suspend_message_placeholder")}}
|
|
|
|
</label>
|
2017-09-13 04:06:01 +08:00
|
|
|
|
2016-11-16 06:09:55 +08:00
|
|
|
{{/d-modal-body}}
|
|
|
|
|
2013-11-01 22:47:03 +08:00
|
|
|
<div class="modal-footer">
|
2017-09-13 05:07:42 +08:00
|
|
|
{{d-button
|
|
|
|
class="btn-danger perform-suspend"
|
|
|
|
action="suspend"
|
|
|
|
disabled=submitDisabled
|
|
|
|
icon="ban"
|
|
|
|
label="admin.user.suspend"}}
|
2017-09-14 01:23:19 +08:00
|
|
|
{{d-modal-cancel close=(action "closeModal")}}
|
2017-09-14 02:11:33 +08:00
|
|
|
{{conditional-loading-spinner condition=loading size="small"}}
|
2013-11-01 22:47:03 +08:00
|
|
|
</div>
|