design fixes
This commit is contained in:
parent
db3955ab94
commit
a16dbb50d8
4 changed files with 32 additions and 16 deletions
|
@ -2,6 +2,10 @@
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
margin: 100px auto 40px;
|
margin: 100px auto 40px;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media(min-width: 768px) {
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,9 +46,8 @@
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
.order-detail-container .dashboard-container-options .svg-img {
|
.order-detail-container .dashboard-container-options .svg-img {
|
||||||
height: 20px;
|
height: 22px;
|
||||||
/* margin-right: 5px; */
|
width: 22px;
|
||||||
width: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-detail-container .order-details {
|
.order-detail-container .order-details {
|
||||||
|
@ -52,7 +55,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-detail-container .order-details strong {
|
.order-detail-container .order-details strong {
|
||||||
color: #777;
|
color: #595959;
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-detail-container h4 {
|
.order-detail-container h4 {
|
||||||
|
@ -75,4 +78,13 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
.order-detail-container .dashboard-container-options {
|
||||||
|
position: absolute;
|
||||||
|
top: 4px;
|
||||||
|
right: -4px;
|
||||||
|
}
|
||||||
|
.order-detail-container .dashboard-container-options .svg-img {
|
||||||
|
height: 16px;
|
||||||
|
width: 16px;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -81,8 +81,12 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{{cc_brand}} {% trans "ending in" %} ****
|
{{cc_brand}} {% trans "ending in" %} ****
|
||||||
{{cc_last4}}<br>
|
{{cc_last4}}<br>
|
||||||
|
{% if request.user.is_authenticated %}
|
||||||
|
{{request.user.email}}
|
||||||
|
{% else %}
|
||||||
{{request.session.user.email}}
|
{{request.session.user.email}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
|
@ -101,7 +105,7 @@
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
<p>
|
<p>
|
||||||
<span>{% trans "Cores" %}</span>
|
<span>{% trans "Cores" %}</span>
|
||||||
<span class="pull-right">{{vm.cores}}</span>
|
<span class="pull-right">{{vm.cores|floatformat}}</span>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span>{% trans "Memory" %}</span>
|
<span>{% trans "Memory" %}</span>
|
||||||
|
@ -140,10 +144,10 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if order %}
|
||||||
<div class="text-center" style="margin-bottom: 50px;">
|
<div class="text-center" style="margin-bottom: 50px;">
|
||||||
<a class="btn btn-vm-back" href="{% url 'hosting:orders' %}">{% trans "BACK TO LIST" %}</a>
|
<a class="btn btn-vm-back" href="{% url 'hosting:orders' %}">{% trans "BACK TO LIST" %}</a>
|
||||||
</div>
|
</div>
|
||||||
{% if order %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not order %}
|
{% if not order %}
|
||||||
|
|
|
@ -12,7 +12,7 @@ from .views import (
|
||||||
from django.views.generic import TemplateView
|
from django.views.generic import TemplateView
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'test/?$', TemplateView.as_view(template_name='hosting/order_detail.html')),
|
url(r'test/?$', TemplateView.as_view(template_name='hosting/order_detail.html'), name='test'),
|
||||||
url(r'index/?$', IndexView.as_view(), name='index'),
|
url(r'index/?$', IndexView.as_view(), name='index'),
|
||||||
url(r'django/?$', DjangoHostingView.as_view(), name='djangohosting'),
|
url(r'django/?$', DjangoHostingView.as_view(), name='djangohosting'),
|
||||||
url(r'dashboard/?$', DashboardView.as_view(), name='dashboard'),
|
url(r'dashboard/?$', DashboardView.as_view(), name='dashboard'),
|
||||||
|
|
|
@ -661,7 +661,7 @@ class OrdersHostingDetailView(LoginRequiredMixin,
|
||||||
self.request.session.get('token')
|
self.request.session.get('token')
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
card_details = None
|
card_details = {}
|
||||||
|
|
||||||
if self.request.GET.get('page') == 'payment':
|
if self.request.GET.get('page') == 'payment':
|
||||||
context['page_header_text'] = _('Confirm Order')
|
context['page_header_text'] = _('Confirm Order')
|
||||||
|
@ -704,12 +704,12 @@ class OrdersHostingDetailView(LoginRequiredMixin,
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
# if 'specs' not in self.request.session:
|
if 'specs' not in self.request.session:
|
||||||
# return HttpResponseRedirect(
|
return HttpResponseRedirect(
|
||||||
# reverse('hosting:create_virtual_machine')
|
reverse('hosting:create_virtual_machine')
|
||||||
# )
|
)
|
||||||
# if 'token' not in self.request.session:
|
if 'token' not in self.request.session:
|
||||||
# return HttpResponseRedirect(reverse('hosting:payment'))
|
return HttpResponseRedirect(reverse('hosting:payment'))
|
||||||
self.object = self.get_object()
|
self.object = self.get_object()
|
||||||
context = self.get_context_data(object=self.object)
|
context = self.get_context_data(object=self.object)
|
||||||
if 'failed_payment' in context:
|
if 'failed_payment' in context:
|
||||||
|
|
Loading…
Reference in a new issue