From d876852e7ebaad6d89bc7428ffcf0f1810e45559 Mon Sep 17 00:00:00 2001 From: kououken Date: Thu, 21 Feb 2019 16:43:39 -0800 Subject: [PATCH] Added rule violations to emails. --- back/backend/templates/backend/email.html | 5 +++++ back/backend/templates/backend/email.txt | 3 +++ back/db.sqlite3 | Bin 197632 -> 197632 bytes 3 files changed, 8 insertions(+) diff --git a/back/backend/templates/backend/email.html b/back/backend/templates/backend/email.html index cf7deb1..b985302 100644 --- a/back/backend/templates/backend/email.html +++ b/back/backend/templates/backend/email.html @@ -14,6 +14,11 @@ {{field.value|default:""}} {% endfor %} + {% for rule in section.rule_violations %} + + {{rule.label}}
{{rule.rule_break_text}} + + {% endfor %} {% endif %} {% endfor %} diff --git a/back/backend/templates/backend/email.txt b/back/backend/templates/backend/email.txt index 64d4e13..43f9df7 100644 --- a/back/backend/templates/backend/email.txt +++ b/back/backend/templates/backend/email.txt @@ -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 %} diff --git a/back/db.sqlite3 b/back/db.sqlite3 index 63e34f6e142b4ff799e17967459f21cfe40f98d2..e1d41596d7922b7a3494ee4a62a36f8929456c47 100644 GIT binary patch delta 6045 zcmc)O3v`s_nFsLadEX(KTuBflK%7kOArY8cG9hIJ6fr8fkPMI^x0%Upl0bkYXcB=* zFkD1L*s*+6K?$`QycBeh*(xGns9o8%0_&dToOYpLt81&pZnXt(`+p};u|~RkdiE^u zdH%m|zL|GsGV^}ld=I@FqkA_-Z=Dp=LqtbWgDCg5EIaqS;L=60H_#AOl@)I>noI>& zQ-LXWs?}^Y*{y+7R?8ge+Ym5yoXEv@ZOgaMS;i_ zCXpjDM6yT}pjp6c__@L++`KkOwek6Y<-<9X(F9Q?%Uzek>zosT|euF{pi&PKN5%Kf? zFT?!5e%ZkOt;{|T=Mjl{9?k`~d)NkU@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