2016-11-15 17:09:55 -05:00
|
|
|
{{#d-modal-body title="admin.badges.badge_groupings.modal_title"}}
|
2014-07-27 04:22:01 -04:00
|
|
|
<div>
|
|
|
|
<ul class='badge-groupings'>
|
2016-04-29 17:29:41 -04:00
|
|
|
{{#each workingCopy as |wc|}}
|
2014-12-12 13:28:20 -05:00
|
|
|
<li>
|
|
|
|
{{#if wc.editing}}
|
|
|
|
{{input value=wc.name}}
|
2017-07-26 16:25:09 -04:00
|
|
|
<button {{action "save" wc}} class="btn no-text">{{d-icon 'check'}}</button>
|
2014-12-12 13:28:20 -05:00
|
|
|
{{else}}
|
2015-12-26 17:58:54 -05:00
|
|
|
{{wc.displayName}}
|
2014-12-12 13:28:20 -05:00
|
|
|
{{/if}}
|
|
|
|
<div class='actions'>
|
2017-07-26 16:25:09 -04:00
|
|
|
<button {{action "edit" wc}} class="btn no-text" disabled={{wc.system}}>{{d-icon 'pencil'}}</button>
|
|
|
|
<button {{action "up" wc}} class="btn no-text">{{d-icon 'toggle-up'}}</button>
|
|
|
|
<button {{action "down" wc}} class="btn no-text">{{d-icon 'toggle-down'}}</button>
|
|
|
|
<button {{action "delete" wc}} class="btn no-text btn-danger" disabled={{wc.system}}>{{d-icon 'times'}}</button>
|
2014-12-12 13:28:20 -05:00
|
|
|
</div>
|
|
|
|
</li>
|
2014-07-27 04:22:01 -04:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-12-08 16:35:49 -05:00
|
|
|
<button class='btn' {{action "add"}}>{{i18n 'admin.badges.new'}}</button>
|
2016-11-15 17:09:55 -05:00
|
|
|
{{/d-modal-body}}
|
|
|
|
|
2014-07-27 04:22:01 -04:00
|
|
|
<div class="modal-footer">
|
2016-05-06 16:04:38 -04:00
|
|
|
<button class='btn btn-primary' {{action "saveAll"}} disabled={{submitDisabled}}>{{i18n 'admin.badges.save'}}</button>
|
2014-12-08 16:35:49 -05:00
|
|
|
<a {{action "cancel"}}>{{i18n 'cancel'}}</a>
|
2014-07-27 04:22:01 -04:00
|
|
|
</div>
|