2021-10-19 17:26:27 +03:00
|
|
|
<div class="gh-stack-item {{if (eq @index 0) "gh-setting-first" "gh-setting"}}">
|
2021-10-14 17:40:22 +03:00
|
|
|
<div class="flex-grow-1">
|
|
|
|
<label class="gh-setting-title gh-theme-setting-title" for={{this.inputId}}>
|
|
|
|
{{humanize-setting-key @setting.key}}
|
|
|
|
</label>
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
class="gh-input"
|
|
|
|
value={{@setting.value}}
|
|
|
|
id={{this.inputId}}
|
|
|
|
name={{this.inputName}}
|
|
|
|
{{on "input" this.updateValue}}
|
|
|
|
{{on "blur" this.triggerOnChange}}
|
|
|
|
/>
|
2023-06-15 17:10:56 +03:00
|
|
|
{{#if @setting.description}}
|
2023-06-16 15:14:43 +03:00
|
|
|
<div class="gh-setting-desc">{{truncate @setting.description 100}}</div>
|
2023-06-15 17:10:56 +03:00
|
|
|
{{/if}}
|
2021-10-14 17:40:22 +03:00
|
|
|
</div>
|
|
|
|
</div>
|