2015-03-02 12:12:19 -05:00
|
|
|
<div class="setting-label">
|
2020-11-12 12:07:36 +00:00
|
|
|
<h3>
|
|
|
|
{{#if staffLogFilter}}
|
2020-11-17 15:59:55 +00:00
|
|
|
{{settingName}}
|
2022-06-30 12:30:50 +02:00
|
|
|
<LinkTo @route="adminLogs.staffActionLogs" @query={{hash filters=staffLogFilter force_refresh=true}} @title={{i18n "admin.settings.history"}}>
|
2020-11-12 12:07:36 +00:00
|
|
|
<span class="history-icon">
|
|
|
|
{{d-icon "history"}}
|
|
|
|
</span>
|
2022-06-30 12:30:50 +02:00
|
|
|
</LinkTo>
|
2020-11-12 12:07:36 +00:00
|
|
|
{{else}}
|
|
|
|
{{settingName}}
|
|
|
|
{{/if}}
|
|
|
|
</h3>
|
2019-12-04 17:13:41 +11:00
|
|
|
{{#if defaultIsAvailable}}
|
2020-02-11 15:55:16 +01:00
|
|
|
<a href onClick={{action "setDefaultValues"}}>{{setting.setDefaultValuesLabel}}</a>
|
2019-11-28 16:19:01 +11:00
|
|
|
{{/if}}
|
2015-03-02 12:12:19 -05:00
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2019-11-28 16:19:01 +11:00
|
|
|
{{component componentName setting=setting value=buffered.value validationMessage=validationMessage preview=preview isSecret=isSecret allowAny=allowAny}}
|
2015-03-02 12:12:19 -05:00
|
|
|
</div>
|
|
|
|
{{#if dirty}}
|
|
|
|
<div class="setting-controls">
|
2022-06-30 12:30:50 +02:00
|
|
|
<DButton @class="ok" @action={{action "update"}} @icon="check" />
|
|
|
|
<DButton @class="cancel" @action={{action "cancel"}} @icon="times" />
|
2015-03-02 12:12:19 -05:00
|
|
|
</div>
|
2015-05-28 11:34:44 -04:00
|
|
|
{{else if setting.overridden}}
|
2018-06-02 19:27:52 +05:30
|
|
|
{{#if setting.secret}}
|
2022-06-30 12:30:50 +02:00
|
|
|
<DButton @action={{action "toggleSecret"}} @icon="far-eye-slash" />
|
2018-06-02 19:27:52 +05:30
|
|
|
{{/if}}
|
2022-06-30 12:30:50 +02:00
|
|
|
<DButton @class="btn-default undo" @action={{action "resetDefault"}} @icon="undo" @label="admin.settings.reset" />
|
2015-03-02 12:12:19 -05:00
|
|
|
{{/if}}
|