Take users to invoice url instead of orders

Orders need a VAT alignment fix
This commit is contained in:
PCoder 2020-02-01 13:00:04 +05:30
parent b645f9894b
commit 23b25002ae
3 changed files with 20 additions and 21 deletions

View file

@ -173,8 +173,7 @@ def create_vm_task(self, vm_template_id, user, specs, template, order_id):
context = { context = {
'base_url': "{0}://{1}".format(user.get('request_scheme'), 'base_url': "{0}://{1}".format(user.get('request_scheme'),
user.get('request_host')), user.get('request_host')),
'order_url': reverse('hosting:orders', 'order_url': reverse('hosting:invoices'),
kwargs={'pk': order_id}),
'page_header': _( 'page_header': _(
'Your New VM %(vm_name)s at Data Center Light') % { 'Your New VM %(vm_name)s at Data Center Light') % {
'vm_name': vm.get('name')}, 'vm_name': vm.get('name')},

View file

@ -103,26 +103,26 @@
<strong>{% trans "Product" %}:</strong>&nbsp; <strong>{% trans "Product" %}:</strong>&nbsp;
{{ request.session.template.name }} {{ request.session.template.name }}
</p> </p>
<style> <style>
@media screen and (max-width:767px){ @media screen and (max-width:767px){
.cmf-ord-heading { .cmf-ord-heading {
font-size: 13px; font-size: 13px;
} }
.order-detail-container .order-details { .order-detail-container .order-details {
font-size: 13px; font-size: 13px;
} }
} }
@media screen and (max-width:367px){ @media screen and (max-width:367px){
.cmf-ord-heading { .cmf-ord-heading {
font-size: 13px; font-size: 13px;
} }
.order-detail-container .order-details { .order-detail-container .order-details {
font-size: 12px; font-size: 12px;
} }
} }
</style> </style>
<div class="row"> <div class="row">
<div class="col-sm-8"> <div class="col-sm-8">
<p> <p>

View file

@ -1154,7 +1154,7 @@ class OrderConfirmationView(DetailView, FormView):
response = { response = {
'status': True, 'status': True,
'redirect': ( 'redirect': (
reverse('hosting:orders') reverse('hosting:invoices')
if request.user.is_authenticated() if request.user.is_authenticated()
else reverse('datacenterlight:index') else reverse('datacenterlight:index')
), ),