Skip to content

Commit 3d42f0f

Browse files
authored
Update field.html
1 parent 71bdbc6 commit 3d42f0f

File tree

1 file changed

+4
-4
lines changed
  • materializecssform/templates/materializecssform

1 file changed

+4
-4
lines changed

materializecssform/templates/materializecssform/field.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
{% if field|is_checkbox_select_multiple %}
6666
<div class="input-field {{ classes.value }}">
6767
<select multiple>
68-
{% for val, name in field.choices %}
69-
<option value="{{ val }}">{{ name }}</option>
68+
{% for choice in field %}
69+
{{ choice.tag }}
7070
{% endfor %}
7171
</select>
7272
{% if field.auto_id %}
@@ -86,8 +86,8 @@
8686

8787
{% else %}
8888
<select>
89-
{% for val, name in field.choices %}
90-
<option value="{{ val }}">{{ name }}</option>
89+
{% for choice in field %}
90+
{{ choice.tag }}
9191
{% endfor %}
9292
</select>
9393
{% if field.auto_id %}

0 commit comments

Comments
 (0)