mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 17:03:48 +08:00
a914d3230b
Followup to 7d8974d02f
Co-authored-by: David Taylor <david@taylorhq.com>
25 lines
664 B
Handlebars
25 lines
664 B
Handlebars
{{#if this.readOnly}}
|
|
<button
|
|
class="btn btn-default disabled"
|
|
title={{I18n "admin.site_settings.mandatory_group"}}
|
|
>{{this.itemName}}</button>
|
|
{{else}}
|
|
<button
|
|
{{on "click" (fn this.selectKit.deselect this.item)}}
|
|
aria-label={{i18n "select_kit.delete_item" name=this.itemName}}
|
|
data-value={{this.itemValue}}
|
|
data-name={{this.itemName}}
|
|
type="button"
|
|
id="{{this.id}}-choice"
|
|
class="btn btn-default selected-choice {{this.extraClass}}"
|
|
>
|
|
{{d-icon "xmark"}}
|
|
{{#if (has-block)}}
|
|
{{yield}}
|
|
{{else}}
|
|
<span class="d-button-label">
|
|
{{this.itemName}}
|
|
</span>
|
|
{{/if}}
|
|
</button>
|
|
{{/if}} |