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