2016-11-15 17:09:55 -05:00
|
|
|
{{#d-modal-body title="admin.user.suspend_modal_title"}}
|
2017-09-14 14:10:39 -04:00
|
|
|
{{#conditional-loading-spinner condition=loadingUser}}
|
2017-09-13 13:06:41 -04:00
|
|
|
|
2017-09-14 14:10:39 -04:00
|
|
|
{{#if user.canSuspend}}
|
2020-04-14 02:18:49 -04:00
|
|
|
<div class="until-controls">
|
2017-09-14 14:10:39 -04:00
|
|
|
<label>
|
|
|
|
{{future-date-input
|
|
|
|
class="suspend-until"
|
|
|
|
label="admin.user.suspend_duration"
|
2017-10-26 13:50:31 -04:00
|
|
|
includeFarFuture=true
|
2018-10-25 20:34:55 -04:00
|
|
|
clearable=false
|
2020-02-03 08:22:14 -05:00
|
|
|
input=suspendUntil
|
|
|
|
onChangeInput=(action (mut suspendUntil))
|
|
|
|
}}
|
2017-09-14 14:10:39 -04:00
|
|
|
</label>
|
2017-09-13 13:06:41 -04:00
|
|
|
</div>
|
2018-01-10 14:56:51 -05:00
|
|
|
{{suspension-details reason=reason message=message}}
|
2017-09-13 13:06:41 -04:00
|
|
|
|
2019-01-03 12:03:01 -05:00
|
|
|
{{#if postId}}
|
2018-01-30 16:31:29 -05:00
|
|
|
{{penalty-post-action
|
2019-01-03 12:03:01 -05:00
|
|
|
postId=postId
|
2018-01-30 16:31:29 -05:00
|
|
|
postAction=postAction
|
|
|
|
postEdit=postEdit}}
|
|
|
|
{{/if}}
|
|
|
|
|
2017-09-14 14:10:39 -04:00
|
|
|
{{else}}
|
2020-04-14 02:18:49 -04:00
|
|
|
<div class="cant-suspend">
|
2017-09-14 14:10:39 -04:00
|
|
|
{{i18n "admin.user.cant_suspend"}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{/conditional-loading-spinner}}
|
2017-09-12 16:06:01 -04:00
|
|
|
|
2016-11-15 17:09:55 -05:00
|
|
|
{{/d-modal-body}}
|
|
|
|
|
2013-11-01 10:47:03 -04:00
|
|
|
<div class="modal-footer">
|
2017-09-12 17:07:42 -04:00
|
|
|
{{d-button
|
|
|
|
class="btn-danger perform-suspend"
|
2019-01-10 05:06:01 -05:00
|
|
|
action=(action "suspend")
|
2017-09-12 17:07:42 -04:00
|
|
|
disabled=submitDisabled
|
|
|
|
icon="ban"
|
|
|
|
label="admin.user.suspend"}}
|
2019-01-10 05:06:01 -05:00
|
|
|
{{d-modal-cancel close=(route-action "closeModal")}}
|
2017-09-13 14:11:33 -04:00
|
|
|
{{conditional-loading-spinner condition=loading size="small"}}
|
2013-11-01 10:47:03 -04:00
|
|
|
</div>
|