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