ohif-viewer/Packages/reactive-form-controls/client/components/selectInput/selectInput.html
2016-07-22 11:12:04 +02:00

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>