mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
fix(ui): forms ask one thing at a time, offer the host's pools and say less twice
- A backup schedule asks Which VMs first (a compute's, chosen VMs or a tag's) and shows that one field only (policy_scope.js); the other two are not read, so a choice left in them is neither saved nor an error. - A backup target's, a restore's and a disk restore's storage pool field offers the chosen compute's active file pools, the ones a restore copies into (a target's: directory and NFS only), from vmbackups.views.pools, which reads them without a refresh (pool_choices.js); a name can still be typed and is checked as before. - A field's label is no longer repeated inside it as a placeholder, and a list's empty choice says Choose… instead of Django's dashes (webvirtcloud.bootstrap.FieldRenderer). - The schedule, target, e-mail OTP and VM delete forms put Cancel and their main button at the right, as the other forms do.
This commit is contained in:
parent
7359fbb147
commit
4881c3cd3e
23 changed files with 228 additions and 69 deletions
|
|
@ -21,9 +21,9 @@
|
|||
</form>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="mb-0 float-end">
|
||||
<a class="btn btn-primary" href="#" data-history-back>{% bs_icon 'arrow-left' %} {% trans "Cancel" %}</a>
|
||||
<button type="submit" form="create-update" class="btn btn-success">
|
||||
<div class="d-flex justify-content-end gap-2">
|
||||
<a class="btn btn-outline-secondary" href="#" data-history-back>{% trans "Cancel" %}</a>
|
||||
<button type="submit" form="create-update" class="btn btn-primary">
|
||||
{% bs_icon 'envelope-open' %} {% trans "Send" %}
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue