2022-07-05 10:41:31 -07:00
|
|
|
{{#if this.setting.textarea}}
|
2022-07-06 10:37:54 +02:00
|
|
|
<Textarea @value={{this.value}} class="input-setting-textarea" />
|
2022-07-05 10:41:31 -07:00
|
|
|
{{else if this.setting.json_schema}}
|
2022-06-30 12:30:50 +02:00
|
|
|
<DButton
|
|
|
|
@action={{action "launchJsonEditorModal"}}
|
|
|
|
@icon="pencil-alt"
|
|
|
|
@label="admin.site_settings.json_schema.edit"
|
|
|
|
/>
|
2022-07-05 10:41:31 -07:00
|
|
|
{{else if this.isSecret}}
|
2022-07-06 10:37:54 +02:00
|
|
|
<Input @type="password" @value={{this.value}} class="input-setting-string" />
|
2017-07-17 16:38:26 -04:00
|
|
|
{{else}}
|
2022-07-05 10:41:31 -07:00
|
|
|
<TextField @value={{this.value}} @classNames="input-setting-string" />
|
2017-07-17 16:38:26 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2022-07-05 10:41:31 -07:00
|
|
|
<SettingValidationMessage @message={{this.validationMessage}} />
|
|
|
|
<div class="desc">{{html-safe this.setting.description}}</div>
|