1<select
2 id="{{ field.html_id }}"
3 name="{{ field.html_name }}"
4 class="block w-full text-sm border rounded border-zinc-200"
5 {% if field.value() != None %}value="{{ field.value() }}"{% endif %}
6 {% if field.field.required %}required{% endif %}
7 >
8 {% for value, label in field.field.choices %}
9 <option value="{{ value }}" {% if value == field.value() %}selected{% endif %}>{{ label }}</option>
10 {% endfor %}
11</select>