{% extends 'base.html' %} {% load buttons %} {% load helpers %} {% load perms %} {% load plugins %} {% load static %} {% load ui_framework %} {% load form_helpers %} {% load i18n %} {% comment %} Blocks: - title: Page title - controls: Control elements displayed between the header and content - tabs: Page tabs - content: Primary page content - form: Content within the
element - buttons: Form submission buttons - modals: Any pre-loaded modals Context: - object: Python instance of the object being edited - form: The edit form - return_url: The URL to which the user is redirected after submitting the form {% endcomment %} {% block breadcrumbs_wrapper %} {% endblock breadcrumbs_wrapper %} {% block controls %}
{# Link to model documentation #} {% if settings.DOCS_ROOT and object.docs_url %} {% trans "Help" %} {% endif %}
{% endblock controls %} {% block tabs %} {% endblock tabs %} {% block title %} {% if object.pk %} {% trans "Execute Job" %}: {{ object.name }} {% else %} {% trans "Execute Job" %} {% endif %} {% endblock %} {% block content %}
{# Warn about missing prerequisite objects #} {% if prerequisite_model %} {% include 'inc/missing_prerequisites.html' %} {% endif %} {% csrf_token %}
{% block form_errors %} {% if form.non_field_errors or model_form.non_field_errors %}
Errors
{{ form.non_field_errors }} {{ model_form.non_field_errors }}
{% endif %} {% endblock %} {% block form %}
{% block form_fields %} {% render_form form %} {% endblock %}
{% endblock %} {% if form.confirm.value %}
{{ final_commands }}
{% endif %}
{% block buttons %} {% trans "Cancel" %} {% if object.pk %} {% endif %} {% endblock buttons %}
{% endblock content %} {% block extra_javascript %} {% endblock extra_javascript %} {% block modals %} {% include 'inc/htmx_modal.html' with size='lg' %} {% endblock %}