2017-05-04 04:19:32 +00:00
|
|
|
{% extends "hosting/base_short.html" %}
|
|
|
|
{% load staticfiles bootstrap3 i18n %}
|
|
|
|
{% block content %}
|
|
|
|
<div>
|
2017-06-09 18:55:45 +00:00
|
|
|
<div class="dashboard-container" >
|
2017-05-04 04:19:32 +00:00
|
|
|
<div class="row">
|
2017-06-09 18:55:45 +00:00
|
|
|
|
2017-05-14 10:22:10 +00:00
|
|
|
<div class="col-md-12">
|
|
|
|
<br/>
|
|
|
|
{% if messages %}
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
{% for message in messages %}
|
|
|
|
<span>{{ message }}</span>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% if not error %}
|
2017-06-09 18:55:45 +00:00
|
|
|
<div class="dashboard-title">
|
|
|
|
<h3>{% trans "New Virtual Machine"%} </h3>
|
|
|
|
<hr/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<form method="POST" action="">
|
|
|
|
{% csrf_token %}
|
|
|
|
|
|
|
|
<div class="step-title">
|
|
|
|
<h4>{% trans "Step 1. Select VM Template:" %} </h4>
|
|
|
|
</div>
|
|
|
|
<div class="parent-container">
|
|
|
|
<div class="container-os owl-carousel owl-theme" id="containerOs">
|
|
|
|
|
|
|
|
{% for template in templates %}
|
|
|
|
<div class="os-circle" data-id="{{template.id}}">
|
|
|
|
<span class="text" >{{template.name}}</span>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<input type="hidden" name="vm_template_id">
|
|
|
|
</div>
|
|
|
|
<div class="step-title">
|
|
|
|
<h4>{% trans "Step2. Select VM Configuration" %}</h4>
|
|
|
|
</div>
|
|
|
|
<div class="parent-container">
|
|
|
|
<div class="container-os config owl-carousel owl-theme">
|
|
|
|
|
|
|
|
{% for config in configuration_options %}
|
|
|
|
<div class="config-box" data-id="{{config.id}}" data-price="{{config.price|floatformat}}">
|
|
|
|
<span>CORE: {{config.cpu|floatformat}}</span>
|
|
|
|
<span>RAM: {{config.memory|floatformat}} GB</span>
|
|
|
|
<span>SSD: {{config.disk_size|floatformat}} GB</span>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<input type="hidden" name="configuration">
|
|
|
|
</div>
|
|
|
|
<div class="container-button">
|
|
|
|
<div class="price">
|
|
|
|
<span class="label-price">{% trans "Price " %}<span id="priceValue">0</span>{% trans "CHF/Month" %}</span>
|
|
|
|
</div>
|
|
|
|
<button class="btn btn-success" >{% trans "Start VM"%} </button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2017-05-14 10:22:10 +00:00
|
|
|
{% endif %}
|
2017-05-04 04:19:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2017-05-12 10:07:05 +00:00
|
|
|
{%endblock%}
|