mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 19:00:24 +08:00
49 lines
1.3 KiB
Handlebars
49 lines
1.3 KiB
Handlebars
<div class="penalty-reason-controls">
|
|
{{#if (eq @penaltyType "suspend")}}
|
|
<label class="suspend-reason-title">{{i18n
|
|
"admin.user.suspend_reason_title"
|
|
}}</label>
|
|
<ComboBox
|
|
@content={{this.reasons}}
|
|
@value={{this.selectedReason}}
|
|
@onChange={{this.setSelectedReason}}
|
|
class="suspend-reason"
|
|
/>
|
|
|
|
{{#if this.isCustomReason}}
|
|
<TextField
|
|
@value={{this.customReason}}
|
|
@onChange={{this.setCustomReason}}
|
|
class="suspend-reason"
|
|
/>
|
|
{{/if}}
|
|
{{else if (eq @penaltyType "silence")}}
|
|
<label class="silence-reason-title">
|
|
{{html-safe (i18n "admin.user.silence_reason_label")}}</label>
|
|
|
|
<ComboBox
|
|
@content={{this.reasons}}
|
|
@value={{this.selectedReason}}
|
|
@onChange={{this.setSelectedReason}}
|
|
class="silence-reason"
|
|
/>
|
|
|
|
{{#if this.isCustomReason}}
|
|
<TextField
|
|
@value={{this.customReason}}
|
|
@onChange={{this.setCustomReason}}
|
|
@placeholderKey="admin.user.silence_reason_placeholder"
|
|
class="silence-reason"
|
|
/>
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="penalty-message-controls">
|
|
<label>{{i18n "admin.user.suspend_message"}}</label>
|
|
<Textarea
|
|
@value={{this.message}}
|
|
class="suspend-message"
|
|
placeholder={{i18n "admin.user.suspend_message_placeholder"}}
|
|
/>
|
|
</div> |