1
0
Fork 0
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:
catborise 2026-11-22 00:09:10 +03:00
parent 7359fbb147
commit 4881c3cd3e
23 changed files with 228 additions and 69 deletions

Binary file not shown.

View file

@ -10522,14 +10522,6 @@ msgstr "Yedek hedefi"
msgid "Every VM of a compute"
msgstr "Bir sunucunun bütün sanal makineleri"
#: vmbackups/forms.py:83
msgid "Or these VMs"
msgstr "Ya da bu sanal makineler"
#: vmbackups/forms.py:83
msgid "Or every VM with a tag"
msgstr "Ya da bir etiketin bütün sanal makineleri"
#: vmbackups/forms.py:83 vmbackups/templates/vmbackups/policies.html:17
msgid "Daily at"
msgstr "Her gün saat"
@ -10577,10 +10569,6 @@ msgstr ""
"1: her yedek tamdır. 1'den büyükse aradaki yedekler yalnızca değişenleri "
"kopyalar (qcow2 diskli, çalışan VM'ler)."
#: vmbackups/forms.py:109
msgid "Choose a compute, VMs or a tag: one of them"
msgstr "Bir sunucu, sanal makineler ya da bir etiket seçin: yalnız birini"
#: vmbackups/forms.py:119 vmbackups/jobs.py:115
#, python-format
msgid "Backup target %(target)s has no storage pool on %(compute)s"
@ -13162,3 +13150,19 @@ msgstr "Oturumunuz kapandı: bu sayfa artık güncellenmiyor."
#: templates/base.html
msgid "Sign in again"
msgstr "Yeniden giriş yapın"
#: vmbackups/forms.py
msgid "These VMs"
msgstr "Bu sanal makineler"
#: vmbackups/forms.py
msgid "Every VM with a tag"
msgstr "Bir etiketin bütün sanal makineleri"
#: vmbackups/forms.py
msgid "Which VMs"
msgstr "Hangi sanal makineler"
#: vmbackups/forms.py
msgid "Choose the VMs to back up"
msgstr "Yedeklenecek sanal makineleri seçin"

Binary file not shown.

View file

@ -9904,14 +9904,6 @@ msgstr "备份目标"
msgid "Every VM of a compute"
msgstr "某计算节点的所有虚拟机"
#: vmbackups/forms.py:83
msgid "Or these VMs"
msgstr "或这些虚拟机"
#: vmbackups/forms.py:83
msgid "Or every VM with a tag"
msgstr "或带某个标签的所有虚拟机"
#: vmbackups/forms.py:83 vmbackups/templates/vmbackups/policies.html:17
msgid "Daily at"
msgstr "每天时间"
@ -9956,10 +9948,6 @@ msgid ""
"(running VMs with qcow2 disks)."
msgstr "1:每次备份都是完整备份。大于 1 时,中间的备份只复制变化的部分(适用于使用 qcow2 磁盘的运行中虚拟机)。"
#: vmbackups/forms.py:109
msgid "Choose a compute, VMs or a tag: one of them"
msgstr "选择一个计算节点、若干虚拟机或一个标签:只选其一"
#: vmbackups/forms.py:119 vmbackups/jobs.py:115
#, python-format
msgid "Backup target %(target)s has no storage pool on %(compute)s"
@ -12333,3 +12321,19 @@ msgstr "您已退出登录:此页面不再更新。"
#: templates/base.html
msgid "Sign in again"
msgstr "重新登录"
#: vmbackups/forms.py
msgid "These VMs"
msgstr "这些虚拟机"
#: vmbackups/forms.py
msgid "Every VM with a tag"
msgstr "带有某标签的所有虚拟机"
#: vmbackups/forms.py
msgid "Which VMs"
msgstr "哪些虚拟机"
#: vmbackups/forms.py
msgid "Choose the VMs to back up"
msgstr "请选择要备份的虚拟机"