dynamicweb/hosting/templates/hosting/create_virtual_machine.html

57 lines
2.2 KiB
HTML
Raw Normal View History

{% extends "hosting/base_short.html" %}
{% load staticfiles bootstrap3 i18n %}
{% block content %}
<div>
<div class="container dashboard-container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
2017-05-14 12:22:10 +02: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 %}
<h3><i class="fa fa-server" aria-hidden="true"></i> {% trans "New Virtual Machine"%} </h3>
<hr/>
<form method="POST" action="">
{% csrf_token %}
<div class="form-group">
2017-05-29 16:12:28 +02:00
{% trans "Select VM Template:" %}
<select name="vm_template_id">
{% for template in templates %}
2017-05-13 13:47:53 +02:00
<option value="{{template.id}}">{{template.name}} </option>
{% endfor %}
</select>
</div>
2017-05-13 06:59:57 +02:00
<div class="form-group">
2017-05-29 16:12:28 +02:00
{% trans "Select VM Configuration:" %}
2017-05-13 13:47:53 +02:00
<select name="configuration">
{% for config in configuration_options %}
<option value="{{config.id}}">
CORE: {{config.cpu|floatformat}},
2017-05-29 16:12:28 +02:00
RAM: {{config.memory|floatformat}} GB,
SSD: {{config.disk_size|floatformat}} GB,
2017-05-29 18:00:21 +02:00
PRICE: {{config.price|floatformat}} {% trans "CHF/Month" %}
2017-05-13 13:47:53 +02:00
</option>
{% endfor %}
</select>
2017-05-13 06:59:57 +02:00
</div>
<div class="form-group">
<button class="btn btn-success" >{% trans "Start VM"%} </button>
</div>
</form>
2017-05-14 12:22:10 +02:00
{% endif %}
</div>
</div>
</div>
</div>
{%endblock%}