mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
37 lines
1.1 KiB
Handlebars
37 lines
1.1 KiB
Handlebars
|
{{#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">
|
||
|
{{d-button action=(action "reseed") class="btn-danger" label="go_ahead" disabled=reseeding}}
|
||
|
{{d-modal-cancel close=(route-action "closeModal")}}
|
||
|
</div>
|