2020-03-21 18:30:11 +01:00
|
|
|
<div class="type-selector">
|
2020-04-06 03:54:16 +02:00
|
|
|
{{#if hasTypes}}
|
2020-04-11 08:22:12 +02:00
|
|
|
<a {{action "showTypes"}} class="active">
|
2020-04-06 03:54:16 +02:00
|
|
|
{{activeTypeLabel}}
|
|
|
|
</a>
|
|
|
|
|
2020-04-11 08:22:12 +02:00
|
|
|
<div class="selector-types">
|
|
|
|
{{#each selectorTypes as |item|}}
|
|
|
|
{{wizard-mapper-selector-type
|
|
|
|
activeType=activeType
|
|
|
|
item=item
|
|
|
|
toggle=(action 'toggleType')}}
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
2020-04-06 03:54:16 +02:00
|
|
|
{{else}}
|
|
|
|
<span>{{activeTypeLabel}}</span>
|
|
|
|
{{/if}}
|
2020-03-21 18:30:11 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input">
|
|
|
|
{{#if showText}}
|
|
|
|
{{input
|
|
|
|
type="text"
|
|
|
|
value=value
|
2020-04-11 08:22:12 +02:00
|
|
|
click=(action 'enableActive')
|
2020-04-06 03:54:16 +02:00
|
|
|
placeholder=(i18n placeholderKey)}}
|
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-04-11 08:22:12 +02:00
|
|
|
onOpen=(action "enableActive")
|
|
|
|
onClick=(action 'enableActive')
|
2020-03-21 18:30:11 +01:00
|
|
|
options=(hash
|
2020-04-06 03:54:16 +02:00
|
|
|
none=placeholderKey
|
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-11 08:22:12 +02:00
|
|
|
onOpen=(action "enableActive")
|
|
|
|
onClose=(action "disableActive")
|
2020-04-05 03:37:09 +02:00
|
|
|
options=multiSelectOptions}}
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if showList}}
|
2020-04-06 03:54:16 +02:00
|
|
|
{{value-list
|
|
|
|
values=value
|
|
|
|
addKey=placeholderKey}}
|
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-04-11 08:22:12 +02:00
|
|
|
onOpen=(action "enableActive")
|
|
|
|
onClose=(action "disableActive")
|
2020-03-23 06:41:04 +01:00
|
|
|
options=(hash
|
2020-04-06 03:54:16 +02:00
|
|
|
none=placeholderKey
|
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-06 03:54:16 +02:00
|
|
|
placeholderKey=placeholderKey
|
2020-04-02 10:21:03 +02:00
|
|
|
usernames=value
|
2020-04-11 08:22:12 +02:00
|
|
|
autocomplete="discourse"
|
|
|
|
click=(action "enableActive")}}
|
2020-04-02 10:21:03 +02:00
|
|
|
{{/if}}
|
2020-03-21 18:30:11 +01:00
|
|
|
</div>
|