Corrected getting VM name in template
This commit is contained in:
		
					parent
					
						
							
								b5120040d3
							
						
					
				
			
			
				commit
				
					
						50431542f8
					
				
			
		
					 3 changed files with 6 additions and 5 deletions
				
			
		|  | @ -3,8 +3,9 @@ | |||
| {% block email_head %}{{page_header}}{% endblock %} | ||||
| {% block email_body %} | ||||
| {% url 'hosting:orders' order.id as order_url %} | ||||
| {% blocktrans %}You have ordered a new virtual machine!<br/> | ||||
| Your order of [{{vm|get_value_from_dict:'name'}}] has been charged.<br/><br/> | ||||
| {% blocktrans with vm.name as vm_name %}You have ordered a new virtual machine! | ||||
| <br/> | ||||
| Your order of [{{vm_name}}] has been charged.<br/><br/> | ||||
| You can view your invoice by clicking the button below.<br/><br/> | ||||
| {% endblocktrans %} | ||||
| <div class="button" style="border-collapse: collapse; font-family: 'Lato', 'sans-serif' !important; font-size: 14px; color: #777777; text-align: center; line-height: 21px; padding: 30px 0;" align="center"> | ||||
|  |  | |||
|  | @ -2,8 +2,8 @@ | |||
| {% load i18n %} | ||||
| {% block email_head %}{{page_header}}{% endblock %} | ||||
| {% block email_body %} | ||||
| {% blocktrans %}You have ordered a new virtual machine! | ||||
| Your order of [{{vm|get_value_from_dict:'name'}}] has been charged. | ||||
| {% blocktrans with vm.name as vm_name %}You have ordered a new virtual machine! | ||||
| Your order of [{{vm_name}}] has been charged. | ||||
| 
 | ||||
| You can view your invoice by clicking the link below. | ||||
| 
 | ||||
|  |  | |||
|  | @ -668,7 +668,7 @@ class PaymentVMView(LoginRequiredMixin, FormView): | |||
|                 'context': context, | ||||
|                 'template_name': 'new_booked_vm', | ||||
|                 'template_path': 'hosting/emails/', | ||||
|                 'from_email': settings.DCL_SUPPORT_FROM_ADDRESS, | ||||
|                 'from_address': settings.DCL_SUPPORT_FROM_ADDRESS, | ||||
|             } | ||||
|             email = BaseEmail(**email_data) | ||||
|             email.send() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue