25 lines
654 B
HTML
25 lines
654 B
HTML
{% extends 'default/templates/form/field/field.html' %}
|
|
|
|
{% block field %}
|
|
<select
|
|
{% if not content.id is none %}
|
|
id="{{ content.id }}"
|
|
{% endif %}
|
|
{% if not content.valid %}
|
|
class="invalid"
|
|
{% endif %}
|
|
name="{{ content.name_qualified }}"
|
|
>
|
|
<option value=''>Choose…</option>
|
|
{% for value, label in content.choices %}
|
|
<option
|
|
value="{{ value }}"
|
|
{% if value == content.value %}
|
|
selected
|
|
{% endif %}
|
|
>{{ label }}</option>
|
|
{% endfor %}
|
|
|
|
</select>
|
|
{% endblock %}
|