0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-12-04 22:31:09 +01:00
discourse-custom-wizard/assets/javascripts/discourse/templates/components/wizard-custom-input.hbs

56 Zeilen
1,4 KiB
Handlebars

2018-05-24 07:34:58 +02:00
<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}}
2017-10-30 07:24:51 +01:00
</div>
2018-05-24 07:34:58 +02:00
<div class="connector">
{{#if connectorContent}}
{{combo-box value=input.connector
content=connectorContent
nameProperty="label"
none=connectorNone}}
{{/if}}
{{#if connectorKey}}
{{i18n connectorKey}}
{{/if}}
</div>
2018-05-24 07:34:58 +02:00
<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
2018-10-07 09:28:26 +02:00
placeholder=(i18n 'admin.wizard.custom_value_placeholder')
2018-05-24 07:34:58 +02:00
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'}}