0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 10:40:28 +01:00
discourse-custom-wizard/assets/javascripts/discourse/templates/components/wizard-custom-input.hbs
2018-05-24 15:34:58 +10:00

44 Zeilen
1,2 KiB
Handlebars

<div class="key">
{{#if keyContent}}
{{combo-box value=input.key content=keyContent nameProperty="label" none=noneKey}}
{{else}}
{{input type="text" value=input.key placeholder=(i18n inputKey)}}
{{/if}}
</div>
{{d-icon 'arrow-right'}}
<div class="value">
{{#if valueContent}}
{{combo-box value=input.value
content=valueContent
nameProperty="label"
none=noneValue
isDisabled=valueDisabled}}
{{else}}
{{input type="text" value=input.value placeholder=(i18n valuePlaceholder)}}
{{/if}}
{{#if allowCustomField}}
<div class="text-divider">
<span>{{i18n 'admin.wizard.or'}}</span>
</div>
{{input type="text"
value=input.value_custom
placeholder=(i18n 'admin.wizard.custom_field_placeholder')
disabled=customDisabled}}
{{/if}}
{{#if allowUserField}}
<div class="text-divider">
<span>{{i18n 'admin.wizard.or'}}</span>
</div>
{{combo-box value=input.user_field
content=userFields
none='admin.wizard.user_field_placeholder'}}
{{/if}}
</div>
{{d-button action=remove actionParam=input icon='times' class='remove'}}