first logic in mail template tested
This commit is contained in:
		
							parent
							
								
									ae82a26ba8
								
							
						
					
					
						commit
						8ad0f91c85
					
				| 
						 | 
				
			
			@ -1 +1,7 @@
 | 
			
		|||
hello {{realname}}
 | 
			
		||||
hello {{data.realname}}
 | 
			
		||||
<p>
 | 
			
		||||
{% if data.choice == 'IFG' %}
 | 
			
		||||
  IFG detected
 | 
			
		||||
{% else %}
 | 
			
		||||
  no IFG detected
 | 
			
		||||
{% endif %}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -91,7 +91,7 @@ class ExternView(CookieWizardView):
 | 
			
		|||
        # we need to send the following mails here:
 | 
			
		||||
        #  - mail with entered data to the Volunteer
 | 
			
		||||
        mail_template = get_template('input/ifg_volunteer_mail.txt')
 | 
			
		||||
        context = { 'realname': data['realname'] }
 | 
			
		||||
        context = { 'data': data }
 | 
			
		||||
        send_mail(
 | 
			
		||||
            'form filled',
 | 
			
		||||
            mail_template.render(context),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue