2022-11-21 22:58:34 +00:00
|
|
|
{{#each @fields as |attr|}}
|
|
|
|
{{#if (eq attr.name "keyBits")}}
|
|
|
|
<div class="field">
|
|
|
|
<FormFieldLabel for={{attr.name}} @label={{attr.options.label}} />
|
|
|
|
<div class="control is-expanded">
|
|
|
|
<div class="select is-fullwidth">
|
|
|
|
<select name={{attr.name}} id={{attr.name}} onchange={{this.onKeyBitsChange}} data-test-input={{attr.name}}>
|
|
|
|
{{#each this.keyBitOptions as |val|}}
|
|
|
|
<option selected={{eq (get @model this.valuePath) (or val.value val)}} value={{val}}>
|
|
|
|
{{val}}
|
|
|
|
</option>
|
2022-10-19 21:28:43 +00:00
|
|
|
{{/each}}
|
2022-11-21 22:58:34 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-19 21:28:43 +00:00
|
|
|
</div>
|
2022-11-21 22:58:34 +00:00
|
|
|
{{else}}
|
|
|
|
<FormField
|
|
|
|
data-test-field={{attr}}
|
|
|
|
@attr={{attr}}
|
|
|
|
@model={{@model}}
|
|
|
|
@modelValidations={{@modelValidations}}
|
|
|
|
@showHelpText={{false}}
|
|
|
|
@onChange={{this.onSignatureBitsOrKeyTypeChange}}
|
|
|
|
/>
|
2022-10-19 21:28:43 +00:00
|
|
|
{{/if}}
|
2022-11-21 22:58:34 +00:00
|
|
|
{{/each}}
|