minor fixes
This commit is contained in:
		
					parent
					
						
							
								6c381dd3fb
							
						
					
				
			
			
				commit
				
					
						2c4390767d
					
				
			
		
					 2 changed files with 8 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -37,7 +37,11 @@
 | 
			
		|||
                </li>
 | 
			
		||||
                <li>
 | 
			
		||||
                    {% get_current_language as LANGUAGE_CODE %}
 | 
			
		||||
 | 
			
		||||
                    {% if LANGUAGE_CODE == 'en-us'%}
 | 
			
		||||
                        <a href="{% change_lang 'de' %}"><i class="fa fa-fw fa-globe" aria-hidden="true"></i>  Deutsch</a>
 | 
			
		||||
                    {% else %}
 | 
			
		||||
                        <a href="{% change_lang 'en-us' %}"><i class="fa fa-fw fa-globe" aria-hidden="true"></i>  English</a>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                </li>
 | 
			
		||||
            </ul>
 | 
			
		||||
        </div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -698,7 +698,7 @@ class OrdersHostingDetailView(LoginRequiredMixin,
 | 
			
		|||
                'last4')
 | 
			
		||||
            context['cc_brand'] = card_details.get('response_object').get(
 | 
			
		||||
                'cc_brand')
 | 
			
		||||
            context['vm'] = request.session.get('specs')
 | 
			
		||||
            context['vm'] = self.request.session.get('specs')
 | 
			
		||||
        return context
 | 
			
		||||
 | 
			
		||||
    def post(self, request):
 | 
			
		||||
| 
						 | 
				
			
			@ -776,8 +776,8 @@ class OrdersHostingDetailView(LoginRequiredMixin,
 | 
			
		|||
            'redirect': reverse('hosting:virtual_machines'),
 | 
			
		||||
            'msg_title': str(_('Thank you for the order.')),
 | 
			
		||||
            'msg_body': str(_('Your VM will be up and running in a few moments.'
 | 
			
		||||
                          ' We will send you a confirmation email as soon as'
 | 
			
		||||
                          ' it is ready.'))
 | 
			
		||||
                              ' We will send you a confirmation email as soon as'
 | 
			
		||||
                              ' it is ready.'))
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return HttpResponse(json.dumps(response),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue