mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 17:06:09 +00:00
- 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.
22 lines
1,001 B
Python
22 lines
1,001 B
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = "vmbackups"
|
|
|
|
urlpatterns = [
|
|
path("", views.index, name="index"),
|
|
path("<uuid:uuid>/delete/", views.delete, name="delete"),
|
|
path("<uuid:uuid>/verify/", views.verify, name="verify"),
|
|
path("<uuid:uuid>/restore/", views.restore, name="restore"),
|
|
path("<uuid:uuid>/restore-over/", views.restore_over, name="restore_over"),
|
|
path("<uuid:uuid>/restore-disk/", views.restore_disk, name="restore_disk"),
|
|
path("schedules/", views.policies, name="policies"),
|
|
path("schedules/new/", views.policy_new, name="policy_new"),
|
|
path("schedules/<int:policy_id>/", views.policy, name="policy"),
|
|
path("targets/", views.targets, name="targets"),
|
|
path("targets/new/", views.target_new, name="target_new"),
|
|
path("computes/<int:compute_id>/pools/", views.pools, name="pools"),
|
|
path("targets/<int:target_id>/", views.target, name="target"),
|
|
path("vm/<int:instance_id>/create/", views.create, name="create"),
|
|
]
|