Fixed bug where all sections were showing in text email.
This commit is contained in:
parent
7d83a8ccaa
commit
01139ad361
1 changed files with 2 additions and 2 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue