2020-03-21 18:30:11 +01:00
|
|
|
{{#if options.hasOutput}}
|
2020-03-23 06:41:04 +01:00
|
|
|
<div class="prefix">
|
|
|
|
{{combo-box
|
|
|
|
value=input.type
|
|
|
|
contents=inputTypes
|
|
|
|
onChange=(mut (input.prefix))}}
|
|
|
|
</div>
|
2020-03-21 18:30:11 +01:00
|
|
|
{{/if}}
|
|
|
|
|
2020-03-23 06:41:04 +01:00
|
|
|
{{#if hasPairs}}
|
|
|
|
<div class="pairs">
|
|
|
|
{{#each input.pairs as |pair|}}
|
|
|
|
{{wizard-custom-input-pair
|
|
|
|
pair=pair
|
|
|
|
last=pair.last
|
|
|
|
keyPlaceholder=keyPlaceholder
|
|
|
|
valuePlaceholder=valuePlaceholder
|
|
|
|
userFields=userFields
|
|
|
|
wizardFields=wizardFields
|
|
|
|
options=options
|
|
|
|
removePair=(action 'removePair')}}
|
|
|
|
{{/each}}
|
|
|
|
{{#if options.hasOutput}}
|
|
|
|
<a {{action 'addPair'}} class="add-pair">{{d-icon 'plus'}}</a>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/if }}
|
2018-05-24 07:34:58 +02:00
|
|
|
|
2020-03-21 18:30:11 +01:00
|
|
|
{{#if options.hasOutput}}
|
|
|
|
<div class="connector">
|
2020-03-23 06:41:04 +01:00
|
|
|
<span class="output-connector">
|
|
|
|
{{outputConnector}}
|
|
|
|
</span>
|
2020-03-21 18:30:11 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="output input-block">
|
|
|
|
{{wizard-custom-input-chooser
|
|
|
|
inputType='output'
|
|
|
|
userFields=userFields
|
|
|
|
wizardFields=wizardFields
|
|
|
|
value=input.output
|
|
|
|
activeType=input.output_type
|
|
|
|
customPlaceholder=outputPlaceholder
|
|
|
|
options=options}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{d-button
|
|
|
|
action=remove
|
|
|
|
actionParam=input
|
|
|
|
icon='times'
|
|
|
|
class='remove-input'}}
|