discourse/app/assets/javascripts/admin/addon/templates/modal/admin-reseed.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

41 lines
1.3 KiB
Handlebars

<DModalBody @title="admin.reseed.modal.title" @subtitle="admin.reseed.modal.subtitle" @class="reseed-modal">
<ConditionalLoadingSpinner @condition={{loading}}>
{{#if categories}}
<fieldset>
<legend class="options-group-title">{{i18n "admin.reseed.modal.categories"}}</legend>
{{#each categories as |category|}}
<label>
<Input class="option" @type="checkbox" @checked={{category.selected}} />
<span>{{category.name}}</span>
</label>
{{/each}}
</fieldset>
{{/if}}
<br>
{{#if topics}}
<fieldset>
<legend class="options-group-title">{{i18n "admin.reseed.modal.topics"}}</legend>
{{#each 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={{reseeding}} @size="small" />
<DButton @action={{action "reseed"}} @class="btn-danger" @label="admin.reseed.modal.replace" @disabled={{reseeding}} />
{{#unless reseeding}}
<DModalCancel @close={{route-action "closeModal"}} />
{{/unless}}
</div>