Reverted pricing.html to what was before. We should create a new template for order.
This commit is contained in:
parent
c111ad13a8
commit
bef6b03872
1 changed files with 21 additions and 62 deletions
|
@ -85,9 +85,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="drop-language">
|
<div class="drop-language">
|
||||||
{% if LANGUAGE_CODE == 'en-us'%}
|
{% if LANGUAGE_CODE == 'en-us'%}
|
||||||
<a class="url" href="{{base_url}}/de/datacenterlight/order" >Deutsch</a>
|
<a class="url" href="{{base_url}}/de/datacenterlight/pricing" >Deutsch</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="url" href="{{base_url}}/en-us/datacenterlight/order" >English</a>
|
<a class="url" href="{{base_url}}/en-us/datacenterlight/pricing" >English</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<img class="img-beta" src="{% static 'datacenterlight/img/beta-img.png' %}" alt="">
|
<img class="img-beta" src="{% static 'datacenterlight/img/beta-img.png' %}" alt="">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<form id="order_form" method="POST" action="">
|
<form method="POST" action="">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
@ -146,8 +146,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="description select-configuration input">
|
<div class="description select-configuration">
|
||||||
<label for="config">OS</label>
|
|
||||||
<select name="config" id="">
|
<select name="config" id="">
|
||||||
{% for template in templates %}
|
{% for template in templates %}
|
||||||
<option value="{{template.id}}">{{template.name}} </option>
|
<option value="{{template.id}}">{{template.name}} </option>
|
||||||
|
@ -158,22 +157,10 @@
|
||||||
<!--<div class="description check-ip">
|
<!--<div class="description check-ip">
|
||||||
<input type="checkbox" name="ipv6"> Ipv6 Only<br>
|
<input type="checkbox" name="ipv6"> Ipv6 Only<br>
|
||||||
</div>-->
|
</div>-->
|
||||||
|
|
||||||
<div class="description input">
|
|
||||||
<label for="name">Name</label>
|
|
||||||
<input type="text" name="name" placeholder="Your Name">
|
|
||||||
</div>
|
|
||||||
<div class="description input">
|
|
||||||
<label for="email">Email</label>
|
|
||||||
<input type="email" name="email" placeholder="Your Email">
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" class="btn btn-primary" value="{% trans 'Order Now!' %}"></input>
|
<input type="submit" class="btn btn-primary" value="{% trans 'Order Now!' %}"></input>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div id="error_message_box" class="error-message-box"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -224,51 +211,23 @@
|
||||||
|
|
||||||
<!-- jQuery -->
|
<!-- jQuery -->
|
||||||
<script src="{% static 'datacenterlight/js/jquery.js' %}"></script>
|
<script src="{% static 'datacenterlight/js/jquery.js' %}"></script>
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.5.4/bootstrap-select.js"></script>
|
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.16.0/jquery.validate.min.js"></script>
|
<script type="text/javascript">
|
||||||
<script type="text/javascript">
|
window.onload=function(){
|
||||||
$(document).ready(function(){
|
$('.selectpicker').selectpicker({
|
||||||
$.validator.setDefaults({
|
style: 'btn-link',
|
||||||
ignore: []
|
windowPadding: 10,
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#order_form').validate({
|
var hash = window.location.hash.substr(1);
|
||||||
wrapper: 'div',
|
console.log(hash);
|
||||||
errorLabelContainer: "#error_message_box",
|
if (hash == 'requestform'){
|
||||||
rules: {
|
$('#reques-success-message').modal('show');
|
||||||
name: {
|
}
|
||||||
required: true,
|
|
||||||
minlength: 3
|
};
|
||||||
},
|
</script>
|
||||||
email: {
|
|
||||||
required: true,
|
|
||||||
email: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
messages: {
|
|
||||||
name: "Please enter your name",
|
|
||||||
email: "Please enter a valid email address"
|
|
||||||
},
|
|
||||||
submitHandler: function (form) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
window.onload=function(){
|
|
||||||
$('.selectpicker').selectpicker({
|
|
||||||
style: 'btn-link',
|
|
||||||
windowPadding: 10,
|
|
||||||
});
|
|
||||||
|
|
||||||
var hash = window.location.hash.substr(1);
|
|
||||||
console.log(hash);
|
|
||||||
if (hash == 'requestform'){
|
|
||||||
$('#reques-success-message').modal('show');
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.5.4/bootstrap-select.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.5.4/bootstrap-select.js"></script>
|
||||||
|
|
||||||
<!-- Bootstrap Core JavaScript -->
|
<!-- Bootstrap Core JavaScript -->
|
||||||
|
|
Loading…
Reference in a new issue