diff --git a/back/backend/templates/backend/email.txt b/back/backend/templates/backend/email.txt index 26c9ed4..fcb1749 100644 --- a/back/backend/templates/backend/email.txt +++ b/back/backend/templates/backend/email.txt @@ -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 %}