discourse/app/assets/javascripts/admin/templates/components/site-setting.hbs

18 lines
688 B
Handlebars
Raw Normal View History

2015-03-03 01:12:19 +08:00
<div class='setting-label'>
<h3>{{unbound settingName}}</h3>
</div>
<div class="setting-value">
{{component componentName setting=setting value=buffered.value validationMessage=validationMessage preview=preview isSecret=isSecret}}
2015-03-03 01:12:19 +08:00
</div>
{{#if dirty}}
<div class='setting-controls'>
{{d-button class="ok" action=(action "save") icon="check"}}
{{d-button class="cancel" action=(action "cancel") icon="times"}}
2015-03-03 01:12:19 +08:00
</div>
{{else if setting.overridden}}
{{#if setting.secret}}
2019-01-22 19:02:02 +08:00
{{d-button action=(action "toggleSecret") icon="far-eye-slash"}}
{{/if}}
{{d-button class="btn-default undo" action=(action "resetDefault") icon="undo" label="admin.settings.reset"}}
2015-03-03 01:12:19 +08:00
{{/if}}