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-row">
|
||||||
<div class="pve-form-group">
|
<div class="pve-form-group">
|
||||||
<label>Storage Pool</label>
|
<label>Storage Pool</label>
|
||||||
{% if storage_pools and storage_pools|length > 1 %}
|
{% if storage_pools %}
|
||||||
<select name="target_storage" class="pve-select">
|
<select name="target_storage" class="pve-select">
|
||||||
{% for pool in storage_pools %}
|
{% for pool in storage_pools %}
|
||||||
<option value="{{ pool.name }}">{{ pool.name }} ({{ pool.type }})</option>
|
<option value="{{ pool.name }}">{{ pool.name }} ({{ pool.type }})</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
{% else %}
|
{% else %}
|
||||||
<input type="text" name="target_storage" class="pve-input"
|
<input type="text" name="target_storage" class="pve-input" value="local-lvm">
|
||||||
value="{{ storage_pools[0].name if storage_pools else 'local-lvm' }}">
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="pve-form-group">
|
<div class="pve-form-group">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue