1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/templates/components/wizard-custom-input.hbs

56 Zeilen
1,3 KiB
Handlebars

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