2020-03-21 18:30:11 +01:00
|
|
|
<div class="type-selector">
|
2020-04-06 03:54:16 +02:00
|
|
|
{{#if hasTypes}}
|
2021-04-12 16:19:53 +02:00
|
|
|
<a role="button" {{action "toggleTypes"}} class="active">
|
2020-04-06 03:54:16 +02:00
|
|
|
{{activeTypeLabel}}
|
|
|
|
</a>
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2020-04-13 14:17:22 +02:00
|
|
|
{{#if showTypes}}
|
|
|
|
<div class="selector-types">
|
|
|
|
{{#each selectorTypes as |item|}}
|
|
|
|
{{wizard-mapper-selector-type
|
|
|
|
activeType=activeType
|
|
|
|
item=item
|
2021-04-12 16:19:53 +02:00
|
|
|
toggle=(action "toggleType")}}
|
2020-04-13 14:17:22 +02:00
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
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-29 03:42:39 +02:00
|
|
|
placeholder=(i18n placeholderKey)
|
|
|
|
change=(action "changeInputValue")}}
|
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-04-29 03:42:39 +02:00
|
|
|
onChange=(action "changeValue")
|
2020-03-21 18:30:11 +01:00
|
|
|
options=(hash
|
2020-04-06 03:54:16 +02:00
|
|
|
none=placeholderKey
|
2020-05-01 10:16:58 +02:00
|
|
|
allowAny=comboBoxAllowAny
|
2020-03-21 18:30:11 +01:00
|
|
|
)}}
|
|
|
|
{{/if}}
|
2021-04-12 16:19:53 +02: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
|
2020-04-29 03:42:39 +02:00
|
|
|
onChange=(action "changeValue")
|
2020-04-05 03:37:09 +02:00
|
|
|
options=multiSelectOptions}}
|
|
|
|
{{/if}}
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2020-04-05 03:37:09 +02:00
|
|
|
{{#if showList}}
|
2020-04-29 03:42:39 +02:00
|
|
|
{{wizard-value-list
|
2020-04-06 03:54:16 +02:00
|
|
|
values=value
|
2020-04-29 03:42:39 +02:00
|
|
|
addKey=placeholderKey
|
|
|
|
onChange=(action "changeValue")}}
|
2020-03-23 06:41:04 +01:00
|
|
|
{{/if}}
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2020-03-23 06:41:04 +01:00
|
|
|
{{#if showTag}}
|
|
|
|
{{tag-chooser
|
|
|
|
tags=value
|
2020-04-29 03:42:39 +02:00
|
|
|
onChange=(action "changeValue")
|
2021-09-06 04:45:41 +02:00
|
|
|
everyTag=true
|
2020-03-23 06:41:04 +01:00
|
|
|
options=(hash
|
2020-04-06 03:54:16 +02:00
|
|
|
none=placeholderKey
|
2020-04-15 02:46:44 +02:00
|
|
|
filterable=true
|
2020-03-23 06:41:04 +01:00
|
|
|
)}}
|
|
|
|
{{/if}}
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2020-04-02 10:21:03 +02:00
|
|
|
{{#if showUser}}
|
2022-07-29 17:51:58 +02:00
|
|
|
{{email-group-user-chooser
|
2020-04-06 03:54:16 +02:00
|
|
|
placeholderKey=placeholderKey
|
2022-07-29 17:51:58 +02:00
|
|
|
value=value
|
2020-04-29 03:42:39 +02:00
|
|
|
autocomplete="discourse"
|
2022-07-29 17:51:58 +02:00
|
|
|
onChange=(action "changeUserValue")
|
|
|
|
options=(hash
|
|
|
|
includeMessageableGroups="true"
|
|
|
|
)}}
|
2020-04-02 10:21:03 +02:00
|
|
|
{{/if}}
|
2021-04-12 16:19:53 +02:00
|
|
|
</div>
|