Add extensibility for suspension reasons

This commit is contained in:
Robin Ward 2018-01-10 12:52:31 -05:00
parent 9f7ae908d8
commit 01726e68ab
2 changed files with 26 additions and 25 deletions

View File

@ -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")}}

View File

@ -11,32 +11,8 @@
input=suspendUntil}}
</label>
</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}}
<div class='cant-suspend'>
{{i18n "admin.user.cant_suspend"}}