Fixed bug where all sections were showing in text email.

This commit is contained in:
kououken 2019-03-08 12:57:07 -08:00
parent 7d83a8ccaa
commit 01139ad361

View file

@ -5,7 +5,7 @@
Title: {{title}}
Reference #: {{reference_number}}
{% for section in sections %}
{% for section in sections %}{% if section.completed %}
{{section.title}}(SID: {{section.id}})
{% for field in section.fields %}
{{field.label}}: {% if field.field_type == 'boolean' %}{{field.value|yesno:"yes,no"}}{% else %}{{field.value|default:" "}}{% endif %}
@ -13,4 +13,4 @@ Reference #: {{reference_number}}
{% for rule in section.rule_violations %}
[RULE] {{rule.label}}: {{rule.rule_break_text}}
{% endfor %}
{% endfor %}
{% endif %}{% endfor %}