2019-03-19 04:09:13 +08:00
|
|
|
{{#d-modal-body title="admin.reseed.modal.title" subtitle="admin.reseed.modal.subtitle" class="reseed-modal"}}
|
|
|
|
{{#conditional-loading-spinner 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}}
|
|
|
|
{{/conditional-loading-spinner}}
|
|
|
|
{{/d-modal-body}}
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2019-03-25 23:47:55 +08:00
|
|
|
{{conditional-loading-spinner condition=reseeding size="small"}}
|
2019-03-21 13:22:07 +08:00
|
|
|
{{d-button action=(action "reseed") class="btn-danger" label="admin.reseed.modal.replace" disabled=reseeding}}
|
2019-03-25 23:47:55 +08:00
|
|
|
|
|
|
|
{{#unless reseeding}}
|
|
|
|
{{d-modal-cancel close=(route-action "closeModal")}}
|
|
|
|
{{/unless}}
|
2019-03-19 04:09:13 +08:00
|
|
|
</div>
|