1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/vmbackups/urls.py
catborise adcf881028 fix(vmbackups): schedules and targets are added on a page of their own
The schedule and target lists kept their add forms open below the table,
a long form always in the way. Each list now has a 'New schedule' or 'New
target' button at its top right that opens the form on its own page,
with Cancel; saving goes back to the schedule list, or to the new target,
with a message.
2026-11-17 22:27:45 +03:00

20 lines
866 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>/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("targets/<int:target_id>/", views.target, name="target"),
path("vm/<int:instance_id>/create/", views.create, name="create"),
]