Add extensibility for suspension reasons
This commit is contained in:
parent
9f7ae908d8
commit
01726e68ab
|
@ -0,0 +1,25 @@
|
||||||
|
<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>
|
||||||
|
</label>
|
||||||
|
{{text-field
|
||||||
|
value=reason
|
||||||
|
class="suspend-reason"
|
||||||
|
placeholderKey="admin.user.suspend_reason_placeholder"}}
|
||||||
|
</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")}}
|
|
@ -11,32 +11,8 @@
|
||||||
input=suspendUntil}}
|
input=suspendUntil}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
{{suspension-details reason=reason message=message}}
|
||||||
|
|
||||||
<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>
|
|
||||||
</label>
|
|
||||||
{{text-field
|
|
||||||
value=reason
|
|
||||||
class="suspend-reason"
|
|
||||||
placeholderKey="admin.user.suspend_reason_placeholder"}}
|
|
||||||
</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")}}
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class='cant-suspend'>
|
<div class='cant-suspend'>
|
||||||
{{i18n "admin.user.cant_suspend"}}
|
{{i18n "admin.user.cant_suspend"}}
|
||||||
|
|
Loading…
Reference in New Issue