From 8d64915d71dd2b2ff1d2258764802146fb4467e8 Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Mon, 11 Dec 2017 00:47:55 +0530 Subject: [PATCH] invoice footer added --- hosting/static/hosting/css/order.css | 19 ++++++++- hosting/templates/hosting/order_detail.html | 9 +++-- .../templates/hosting/virtual_machines.html | 40 +++++++++---------- hosting/urls.py | 3 +- 4 files changed, 44 insertions(+), 27 deletions(-) diff --git a/hosting/static/hosting/css/order.css b/hosting/static/hosting/css/order.css index 8e9226e2..734566a5 100644 --- a/hosting/static/hosting/css/order.css +++ b/hosting/static/hosting/css/order.css @@ -7,7 +7,7 @@ @media(min-width: 768px) { .order-detail-container { - padding: 30px; + padding: 30px 30px 20px; } } @@ -53,7 +53,7 @@ } .order-detail-container .order-details { - margin-bottom: 30px; + margin-bottom: 15px; } .order-detail-container .order-details strong { @@ -90,3 +90,18 @@ width: 16px; } } + +.order_detail_footer { + font-size: 9px; + letter-spacing: 1px; + color: #333333; +} + +.order_detail_footer strong { + font-size: 11px; +} + + +#virtual_machine_create_form { + padding: 15px 0; +} \ No newline at end of file diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html index fe200f6e..6ea4f36f 100644 --- a/hosting/templates/hosting/order_detail.html +++ b/hosting/templates/hosting/order_detail.html @@ -135,9 +135,7 @@ - {% if not order %} -
- {% endif %} +
{% if not order %} {% block submit_btn %} @@ -155,6 +153,11 @@ {% endblock submit_btn %} + {% else %} + {% endif %} {% endif %} diff --git a/hosting/templates/hosting/virtual_machines.html b/hosting/templates/hosting/virtual_machines.html index 6329cc10..467d9d39 100644 --- a/hosting/templates/hosting/virtual_machines.html +++ b/hosting/templates/hosting/virtual_machines.html @@ -39,27 +39,25 @@ {% for vm in vms %} - - {{vm.vm_id}} - {% if vm.ipv6 %} - {{vm.ipv4}} - {{vm.ipv6}} - {% endif %} - - - {% if vm.state == 'ACTIVE' %} - {{vm.state|title}} - {% elif vm.state == 'FAILED' %} - {{vm.state|title}} - {% else %} - {{vm.state|title}} - {% endif %} - - - - {% trans "View Detail" %} - - + + {{vm.vm_id}} + {% if vm.ipv4 %}{{vm.ipv4}}{% endif %} + {% if vm.ipv6 %}{{vm.ipv6}}{% endif %} + + + {% if vm.state == 'ACTIVE' %} + {{vm.state|title}} + {% elif vm.state == 'FAILED' %} + {{vm.state|title}} + {% else %} + {{vm.state|title}} + {% endif %} + + + + {% trans "View Detail" %} + + {% endfor %} diff --git a/hosting/urls.py b/hosting/urls.py index b00a199c..2112c493 100644 --- a/hosting/urls.py +++ b/hosting/urls.py @@ -8,7 +8,8 @@ from .views import ( MarkAsReadNotificationView, PasswordResetView, PasswordResetConfirmView, HostingPricingView, CreateVirtualMachinesView, HostingBillListView, HostingBillDetailView, SSHKeyDeleteView, SSHKeyCreateView, SSHKeyListView, - SSHKeyChoiceView, DashboardView, SettingsView, ResendActivationEmailView) + SSHKeyChoiceView, DashboardView, SettingsView, ResendActivationEmailView +) urlpatterns = [