2019-01-23 18:29:51 +08:00
|
|
|
{{#d-modal-body title="admin.badges.badge_groupings.modal_title" class="badge-groupings-modal"}}
|
|
|
|
<div class="badge-groupings">
|
2019-02-19 16:30:24 +08:00
|
|
|
<ul class="badge-groupings-list">
|
2019-01-23 18:29:51 +08:00
|
|
|
{{#each workingCopy as |wc|}}
|
|
|
|
<li class="badge-grouping-item">
|
|
|
|
<div class="badge-grouping">
|
|
|
|
{{#if wc.editing}}
|
|
|
|
{{input value=wc.name class="badge-grouping-name-input"}}
|
2019-02-19 16:30:24 +08:00
|
|
|
{{d-button action=(action "save" wc) icon="check"}}
|
2019-01-23 18:29:51 +08:00
|
|
|
{{else}}
|
|
|
|
<span>{{wc.displayName}}</span>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2019-02-19 16:30:24 +08:00
|
|
|
<div class="actions">
|
|
|
|
{{d-button action=(action "edit" wc) disabled=wc.system icon="pencil-alt"}}
|
|
|
|
{{d-button action=(action "up" wc) icon="chevron-up"}}
|
|
|
|
{{d-button action=(action "down" wc) icon="chevron-down"}}
|
|
|
|
{{d-button action=(action "delete" wc) disabled=wc.system icon="times"}}
|
2019-01-23 18:29:51 +08:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
2014-07-27 16:22:01 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
2019-02-19 16:30:24 +08:00
|
|
|
{{d-button action=(action "add") label="admin.badges.new"}}
|
2016-11-16 06:09:55 +08:00
|
|
|
{{/d-modal-body}}
|
2019-02-19 16:30:24 +08:00
|
|
|
|
2014-07-27 16:22:01 +08:00
|
|
|
<div class="modal-footer">
|
2019-02-19 16:30:24 +08:00
|
|
|
{{d-button
|
|
|
|
action=(action "saveAll")
|
|
|
|
label="admin.badges.save"
|
|
|
|
class="btn-primary"
|
|
|
|
disabled=submitDisabled}}
|
2019-01-10 18:06:01 +08:00
|
|
|
{{d-modal-cancel close=(route-action "closeModal")}}
|
2019-02-19 16:30:24 +08:00
|
|
|
</div>
|