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

31 lines
1.3 KiB
Handlebars
Raw Normal View History

2016-11-16 06:09:55 +08:00
{{#d-modal-body title="admin.badges.badge_groupings.modal_title"}}
2014-07-27 16:22:01 +08:00
<div>
<ul class='badge-groupings'>
{{#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"}}
<button {{action "save" wc}} class="btn no-text">{{d-icon 'check'}}</button>
{{else}}
{{wc.displayName}}
{{/if}}
</div>
2014-12-13 02:28:20 +08:00
<div class='actions'>
<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-13 02:28:20 +08:00
</div>
</li>
2014-07-27 16:22:01 +08:00
{{/each}}
</ul>
</div>
<button class='btn' {{action "add"}}>{{i18n 'admin.badges.new'}}</button>
2016-11-16 06:09:55 +08:00
{{/d-modal-body}}
2014-07-27 16:22:01 +08:00
<div class="modal-footer">
<button class='btn btn-primary' {{action "saveAll"}} disabled={{submitDisabled}}>{{i18n 'admin.badges.save'}}</button>
{{d-modal-cancel close=(action "closeModal")}}
2014-07-27 16:22:01 +08:00
</div>