fix: show storage dropdown even when only one pool available
This commit is contained in:
parent
e3bc7929c6
commit
dc023c8572
1 changed files with 2 additions and 3 deletions
|
|
@ -63,15 +63,14 @@
|
|||
<div class="pve-row">
|
||||
<div class="pve-form-group">
|
||||
<label>Storage Pool</label>
|
||||
{% if storage_pools and storage_pools|length > 1 %}
|
||||
{% if storage_pools %}
|
||||
<select name="target_storage" class="pve-select">
|
||||
{% for pool in storage_pools %}
|
||||
<option value="{{ pool.name }}">{{ pool.name }} ({{ pool.type }})</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% else %}
|
||||
<input type="text" name="target_storage" class="pve-input"
|
||||
value="{{ storage_pools[0].name if storage_pools else 'local-lvm' }}">
|
||||
<input type="text" name="target_storage" class="pve-input" value="local-lvm">
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="pve-form-group">
|
||||
|
|
|
|||
Loading…
Reference in a new issue