33 lines
1.0 KiB
HTML
33 lines
1.0 KiB
HTML
|
{% extends 'index.html' %}
|
||
|
{% block second %}
|
||
|
<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 %}
|
||
|
|