Disk edition improve
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
Disk(s) of {{ vm_name }}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
Actual disks<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm">
|
||||
{% for disk in disks %}
|
||||
@@ -60,6 +61,7 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<small>Be aware that detached disks, still exist ! You should clean unused disks on Pool tab.</small><br>
|
||||
<small><i class="fa-solid fa-triangle-exclamation"></i> Shrinking a disk size, can corrupt or delete your data <i class="fa-solid fa-triangle-exclamation"></i></small><br><br>
|
||||
<table style="width:100%;">
|
||||
{% for disk in disks %}
|
||||
@@ -71,7 +73,7 @@
|
||||
<input type="hidden" name="diskfile" value="{{ disk[0] }}" />
|
||||
<input type="text" name="new_size" class="form-control form-control-sm" placeholder="{{ disk[5] }}" value="{{ new_size }}" />
|
||||
</td><td> G </td><td>
|
||||
<button type="submit" class="btn btn-outline-info btn-hype">Resize</button>
|
||||
<button type="submit" class="btn btn-outline-info btn-hype"><i class="fa-solid fa-up-right-and-down-left-from-center"></i></button>
|
||||
</form>
|
||||
</td><td>
|
||||
<form action="/detachdisk" method="post">
|
||||
@@ -87,17 +89,17 @@
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
Add a disk<hr>
|
||||
Add and attach a new disk<hr>
|
||||
<div class="row">
|
||||
<div class="col-sm">
|
||||
<form action="/adddisk" method="post">
|
||||
<input type="hidden" name="vm_name" value="{{ vm_name }}">
|
||||
Name </br></br></br>Size </br></br>Disk target<br>
|
||||
New disk name </br></br></br>Size </br></br>Disk target (system name)<br>
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<input type="text" name="disk_name" class="form-control form-control-sm" ><br>
|
||||
<input type="text" name="disk_size" class="form-control form-control-smplaceholder="10"" > G<br>
|
||||
<input type="text" name="disk_id" class="form-control form-control-sm" placeholder="vda"><br>
|
||||
<input type="text" name="disk_name" class="form-control form-control-sm" required><br>
|
||||
<table><tr><td><input type="text" name="disk_size" class="form-control form-control-smplaceholder="10"" required></td><td> G</td></tr></table><br>
|
||||
<input type="text" name="disk_id" class="form-control form-control-sm" placeholder="vda" required><br>
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user