discourse/app/assets/javascripts/admin/addon/templates/modal/admin-silence-user.hbs
Jarek Radosz 16ea7ab248
DEV: Run angle-brackets codemod (#17286)
Co-authored-by: Peter Wagenet <peter.wagenet@gmail.com>
2022-06-30 12:30:50 +02:00

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>