2017-07-13 19:46:51 -04:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2017-07-15 00:13:57 -04:00
|
|
|
{% block title %}Activatei deployment #{{ deploy.machine_id }}{% endblock %}
|
2017-07-13 19:46:51 -04:00
|
|
|
|
|
|
|
{% block page_content %}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="panel panel-info">
|
|
|
|
<div class="panel-heading">Activate</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
|
2017-07-15 00:13:57 -04:00
|
|
|
<form method="POST" action"{{ url_for('vmanager.activate', itemid=deploy.machine_id) }}">
|
|
|
|
<h3>
|
|
|
|
CPU x {{ deploy.machine_cpu }} cores = {{ cpu_cost }}<br />
|
|
|
|
Memory x {{ deploy.machine_mem }} MB = {{ mem_cost }}<br />
|
|
|
|
Storage x {{ deploy.machine_hdd }} GB = {{ hdd_cost }}<br />
|
|
|
|
{{ form.period.label }} {{ form.period }}<br />
|
2017-07-13 19:46:51 -04:00
|
|
|
{% for error in form.period.errors %}
|
|
|
|
{{ error }}<br />
|
|
|
|
{% endfor %}
|
2017-07-15 00:13:57 -04:00
|
|
|
---<br />
|
|
|
|
Total = {{ total }}
|
|
|
|
</h3>
|
|
|
|
|
2017-07-13 19:46:51 -04:00
|
|
|
<p>
|
|
|
|
{{ form.csrf_token() }}
|
|
|
|
{{ form.submit }}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|