discourse/app/assets/javascripts/admin/templates/site_settings/setting_bool.hbs

19 lines
656 B
Handlebars

<div class='setting-label'>
<h3>{{unbound settingName}}</h3>
</div>
<div class="setting-value">
<label>
{{view Ember.Checkbox checkedBinding="enabled" value="true"}}
{{unbound description}}
</label>
</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}}><i class="fa fa-undo"></i>{{i18n 'admin.site_settings.reset'}}</button>
{{/if}}
{{/if}}