discourse/app/assets/javascripts/admin/addon/templates/modal/admin-suspend-user.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.3 KiB
Handlebars
Raw Normal View History

<DModalBody @title="admin.user.suspend_modal_title">
<ConditionalLoadingSpinner @condition={{this.loadingUser}}>
2017-09-13 13:06:41 -04:00
{{#if this.errorMessage}}
<div class="alert alert-error">{{this.errorMessage}}</div>
{{/if}}
{{#if this.user.canSuspend}}
<AdminPenaltyHistory @user={{this.user}} />
2017-09-14 14:10:39 -04:00
<div class="until-controls">
<label>
<FutureDateInput @class="suspend-until" @label="admin.user.suspend_duration" @clearable={{false}} @input={{this.suspendUntil}} @onChangeInput={{action (mut this.suspendUntil)}} />
2017-09-14 14:10:39 -04:00
</label>
2017-09-13 13:06:41 -04:00
</div>
<SuspensionDetails @reason={{this.reason}} @message={{this.message}} />
2017-09-13 13:06:41 -04:00
{{#if this.postId}}
<PenaltyPostAction @postId={{this.postId}} @postAction={{this.postAction}} @postEdit={{this.postEdit}} />
{{/if}}
2017-09-14 14:10:39 -04:00
{{else}}
<div class="cant-suspend">
{{i18n "admin.user.cant_suspend"}}
</div>
{{/if}}
</ConditionalLoadingSpinner>
</DModalBody>
2016-11-15 17:09:55 -05:00
<div class="modal-footer">
<DButton @class="btn-danger perform-suspend" @action={{action "suspend"}} @disabled={{this.submitDisabled}} @icon="ban" @label="admin.user.suspend" />
<DModalCancel @close={{route-action "closeModal"}} />
<ConditionalLoadingSpinner @condition={{this.loading}} @size="small" />
</div>