mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 20:33:49 +08:00
16ea7ab248
Co-authored-by: Peter Wagenet <peter.wagenet@gmail.com>
30 lines
1.0 KiB
Handlebars
30 lines
1.0 KiB
Handlebars
<DModalBody @title="admin.user.silence_modal_title">
|
|
<ConditionalLoadingSpinner @condition={{loadingUser}}>
|
|
|
|
{{#if errorMessage}}
|
|
<div class="alert alert-error">{{errorMessage}}</div>
|
|
{{/if}}
|
|
|
|
<AdminPenaltyHistory @user={{user}} />
|
|
|
|
<div class="until-controls">
|
|
<label>
|
|
<FutureDateInput @class="silence-until" @label="admin.user.silence_duration" @clearable={{false}} @input={{silenceUntil}} @onChangeInput={{action (mut silenceUntil)}} />
|
|
</label>
|
|
</div>
|
|
|
|
<SilenceDetails @reason={{reason}} @message={{message}} />
|
|
{{#if postId}}
|
|
<PenaltyPostAction @postId={{postId}} @postAction={{postAction}} @postEdit={{postEdit}} />
|
|
{{/if}}
|
|
|
|
</ConditionalLoadingSpinner>
|
|
|
|
</DModalBody>
|
|
|
|
<div class="modal-footer">
|
|
<DButton @class="btn-danger perform-silence" @action={{action "silence"}} @disabled={{submitDisabled}} @icon="microphone-slash" @label="admin.user.silence" />
|
|
<DModalCancel @close={{route-action "closeModal"}} />
|
|
<ConditionalLoadingSpinner @condition={{loading}} @size="small" />
|
|
</div>
|