1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00
webvirtcloud/vmbackups/templates/vmbackups/policy_new.html
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

18 lines
755 B
HTML

{% extends "base.html" %}
{% load i18n %}
{% load static %}
{% block title %}{% trans "New schedule" %} - {% trans "Backup schedules" %}{% endblock %}
{% block style %}<link href="{% static 'css/tom-select.bootstrap5.min.css' %}" rel="stylesheet">{% endblock %}
{% block page_heading %}<a href="{% url 'vmbackups:policies' %}">{% trans "Schedules" %}</a> / {% trans "New schedule" %}{% endblock page_heading %}
{% block content %}
<div class="card" style="max-width: 48rem;">
<div class="card-body">{% include "vmbackups/policy_form.html" %}</div>
</div>
{% endblock %}
{% block script %}
<script src="{% static 'js/tom-select.complete.min.js' %}"></script>
<script src="{% static 'js/searchable_select.js' %}"></script>
{% endblock %}