18 changed files with 344 additions and 88 deletions
After Width: | Height: | Size: 714 B |
After Width: | Height: | Size: 714 B |
@ -0,0 +1,49 @@
|
||||
{% extends 'base.html' %} |
||||
|
||||
{% block title %}Console{% endblock %} |
||||
|
||||
{% block content %} |
||||
<div class="third-margin"> |
||||
<h1>CONSOLE</h1> |
||||
</div> |
||||
<div class="third-margin"> |
||||
<div class="nav-row"> |
||||
<a href="/console">Capsuls</a> |
||||
<a href="/console/ssh">SSH Public Keys</a> |
||||
<a href="/console/billing">Billing</a> |
||||
</div> |
||||
</div> |
||||
<div class="third-margin"> |
||||
{% if vms[0] is defined %} |
||||
<table> |
||||
<thead> |
||||
<tr> |
||||
<th>id</th> |
||||
<th>size</th> |
||||
<th>ipv4</th> |
||||
<th>os</th> |
||||
<th>created</th> |
||||
</tr> |
||||
</thead> |
||||
<tbody> |
||||
{% for vm in vms %} |
||||
<a href="/console/{{ vm['id'] }}"> |
||||
<tr> |
||||
<td>{{ vm["id"] }}</td> |
||||
<td>{{ vm["size"] }}</td> |
||||
<td>{{ vm["ipv4"] }}</td> |
||||
<td>{{ vm["os"] }}</td> |
||||
<td>{{ vm["created"] }}</td> |
||||
</tr> |
||||
</a> |
||||
{% endfor %} |
||||
</tbody> |
||||
</table> |
||||
{% else %} |
||||
You don't have any Capsuls running. <a href="/console/create">Create one</a> today! |
||||
{% endif %} |
||||
|
||||
</div> |
||||
{% endblock %} |
||||
|
||||
{% block pagesource %}/templates/console.html{% endblock %} |
@ -0,0 +1,68 @@
|
||||
{% extends 'base.html' %} |
||||
|
||||
{% block title %}Create{% endblock %} |
||||
|
||||
{% block content %} |
||||
<div class="half-margin"> |
||||
<h1>CONSOLE - CREATE CAPSUL</h1> |
||||
</div> |
||||
<div class="half-margin"> |
||||
{% if ssh_public_keys[0] is defined %} |
||||
<pre> |
||||
CAPSUL SIZES |
||||
============ |
||||
type monthly cpus mem ssd net* |
||||
----- ------- ---- --- --- --- |
||||
f1-s $5.33 1 512M 25G .5TB |
||||
f1-m $7.16 1 1024M 25G 1TB |
||||
f1-l $8.92 1 2048M 25G 2TB |
||||
f1-x $16.16 2 4096M 25G 4TB |
||||
f1-xx $29.66 4 8096M 25G 8TB |
||||
f1-xxx $57.58 8 16G 25G 16TB |
||||
|
||||
* net is calculated as a per-month average |
||||
* all VMs come standard with one public IPv4 addr</pre> |
||||
</div> |
||||
<form method="post"> |
||||
<div class="row justify-start"> |
||||
<label class="align" for="size">Capsul Size</label> |
||||
<select id="size" name="size"> |
||||
{% for size in vm_sizes.keys() %}<option value="{{ size }}">{{ size }}</option>{% endfor %} |
||||
</select> |
||||
</div> |
||||
<div class="row justify-start"> |
||||
<label class="align" for="os">Operating System</label> |
||||
<select id="os" name="os"> |
||||
{% for os_id, os in operating_systems.items() %} |
||||
<option value="{{ os_id }}">{{ os.description }}</option> |
||||
{% endfor %} |
||||
</select> |
||||
</div> |
||||
<div class="row justify-end"> |
||||
<input type="submit" value="Create"> |
||||
</div> |
||||
</form> |
||||
{% else %} |
||||
<p>You don't have any ssh public keys yet.</p> |
||||
<p>You must <a href="/console/ssh/upload">upload one</a> before you can create a Capsul.</p> |
||||
{% endif %} |
||||
|
||||
{% endblock %} |
||||
|
||||
{% block subcontent %} |
||||
{% if ssh_public_keys[0] is defined %} |
||||
<p> |
||||
Using our services implies that you agree to our terms of service & privacy policy. |
||||
</p> |
||||
<ul> |
||||
<li> |
||||
<a href="https://git.cyberia.club/congress/terms-of-service/plain/README">git.cyberia.club/congress/terms-of-service</a> |
||||
</li> |
||||
<li> |
||||
<a href="https://git.cyberia.club/congress/privacy-policy/plain/README">git.cyberia.club/congress/privacy-policy</a> |
||||
</li> |
||||
</ul> |
||||
{% endif %} |
||||
{% endblock %} |
||||
|
||||
{% block pagesource %}/templates/console.html{% endblock %} |
Loading…
Reference in new issue