mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
61 lines
1.5 KiB
Handlebars
61 lines
1.5 KiB
Handlebars
<DModalBody
|
|
@title="admin.reseed.modal.title"
|
|
@subtitle="admin.reseed.modal.subtitle"
|
|
@class="reseed-modal"
|
|
>
|
|
<ConditionalLoadingSpinner @condition={{this.loading}}>
|
|
{{#if this.categories}}
|
|
<fieldset>
|
|
<legend class="options-group-title">{{i18n
|
|
"admin.reseed.modal.categories"
|
|
}}</legend>
|
|
|
|
{{#each this.categories as |category|}}
|
|
<label>
|
|
<Input
|
|
class="option"
|
|
@type="checkbox"
|
|
@checked={{category.selected}}
|
|
/>
|
|
<span>{{category.name}}</span>
|
|
</label>
|
|
{{/each}}
|
|
</fieldset>
|
|
{{/if}}
|
|
|
|
<br />
|
|
|
|
{{#if this.topics}}
|
|
<fieldset>
|
|
<legend class="options-group-title">{{i18n
|
|
"admin.reseed.modal.topics"
|
|
}}</legend>
|
|
|
|
{{#each this.topics as |topic|}}
|
|
<label>
|
|
<Input
|
|
class="option"
|
|
@type="checkbox"
|
|
@checked={{topic.selected}}
|
|
/>
|
|
<span>{{topic.name}}</span>
|
|
</label>
|
|
{{/each}}
|
|
</fieldset>
|
|
{{/if}}
|
|
</ConditionalLoadingSpinner>
|
|
</DModalBody>
|
|
|
|
<div class="modal-footer">
|
|
<ConditionalLoadingSpinner @condition={{this.reseeding}} @size="small" />
|
|
<DButton
|
|
@action={{action "reseed"}}
|
|
@class="btn-danger"
|
|
@label="admin.reseed.modal.replace"
|
|
@disabled={{this.reseeding}}
|
|
/>
|
|
|
|
{{#unless this.reseeding}}
|
|
<DModalCancel @close={{route-action "closeModal"}} />
|
|
{{/unless}}
|
|
</div> |