Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-23 01:40:29 +01:00
54 Zeilen
1,2 KiB
Handlebars
54 Zeilen
1,2 KiB
Handlebars
{{wizard-mapper-connector
|
|
connector=input.type
|
|
connectors=inputTypes
|
|
inputTypes=true
|
|
inputType=inputType
|
|
connectorType="type"
|
|
options=options
|
|
onUpdate=onUpdate}}
|
|
|
|
{{#if hasPairs}}
|
|
<div class="mapper-pairs mapper-block">
|
|
{{#each input.pairs as |pair|}}
|
|
{{wizard-mapper-pair
|
|
pair=pair
|
|
last=pair.last
|
|
inputType=inputType
|
|
options=options
|
|
removePair=(action "removePair")
|
|
onUpdate=onUpdate}}
|
|
{{/each}}
|
|
|
|
{{#if canAddPair}}
|
|
<a role="button" {{action "addPair"}} class="add-pair">
|
|
{{d-icon "plus"}}
|
|
</a>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if hasOutput}}
|
|
{{#if hasPairs}}
|
|
{{wizard-mapper-connector
|
|
connector=input.output_connector
|
|
connectors=connectors
|
|
connectorType="output"
|
|
inputType=inputType
|
|
options=options
|
|
onUpdate=onUpdate}}
|
|
{{/if}}
|
|
|
|
<div class="output mapper-block">
|
|
{{wizard-mapper-selector
|
|
selectorType="output"
|
|
inputType=input.type
|
|
value=input.output
|
|
activeType=input.output_type
|
|
options=options
|
|
onUpdate=onUpdate}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
<a role="button" class="remove-input" {{action remove input}}>
|
|
{{d-icon "times"}}
|
|
</a>
|