Skip to content
This repository was archived by the owner on Jul 6, 2018. It is now read-only.

choices_start/end variables wrapped in if statements #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% load bootstrap_toolkit %}
{{ choices_start }}
{% if choices_start %}
{{ choices_start }}
{% endif %}
{% for choice_id, choice_label in field.field.choices %}
<label class="{{ type }}{% if display == "inline" or field.field.widget.attrs.inline %} inline{% endif %}">
<input
Expand All @@ -19,4 +21,6 @@
{{ choices_separator }}
{% endif %}
{% endfor %}
{{ choices_end }}
{% if choices_end %}
{{ choices_end }}
{% endif %}