2017-11-13 13:41:36 -05:00
|
|
|
{{#d-modal-body title="admin.user.silence_modal_title"}}
|
|
|
|
{{#conditional-loading-spinner condition=loadingUser}}
|
|
|
|
|
2020-11-03 10:38:56 -05:00
|
|
|
{{#if errorMessage}}
|
|
|
|
<div class="alert alert-error">{{errorMessage}}</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2017-11-13 13:41:36 -05:00
|
|
|
<div class="until-controls">
|
|
|
|
<label>
|
|
|
|
{{future-date-input
|
|
|
|
class="silence-until"
|
|
|
|
label="admin.user.silence_duration"
|
|
|
|
includeFarFuture=true
|
2018-10-25 20:34:55 -04:00
|
|
|
clearable=false
|
2020-02-03 08:22:14 -05:00
|
|
|
input=silenceUntil
|
|
|
|
onChangeInput=(action (mut silenceUntil))
|
|
|
|
}}
|
2017-11-13 13:41:36 -05:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
2018-01-10 14:56:51 -05:00
|
|
|
{{silence-details reason=reason message=message}}
|
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-11-13 13:41:36 -05:00
|
|
|
|
|
|
|
{{/conditional-loading-spinner}}
|
|
|
|
|
|
|
|
{{/d-modal-body}}
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
{{d-button
|
|
|
|
class="btn-danger perform-silence"
|
2019-01-10 05:06:01 -05:00
|
|
|
action=(action "silence")
|
2017-11-13 13:41:36 -05:00
|
|
|
disabled=submitDisabled
|
|
|
|
icon="microphone-slash"
|
|
|
|
label="admin.user.silence"}}
|
2019-01-10 05:06:01 -05:00
|
|
|
{{d-modal-cancel close=(route-action "closeModal")}}
|
2017-11-13 13:41:36 -05:00
|
|
|
{{conditional-loading-spinner condition=loading size="small"}}
|
2018-01-10 13:19:37 -05:00
|
|
|
</div>
|