From 47d882d1fc70395f8e8148a4a972c4e8ae9089ac Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Sun, 11 Jun 2017 16:29:24 +0530 Subject: [PATCH] Moved the calculator to the index.html template --- .../templates/datacenterlight/index.html | 140 +++++++++++++----- 1 file changed, 102 insertions(+), 38 deletions(-) diff --git a/datacenterlight/templates/datacenterlight/index.html b/datacenterlight/templates/datacenterlight/index.html index ee2a6ac8..073ab81d 100755 --- a/datacenterlight/templates/datacenterlight/index.html +++ b/datacenterlight/templates/datacenterlight/index.html @@ -238,31 +238,69 @@
-
-
-
-

{% trans "VM hosting" %}

+
+
+ +
+
+ {% csrf_token %} +
+

{% trans "VM hosting" %}

+
+
+ 15 + CHF +
+
+
+

{% trans "Hosted in Switzerland" %}

+
+
+ + + Core + +
+
+ + + GB RAM + +
+
+ + + {% trans "GB Storage (SSD)" %} + +
+
+ + +
+ + +
+ + +
+
+ + +
+
+ +
-
- 15 CHF/month -
-
-
-

{% trans "Based in Switzerland" %}

-
-
-

1 Core,

-
-
-

2 GB RAM,

-
-
-

{% trans "10 GB Storage (SSD)" %}

-
-
- {% trans "Order Now!" %} -
- +
+
+
+
@@ -366,22 +404,48 @@ - - + + window.onload=function(){ + $('.selectpicker').selectpicker({ + style: 'btn-link', + windowPadding: 10, + }); + $.ajax({ + url: "{% url 'datacenterlight:beta_access' %}", + context: document.body + }).done(function(response) { + $('#beta_access_form').html(response); + }); + }; +