File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
materializecssform/templates/materializecssform Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6565 {% if field|is_checkbox_select_multiple %}
6666 < div class ="input-field {{ classes.value }} ">
6767 < select multiple >
68- {% for choice in field %}
69- < option value ="{{ choice.choice_value }} "> {{ choice.choice_label }}</ option >
68+ {% for val, name in field.choices %}
69+ < option value ="{{ val }} "> {{ name }}</ option >
7070 {% endfor %}
7171 </ select >
7272 {% if field.auto_id %}
8686
8787 {% else %}
8888 < select >
89- {% for choice in field %}
90- < option value ="{{ choice.choice_value }} "> {{ choice.choice_label }}</ option >
89+ {% for val, name in field.choices %}
90+ < option value ="{{ val }} "> {{ name }}</ option >
9191 {% endfor %}
9292 </ select >
9393 {% if field.auto_id %}
You can’t perform that action at this time.
0 commit comments