discourse/app/assets/javascripts/admin/templates/site_settings/setting_enum.js.handlebars
2013-12-12 16:09:44 -05:00

17 lines
640 B
Handlebars

<div class='setting-label'>
<h3>{{unbound setting}}</h3>
</div>
<div class="setting-value">
{{combobox valueAttribute="value" content=validValues value=value none=allowsNone}}
<div class='desc'>{{unbound description}}</div>
</div>
{{#if dirty}}
<div class='setting-controls'>
<button class='btn ok no-text' {{action save this}}><i class='fa fa-check'></i></button>
<button class='btn cancel no-text' {{action cancel this}}><i class='fa fa-times'></i></button>
</div>
{{else}}
{{#if overridden}}
<button class='btn' href='#' {{action resetDefault this}}>{{i18n admin.site_settings.reset}}</button>
{{/if}}
{{/if}}