You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
2 years ago
|
{{< core_form/element-template-inline }}
|
||
|
{{$element}}
|
||
|
{{^element.frozen}}
|
||
|
<select class="form-control custom-select {{#error}}is-invalid{{/error}}" name="{{element.name}}"
|
||
|
id="{{element.id}}"
|
||
|
{{#element.multiple}}multiple{{/element.multiple}}
|
||
|
{{#error}}
|
||
|
autofocus aria-describedby="{{element.iderror}}"
|
||
|
{{/error}}
|
||
|
{{{element.attributes}}} >
|
||
|
{{#element.optiongroups}}
|
||
|
{{#text}}
|
||
|
<optgroup label="{{text}}">
|
||
|
{{/text}}
|
||
|
{{#options}}
|
||
|
<option value="{{value}}" {{#selected}}selected{{/selected}} {{#disabled}}disabled{{/disabled}} {{{optionattributes}}}>{{{text}}}</option>
|
||
|
{{/options}}
|
||
|
{{#text}}
|
||
|
</optgroup>
|
||
|
{{/text}}
|
||
|
{{/element.optiongroups}}
|
||
|
</select>
|
||
|
{{/element.frozen}}
|
||
|
{{#element.frozen}}
|
||
|
{{#element.optiongroups}}
|
||
|
{{#options}}
|
||
|
{{#selected}}{{{text}}}{{/selected}}
|
||
|
{{/options}}
|
||
|
{{/element.optiongroups}}
|
||
|
{{/element.frozen}}
|
||
|
{{/element}}
|
||
|
{{/ core_form/element-template-inline }}
|