Changed offers in VM pricing, Fixed pricing error changing disk size, VM footer dead links, Added logged out message

This commit is contained in:
Levi 2016-05-19 01:47:16 -04:30
commit e26eecf2eb
13 changed files with 124 additions and 44 deletions

View file

@ -81,23 +81,23 @@
</li>
{% else %}
<li>
<a href="{{ request.META.HTTP_REFERER }}#how">How it works</a>
<a href="{{ request.session.hosting_url}}#how">How it works</a>
</li>
<li>
<a href="{{ request.META.HTTP_REFERER }}#your">Your infrastructure</a>
<a href="{{ request.session.hosting_url }}#your">Your infrastructure</a>
</li>
<li>
<a href="{{ request.META.HTTP_REFERER }}#our">Our inftrastructure</a>
<a href="{{ request.session.hosting_url }}#our">Our inftrastructure</a>
</li>
<li>
<a href="{{ request.META.HTTP_REFERER }}#price">Pricing</a>
<a href="{{ request.session.hosting_url }}#price">Pricing</a>
</li>
<li>
<a href="{{ request.META.HTTP_REFERER }}#contact">Contact</a>
<a href="{{ request.session.hosting_url }}#contact">Contact</a>
</li>
<li>
<a href="{% url 'hosting:login' %}?next={{request.current_path}}">Login</a>
</li>
</li>
{% endif %}
</ul>
</div>
@ -123,21 +123,22 @@
</li>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a href="{{ request.META.HTTP_REFERER }}#how">How it works</a>
<a href="{{ request.session.hosting_url}}#how">How it works</a>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a href="{{ request.META.HTTP_REFERER }}#your">Your infrastructure</a></li>
<a href="{{ request.session.hosting_url }}#your">Your infrastructure</a></li>
<li>&sdot;</li>
<li>
<a href="{{ request.META.HTTP_REFERER }}#our">Our infrastructure</a></li>
<a href="{{ request.session.hosting_url }}#our">Our infrastructure</a></li>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a href="{{ request.META.HTTP_REFERER }}#services">Pricing</a>
<a href="{{ request.session.hosting_url }}#services">Pricing</a>
</li>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a href="{{ request.META.HTTP_REFERER }}#contact">Contact</a>
<a href="{{ request.session.hosting_url }}#contact">Contact</a>
</li>
</ul>
<p class="copyright text-muted small">Copyright &copy; ungleich GmbH {% now "Y" %}. All Rights Reserved</p>
</div>

View file

@ -1,3 +1,4 @@
{% load staticfiles %}
<a name="price"></a>
<div class="content-section-b">
<div class="container-fluid pricing-container">
@ -6,7 +7,6 @@
<hr class="section-heading-spacer">
<div class="clearfix"></div>
<h2 class="section-heading">Hosting Price</h2>
<p class="lead">Here are samples of our {{ hosting_long }} hosting offers, suited for different projects. Our offer examples come in different size, speed, and storage. </p>
</div>
<!-- Title -->
<div class="row">
@ -17,17 +17,31 @@
<!-- Page Features -->
<div class="row text-center">
<div class="block col-md-offset-1">
<div class="block col-md-offset-3">
{% for vm in vm_types %}
<div class="col-xs-12 col-sm-6 col-md-2">
<div class="col-xs-12 col-sm-6 col-md-4">
<form class="form-inline" method="POST" action="{{request.path}}">
{% csrf_token %}
<input type="hidden" name="hosting_company" value="{{vm.hosting_company}}">
<input type="hidden" name="hosting_company_name" value="{{vm.hosting_company_name}}">
<ul class="pricing {% cycle 'p-green' 'p-yel' 'p-red' 'p-blue' %}">
<ul class="pricing {% cycle 'p-red' 'p-black' 'p-red' 'p-yel' %}">
<li class="type">
<!-- <img src="http://bread.pp.ua/n/settings_g.svg" alt=""> -->
<h3 >{{vm.hosting_company_name}}</h3>
<br/>
<img class="img-responsive" src="{{ STATIC_URL }}hosting/img/{{vm.location_code}}_flag.png" alt="">
</li>
<li>
<!-- Single button -->
<div class="btn-group">
<div class="form-group">
<label for="cores">Location: </label>
{{vm.location}}
</div>
</div>
</li>
<li>
<!-- Single button -->
@ -64,7 +78,7 @@
<div class="form-group row">
<div class="col-xs-offset-1 col-xs-9 col-sm-12 col-md-12 col-md-offset-0">
<label for="Disk Size">Disk Size: </label>
<input class="form-control short-input text-center disk-space-selector" name="disk_space" type="number" id="{{vm.hosting_company}}-disk_space" min="10" value="10" data-vm-type="{{vm.hosting_company}}"/>
<input class="form-control short-input text-center disk-space-selector" name="disk_space" type="number" id="{{vm.hosting_company}}-disk_space" min="10" value="10" step="10" data-vm-type="{{vm.hosting_company}}"/>
<span>GiB</span>
</div>
</div>
@ -75,7 +89,7 @@
<span>per month</span>
</li>
<li>
<button>Buy it</button>
<button>Book it</button>
</li>
</ul>
</form>

View file

@ -5,6 +5,17 @@
<div class="intro-auth intro-login">
<div class="container">
<div class="col-md-4 col-md-offset-4">
{% block messages %}
{% if request.GET.logged_out %}
<div class="alert alert-warning"> <!-- singular -->
<a class="close" data-dismiss="alert">×</a>
You haven been logged out
</div>
{% endif %}
{% endblock %}
<div class="intro-message">
<h2 class="section-heading">Login</h2>
<form action="{% url 'hosting:login' %}" method="post" class="form" novalidate>