2017-11-13 13:41:36 -05:00
|
|
|
{{#d-modal-body title="admin.user.silence_modal_title"}}
|
|
|
|
{{#conditional-loading-spinner condition=loadingUser}}
|
|
|
|
|
|
|
|
<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
|
2017-11-13 13:41:36 -05:00
|
|
|
input=silenceUntil}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
2018-01-10 14:56:51 -05:00
|
|
|
{{silence-details reason=reason message=message}}
|
2018-01-30 16:31:29 -05:00
|
|
|
{{#if post}}
|
|
|
|
{{penalty-post-action
|
|
|
|
post=post
|
|
|
|
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>
|