discourse/app/assets/javascripts/admin/addon/templates/components/suspension-details.hbs
Jarek Radosz 16ea7ab248
DEV: Run angle-brackets codemod (#17286)
Co-authored-by: Peter Wagenet <peter.wagenet@gmail.com>
2022-06-30 12:30:50 +02:00

26 lines
877 B
Handlebars

<div class="reason-controls">
<label>
<div class="suspend-reason-label">
{{#if siteSettings.hide_suspension_reasons}}
{{html-safe (i18n "admin.user.suspend_reason_hidden_label")}}
{{else}}
{{html-safe (i18n "admin.user.suspend_reason_label")}}
{{/if}}
</div>
</label>
<label>
{{i18n "admin.user.suspend_reason_title"}}
</label>
<ComboBox @content={{reasons}} @value={{selectedReason}} @class="suspend-reason" @onChange={{action setSelectedReason}} />
{{#if isCustomReason}}
<TextField @value={{customReason}} @class="suspend-reason" @onChange={{action setCustomReason}} />
{{/if}}
</div>
<label>
<div class="suspend-message-label">
{{i18n "admin.user.suspend_message"}}
</div>
</label>
<Textarea @value={{message}} class="suspend-message" placeholder={{i18n "admin.user.suspend_message_placeholder"}} />