37 lines
564 B
HTML
37 lines
564 B
HTML
---
|
|
id:
|
|
type: 'string'
|
|
name:
|
|
type: 'string'
|
|
items:
|
|
type: 'array'
|
|
default: []
|
|
label:
|
|
type: 'string'
|
|
required:
|
|
type: 'bool'
|
|
default: false
|
|
form:
|
|
type: 'string'
|
|
default: ''
|
|
class:
|
|
type: 'string'
|
|
default: ''
|
|
---
|
|
|
|
{%- block 'forms/label.html', id: , class: -%}
|
|
{{ label }}
|
|
{%- endblock -%}
|
|
|
|
<select name="{{- name -}}" id="{{- id -}}" form="{{- form -}}"
|
|
{% if required %}
|
|
required="required"
|
|
{% endif %}
|
|
>
|
|
{% for item in items %}
|
|
<option value="{{- item -}}">
|
|
{{- item -}}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|