24 lines
776 B
HTML
24 lines
776 B
HTML
<template name="selectInput">
|
|
<div class="form-group {{#if isInvalidKey key}}has-error{{/if}}">
|
|
{{ #with getSchema key }}
|
|
<label class="control-label">
|
|
{{label}}
|
|
</label>
|
|
<div>
|
|
<select id="{{../key}}"
|
|
name="{{../key}}"
|
|
required="{{isRequired}}"
|
|
class="form-control js-form-update">
|
|
{{#each option in allowedValues}}
|
|
<option value="{{option}}"
|
|
selected="{{#if eq selectedOptionValue option}}selected{{/if}}">
|
|
{{option}}
|
|
</option>
|
|
{{/each}}
|
|
</select>
|
|
{{> helpBlock }}
|
|
</div>
|
|
{{ /with }}
|
|
</div>
|
|
</template>
|