Hype/web/arch/old-upload.html

83 lines
2.4 KiB
HTML

{% include 'base.html' %}
{% block main %}
<div class="miniform">
<h3>Upload ISO</h3>
{{ dropzone.create(action='upload') }}
</div>
<div class="miniform">
<h3>ISOSSSSS</h3>
<table id="affiche">
<tr><th>ISO list</th><th>Delete</th></tr>
{%for iso in list_iso %}
<tr><td>{{ iso[0] }} ( {{ iso[1] }} )
</td><td><form action="/deliso" method="post"><button type="submit" value="{{ iso[0] }}" name="fichier" onclick="loading();" class="deliso"><span class="fas fa-trash"></span></button></form>
</td></tr>
{%endfor%}
</table>
</div>
<div class="card">
<h3>Create VM</h3>
<form action="/creationvm" method="post">
<input type="text" name="nom" placeholder="Name" required>
<input type="text" name="ram" placeholder="Memory (MiB)" required>
<input type="text" name="cpu" placeholder="vCPU" required><br>
<select id="profilelist" name="os" placeholder="Profile" required>
{%for profile in list_profiles %}
<option value={{ profile }}>{{ profile }}</option>
{%endfor%}
</select>
<select id="isolist" name="iso" required>
{%for iso in list_iso %}
<option value={{ iso[0] }}>{{ iso [0] }}</option>
{%endfor%}
</select>
<select id="netlist" name="net" required>
{%for net in list_net %}
<option value={{ net }}>{{ net }}</option>
{%endfor%}
</select>
<input type="text" name="disk" placeholder="Disk (GB)" required>
<br>
<button name="creation" type="submit"><span class="fas fa-cube"></span></button>
</form>
</div>
<div class="miniform">
<h3>Create Container</h3>
<form action="/creation" method="post">
<input type="text" name="nom" placeholder="Name" required>
Optionnal static IP:
<input type="text" name="ip" placeholder="192.168.XX.XX/YY">
<select id="oslist" name="os">
{%for dist in listdistrib %}
<option value={{ dist[1] }}>{{ dist[0] }}</option>
{%endfor%}
</select>
<button name="creation" type="submit"><span class="fas fa-cube" onclick="loading();"></span></button>
</form>
</div>
<div class="miniform">
<h3>Rename Container</h3>
<form action="/renamect" method="post">
<input type="text" name="newname" placeholder="New Name" required>
<select id="ctlist" name="nom">
{%for lxc in listlxc%}
<option value={{ lxc }}>{{ lxc }}</option>
{%endfor%}
</select>
<button name="renamect" type="submit" onclick="loading();"><span class="fas fa-play"></span></button>
</form>
<p>Be carefull, the container will be stop in order to rename it !</p>
</div>
{% endblock %}
{% include 'foot.html' %}