2022-06-30 06:30:50 -04:00
|
|
|
<DModalBody @title="admin.badges.badge_groupings.modal_title" @class="badge-groupings-modal">
|
2019-01-23 05:29:51 -05:00
|
|
|
<div class="badge-groupings">
|
2019-02-19 03:30:24 -05:00
|
|
|
<ul class="badge-groupings-list">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#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}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<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>
|
2019-02-19 03:30:24 -05:00
|
|
|
<div class="actions">
|
2022-06-30 06:30:50 -04:00
|
|
|
<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>
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton @action={{action "add"}} @label="admin.badges.new" />
|
|
|
|
</DModalBody>
|
2019-02-19 03:30:24 -05:00
|
|
|
|
2014-07-27 04:22:01 -04:00
|
|
|
<div class="modal-footer">
|
2022-07-05 13:41:31 -04:00
|
|
|
<DButton @action={{action "saveAll"}} @label="admin.badges.save" @class="btn-primary" @disabled={{this.submitDisabled}} />
|
2022-06-30 06:30:50 -04:00
|
|
|
<DModalCancel @close={{route-action "closeModal"}} />
|
2019-02-19 03:30:24 -05:00
|
|
|
</div>
|