Added rule violations to emails.

This commit is contained in:
kououken 2019-02-21 16:43:39 -08:00
parent fbf89d4876
commit d876852e7e
3 changed files with 8 additions and 0 deletions

View file

@ -14,6 +14,11 @@
<td>{{field.value|default:""}}</td>
</tr>
{% endfor %}
{% for rule in section.rule_violations %}
<tr style="color:#ff3333">
<td colspan=2><strong>{{rule.label}}</strong><br/>{{rule.rule_break_text}}</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% endfor %}

View file

@ -9,4 +9,7 @@ Title: {{title}}
{% for field in section.fields %}
{{field.label}}: {{field.value|default:"empty"}}
{% endfor %}
{% for rule in section.rule_violations %}
[RULE] {{rule.label}}: {{rule.rule_break_text}}
{% endfor %}
{% endfor %}

Binary file not shown.