mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 10:15:47 +08:00
18 lines
648 B
Handlebars
18 lines
648 B
Handlebars
<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}}
|
|
</div>
|
|
{{#if dirty}}
|
|
<div class='setting-controls'>
|
|
{{d-button class="ok" action="save" icon="check"}}
|
|
{{d-button class="cancel" action="cancel" icon="times"}}
|
|
</div>
|
|
{{else if setting.overridden}}
|
|
{{#if setting.secret}}
|
|
{{d-button action="toggleSecret" icon="eye-slash"}}
|
|
{{/if}}
|
|
{{d-button class="btn-default undo" action="resetDefault" icon="undo" label="admin.settings.reset"}}
|
|
{{/if}}
|