2022-12-16 12:41:03 -05:00
|
|
|
<div class="param {{if this.valid 'valid' 'invalid'}}">
|
|
|
|
{{#if (eq this.type "boolean")}}
|
|
|
|
{{#if @info.nullable}}
|
|
|
|
<ComboBox
|
|
|
|
@valueAttribute="id"
|
|
|
|
@value={{this.nullableBoolValue}}
|
|
|
|
@nameProperty="name"
|
|
|
|
@content={{this.boolTypes}}
|
|
|
|
@onChange={{this.updateNullableBoolValue}}
|
2023-04-17 10:06:27 -04:00
|
|
|
name={{@info.identifier}}
|
2022-12-16 12:41:03 -05:00
|
|
|
/>
|
|
|
|
{{else}}
|
|
|
|
<Input
|
|
|
|
@type="checkbox"
|
|
|
|
@checked={{this.boolvalue}}
|
|
|
|
{{on "change" this.updateBoolValue}}
|
2023-04-17 10:06:27 -04:00
|
|
|
name={{@info.identifier}}
|
2022-12-16 12:41:03 -05:00
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
<span class="param-name">{{@info.identifier}}</span>
|
|
|
|
|
|
|
|
{{else if (eq this.type "int")}}
|
|
|
|
<Input
|
|
|
|
@type="number"
|
|
|
|
@value={{this.value}}
|
|
|
|
{{on "change" this.updateValue}}
|
2023-04-17 10:06:27 -04:00
|
|
|
name={{@info.identifier}}
|
2022-12-16 12:41:03 -05:00
|
|
|
/>
|
|
|
|
<span class="param-name">{{@info.identifier}}</span>
|
|
|
|
|
|
|
|
{{else if (eq this.type "string")}}
|
|
|
|
<TextField
|
|
|
|
@value={{this.value}}
|
|
|
|
@type="text"
|
|
|
|
@onChange={{this.updateValue}}
|
2023-04-17 10:06:27 -04:00
|
|
|
name={{@info.identifier}}
|
2022-12-16 12:41:03 -05:00
|
|
|
/>
|
|
|
|
<span class="param-name">{{@info.identifier}}</span>
|
|
|
|
|
|
|
|
{{else if (eq this.type "user_id")}}
|
|
|
|
<EmailGroupUserChooser
|
|
|
|
@value={{this.value}}
|
|
|
|
@options={{(hash maximum=1)}}
|
|
|
|
@onChange={{this.updateValue}}
|
2023-04-17 10:06:27 -04:00
|
|
|
name={{@info.identifier}}
|
2022-12-16 12:41:03 -05:00
|
|
|
/>
|
|
|
|
<span class="param-name">{{@info.identifier}}</span>
|
|
|
|
|
|
|
|
{{else if (eq this.type "user_list")}}
|
|
|
|
<EmailGroupUserChooser
|
|
|
|
@value={{this.value}}
|
|
|
|
@onChange={{this.updateValue}}
|
2023-04-17 10:06:27 -04:00
|
|
|
name={{@info.identifier}}
|
2022-12-16 12:41:03 -05:00
|
|
|
/>
|
|
|
|
<span class="param-name">{{@info.identifier}}</span>
|
|
|
|
|
|
|
|
{{else}}
|
2023-04-17 10:06:27 -04:00
|
|
|
<TextField
|
|
|
|
@value={{this.value}}
|
|
|
|
@onChange={{this.updateValue}}
|
|
|
|
name={{@info.identifier}}
|
|
|
|
/>
|
2022-12-16 12:41:03 -05:00
|
|
|
<span class="param-name">{{@info.identifier}}</span>
|
|
|
|
{{/if}}
|
2023-01-04 07:36:14 -05:00
|
|
|
</div>
|