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

47 Zeilen
1 KiB
Handlebars

2020-03-21 18:30:11 +01:00
<div class="key input-block">
2020-03-24 10:35:46 +01:00
{{wizard-custom-input-selector
selectorType='key'
inputType=inputType
2020-03-21 18:30:11 +01:00
userFields=userFields
wizardFields=wizardFields
value=pair.key
activeType=pair.key_type
customPlaceholder=keyPlaceholder
options=options}}
</div>
2020-03-23 06:41:04 +01:00
{{#if hasConnector}}
<div class="connector">
{{#if options.enableConnectors}}
{{combo-box
value=pair.connector
content=connectors}}
{{/if}}
{{#if connectorKey}}
<span class="key-connector">
{{i18n connectorKey}}
</span>
{{/if}}
</div>
{{/if}}
2020-03-21 18:30:11 +01:00
<div class="value input-block">
2020-03-24 10:35:46 +01:00
{{wizard-custom-input-selector
selectorType='value'
inputType=inputType
2020-03-21 18:30:11 +01:00
userFields=userFields
wizardFields=wizardFields
value=pair.value
activeType=pair.value_type
customPlaceholder=valuePlaceholder
options=options}}
</div>
2020-03-23 06:41:04 +01:00
{{#if showJoin}}
<div class="join-pair">&</div>
{{/if}}
2020-03-21 18:30:11 +01:00
{{#if showRemove}}
<a {{action removePair pair}} class="remove-pair">{{d-icon 'minus'}}</a>
{{/if}}