0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 04:12:53 +01:00
discourse-custom-wizard/assets/javascripts/discourse/templates/components/wizard-mapper-selector.hbs

56 Zeilen
1,1 KiB
Handlebars

2020-03-21 18:30:11 +01:00
<div class="type-selector">
2020-04-05 03:37:09 +02:00
{{#each selectorTypes as |type|}}
2020-04-01 12:58:30 +02:00
{{wizard-mapper-selector-type
2020-03-24 10:35:46 +01:00
activeType=activeType
2020-04-05 03:37:09 +02:00
type=type
2020-03-24 10:35:46 +01:00
toggle=(action 'toggleType')}}
2020-04-05 03:37:09 +02:00
{{/each}}
2020-03-21 18:30:11 +01:00
</div>
<div class="input">
{{#if showText}}
{{input
type="text"
value=value
2020-04-05 03:37:09 +02:00
placeholder=(i18n placeholder)}}
2020-03-21 18:30:11 +01:00
{{/if}}
2020-04-05 03:37:09 +02:00
{{#if showComboBox}}
2020-03-21 18:30:11 +01:00
{{combo-box
value=value
2020-04-05 03:37:09 +02:00
content=comboBoxContent
2020-03-23 06:41:04 +01:00
onChange=(action (mut value))
2020-03-21 18:30:11 +01:00
options=(hash
2020-04-05 03:37:09 +02:00
none=placeholder
2020-03-21 18:30:11 +01:00
)}}
{{/if}}
2020-03-23 06:41:04 +01:00
2020-04-05 03:37:09 +02:00
{{#if showMultiSelect}}
2020-03-24 10:35:46 +01:00
{{multi-select
2020-04-05 03:37:09 +02:00
content=multiSelectContent
2020-03-24 10:35:46 +01:00
value=value
onChange=(action (mut value))
2020-04-05 03:37:09 +02:00
options=multiSelectOptions}}
{{/if}}
{{#if showList}}
{{value-list values=value}}
2020-03-23 06:41:04 +01:00
{{/if}}
{{#if showTag}}
{{tag-chooser
tags=value
2020-04-05 03:37:09 +02:00
filterable=true
2020-03-23 06:41:04 +01:00
options=(hash
2020-04-05 03:37:09 +02:00
none=placeholder
2020-03-23 06:41:04 +01:00
)}}
{{/if}}
2020-04-02 10:21:03 +02:00
{{#if showUser}}
{{user-selector
includeMessageableGroups='true'
2020-04-05 03:37:09 +02:00
placeholderKey=placeholder
2020-04-02 10:21:03 +02:00
usernames=value
autocomplete="discourse"}}
{{/if}}
2020-03-21 18:30:11 +01:00
</div>