Skip to content

Commit

Permalink
Change 'choice_value' to new format
Browse files Browse the repository at this point in the history
  • Loading branch information
Pacu2 committed Aug 3, 2017
1 parent a43c195 commit af3cdc7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion templates/materializecssform/field.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,16 @@
{% endif %}
{% for choice in field %}
<p>
<input id="{{ choice.id_for_label }}" name="{{ choice.name }}" class="filled-in" type="checkbox" value="{{ choice.choice_value }}" {% if choice.choice_value in choice.value %} checked="checked" {% endif %}>
<input
id="{{ choice.id_for_label }}"
name="{{ choice.name }}"
class="filled-in"
type="checkbox"
value="{{ choice.data.value }}"
{% if choice.data.value in choice.value %}
checked="checked"
{% endif %}
>
<label for="{{ choice.id_for_label }}">
{{ choice.choice_label }}
</label>
Expand Down

0 comments on commit af3cdc7

Please sign in to comment.