0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-29 20:20:29 +01:00
discourse-custom-wizard/assets/javascripts/discourse/templates/components/wizard-mapper-input.hbs
Angus McLeod 87a53a8c85 wip
2020-04-02 16:21:57 +11:00

49 Zeilen
1,1 KiB
Handlebars

{{#if hasOutput}}
{{wizard-mapper-connector
connector=input.type
connectors=inputTypes
inputTypes=true}}
{{/if}}
{{#if hasPairs}}
<div class="mapper-pairs mapper-block">
{{#each input.pairs as |pair|}}
{{wizard-mapper-pair
pair=pair
last=pair.last
inputType=inputType
keyPlaceholder=keyPlaceholder
valuePlaceholder=valuePlaceholder
options=options
removePair=(action 'removePair')}}
{{/each}}
{{#if hasOutput}}
<a {{action 'addPair'}} class="add-pair">
{{d-icon 'plus'}}
</a>
{{/if}}
</div>
{{/if}}
{{#if hasOutput}}
{{#if hasPairs}}
{{wizard-mapper-connector
connector=input.connector
connectors=connectors}}
{{/if}}
<div class="output mapper-block">
{{wizard-mapper-selector
selectorType='output'
inputType=inputType
value=input.output
activeType=input.output_type
customPlaceholder=outputPlaceholder
options=options}}
</div>
{{/if}}
<a class="remove-input" {{action remove input}}>
{{d-icon 'times'}}
</a>