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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.2 KiB
Handlebars
Raw Normal View History

2019-01-23 05:29:51 -05:00
{{#d-modal-body title="admin.badges.badge_groupings.modal_title" class="badge-groupings-modal"}}
<div class="badge-groupings">
<ul class="badge-groupings-list">
2019-01-23 05:29:51 -05: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"}}
{{d-button action=(action "save" wc) icon="check"}}
2019-01-23 05:29:51 -05:00
{{else}}
<span>{{wc.displayName}}</span>
{{/if}}
</div>
<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 05:29:51 -05:00
</div>
</li>
{{/each}}
2014-07-27 04:22:01 -04:00
</ul>
</div>
{{d-button action=(action "add") label="admin.badges.new"}}
2016-11-15 17:09:55 -05:00
{{/d-modal-body}}
2014-07-27 04:22:01 -04:00
<div class="modal-footer">
{{d-button
action=(action "saveAll")
label="admin.badges.save"
class="btn-primary"
disabled=submitDisabled}}
{{d-modal-cancel close=(route-action "closeModal")}}
</div>