discourse/app/assets/javascripts/admin/templates/modal/admin-suspend-user.hbs

22 lines
744 B
Handlebars

{{#d-modal-body title="admin.user.suspend_modal_title"}}
<form>
{{i18n 'admin.user.suspend_duration'}}
{{text-field value=duration maxlength="5" autofocus="autofocus"}}
{{i18n 'admin.user.suspend_duration_units'}}<br/>
<br/>
{{#if siteSettings.hide_suspension_reasons}}
{{{i18n 'admin.user.suspend_reason_hidden_label'}}}<br/>
{{else}}
{{{i18n 'admin.user.suspend_reason_label'}}}<br/>
{{/if}}
<br/>
{{text-field value=reason class="span8"}}
</form>
{{/d-modal-body}}
<div class="modal-footer">
<button class='btn btn-danger' {{action "suspend"}} disabled={{submitDisabled}}>{{d-icon "ban"}}{{i18n 'admin.user.suspend'}}</button>
<a {{action "closeModal"}}>{{i18n 'cancel'}}</a>
</div>