diff --git a/hosting/static/hosting/css/landing-page.css b/hosting/static/hosting/css/landing-page.css
index 71b7a33d..5c71b7ca 100644
--- a/hosting/static/hosting/css/landing-page.css
+++ b/hosting/static/hosting/css/landing-page.css
@@ -580,9 +580,9 @@ a.unlink:hover {
}
.dcl-place-order-text{
- font-size: 13px;
+ /* font-size: 13px; */
color: #808080;
- margin-bottom: 15px;
+ /* margin-bottom: 15px; */
}
.dcl-order-table-total .tbl-total {
diff --git a/hosting/static/hosting/css/order.css b/hosting/static/hosting/css/order.css
index 186f7c16..0377bfac 100644
--- a/hosting/static/hosting/css/order.css
+++ b/hosting/static/hosting/css/order.css
@@ -1,6 +1,6 @@
.order-detail-container {
max-width: 600px;
- margin: 100px auto;
+ margin: 100px auto 40px;
border: 1px solid #ccc;
padding: 30px;
}
@@ -23,6 +23,7 @@
.order-detail-container .dashboard-title-thin {
margin-top: 0;
+ margin-left: -3px;
}
.order-detail-container .dashboard-title-thin .un-icon {
@@ -32,6 +33,7 @@
.order-detail-container .dashboard-container-head {
position: relative;
padding: 0;
+ margin-bottom: 38px;
}
.order-detail-container .dashboard-container-options {
@@ -43,4 +45,34 @@
height: 20px;
/* margin-right: 5px; */
width: 20px;
+}
+
+.order-detail-container .order-details {
+ margin-bottom: 30px;
+}
+
+.order-detail-container .order-details strong {
+ color: #777;
+}
+
+.order-detail-container h4 {
+ font-size: 16px;
+ font-weight: bold;
+ margin-bottom: 15px;
+}
+
+.order-detail-container p {
+ margin-bottom: 5px;
+ color: #595959;
+}
+
+.order-detail-container hr {
+ margin: 15px 0;
+}
+
+@media (max-width: 767px) {
+ .order-confirm-btn {
+ text-align: center;
+ margin-top: 10px;
+ }
}
\ No newline at end of file
diff --git a/hosting/static/hosting/js/order.js b/hosting/static/hosting/js/order.js
new file mode 100644
index 00000000..e9de4cf9
--- /dev/null
+++ b/hosting/static/hosting/js/order.js
@@ -0,0 +1,15 @@
+$(document).ready(function() {
+ $('.btn-pdf').click(function(e) {
+ e.preventDefault();
+ var $target = $($(this).attr('data-target')) || $('body');
+ var fileName = $target.attr('id') + '.pdf';
+ html2pdf($target[0], {
+ filename: fileName,
+ });
+ });
+ $('.btn-print').click(function(e) {
+ e.preventDefault();
+ console.log('a');
+ window.print();
+ });
+});
\ No newline at end of file
diff --git a/hosting/static/hosting/js/virtual_machine_detail.js b/hosting/static/hosting/js/virtual_machine_detail.js
index b6202e97..7d66afaf 100644
--- a/hosting/static/hosting/js/virtual_machine_detail.js
+++ b/hosting/static/hosting/js/virtual_machine_detail.js
@@ -1,4 +1,5 @@
$(document).ready(function () {
+ $('.modal-text').removeClass('hide');
var create_vm_form = $('#virtual_machine_create_form');
create_vm_form.submit(function () {
$('#btn-create-vm').prop('disabled', true);
@@ -22,6 +23,7 @@ $(document).ready(function () {
fa_icon = $('.modal-icon > .fa');
fa_icon.attr('class', 'fa fa-times');
$('.modal-header > .close').attr('class', 'close');
+ $('.modal-text').addClass('hide');
if (typeof(create_vm_error_message) !== 'undefined') {
$('#createvm-modal-title').text(create_vm_error_message);
}
diff --git a/hosting/templates/hosting/base_short.html b/hosting/templates/hosting/base_short.html
index 63a0681d..3906133b 100644
--- a/hosting/templates/hosting/base_short.html
+++ b/hosting/templates/hosting/base_short.html
@@ -94,6 +94,13 @@
+ {% block js_extra %}
+ {% comment %}
+ this block is above some files, because on stripe error scripts below the stripe
+ script are not properly executed.
+ {% endcomment %}
+ {% endblock js_extra %}
+
@@ -108,8 +115,6 @@
-
-