discourse/app/assets/javascripts/admin/addon/templates/modal/admin-edit-badge-groupings.hbs

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

31 lines
1.3 KiB
Handlebars
Raw Normal View History

<DModalBody @title="admin.badges.badge_groupings.modal_title" @class="badge-groupings-modal">
2019-01-23 05:29:51 -05:00
<div class="badge-groupings">
<ul class="badge-groupings-list">
{{#each this.workingCopy as |wc|}}
2019-01-23 05:29:51 -05:00
<li class="badge-grouping-item">
<div class="badge-grouping">
{{#if wc.editing}}
<Input @value={{wc.name}} class="badge-grouping-name-input" />
<DButton @action={{action "save" wc}} @icon="check" />
2019-01-23 05:29:51 -05:00
{{else}}
<span>{{wc.displayName}}</span>
{{/if}}
</div>
<div class="actions">
<DButton @action={{action "edit" wc}} @disabled={{wc.system}} @icon="pencil-alt" />
<DButton @action={{action "up" wc}} @icon="chevron-up" />
<DButton @action={{action "down" wc}} @icon="chevron-down" />
<DButton @action={{action "delete" wc}} @disabled={{wc.system}} @icon="times" />
2019-01-23 05:29:51 -05:00
</div>
</li>
{{/each}}
2014-07-27 04:22:01 -04:00
</ul>
</div>
<DButton @action={{action "add"}} @label="admin.badges.new" />
</DModalBody>
2014-07-27 04:22:01 -04:00
<div class="modal-footer">
<DButton @action={{action "saveAll"}} @label="admin.badges.save" @class="btn-primary" @disabled={{this.submitDisabled}} />
<DModalCancel @close={{route-action "closeModal"}} />
</div>