Added rule violations to emails.
This commit is contained in:
		
							parent
							
								
									fbf89d4876
								
							
						
					
					
						commit
						d876852e7e
					
				
					 3 changed files with 8 additions and 0 deletions
				
			
		|  | @ -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 %}     | ||||
|  |  | |||
|  | @ -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 %}     | ||||
|  |  | |||
							
								
								
									
										
											BIN
										
									
								
								back/db.sqlite3
									
										
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								back/db.sqlite3
									
										
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 kououken
						kououken