mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
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.
18 lines
755 B
HTML
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 %}
|