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

Failed to ignore revisions in .git-blame-ignore-revs.

35 lines
1.2 KiB
Handlebars
Raw Normal View History

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">
<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"}}
{{d-button action=(action "save" wc) icon="check"}}
2019-01-23 18:29:51 +08: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 18:29:51 +08:00
</div>
</li>
{{/each}}
2014-07-27 16:22:01 +08:00
</ul>
</div>
{{d-button action=(action "add") label="admin.badges.new"}}
2016-11-16 06:09:55 +08:00
{{/d-modal-body}}
2014-07-27 16:22:01 +08: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>