{% extends "pretixcontrol/organizers/base.html" %} {% comment %} Owner from wave 2 on: portability-dev (see ORCHESTRIERUNG.md section 5). Organizer-level template management (SPEC.md F10). Extends the organizer base template, which fills ``{% block inner %}`` -- not ``content`` like the event-level pages. Creating and changing a template goes to the graphical editor (``organizer.templates.editor.new`` / ``.edit``, frontend-dev) rather than to this module's own ``organizer.templates.add`` / ``.edit`` form, the same move ``report_list.html`` made for event reports: the editor is what SPEC.md F2 calls the core feature, the JSON textarea was never meant to be the front door. The editor asks for a reference event first, because a template has no event of its own and therefore no field library to build against; it then posts to exactly those two CRUD URLs, whose ``ReportDefinitionForm`` (name, description, identifier, base, definition) is what it fills in. So the plain form stays reachable as a hand-repair fallback for a template whose JSON is too broken for the editor -- it is just not linked from here any more. Both route pairs take the numeric ``template`` primary key. A template has no event to scope an identifier to, so unlike the event-level ``editor.edit`` there is nothing stabler to address it by. No permission gate in here: the whole view requires the organizer-level change permission (``views/templates.py``), so anyone who can see this page can also write. Multi-line commentary uses the ``comment`` block tag, never the short hash-brace form: that one cannot span lines and would render as visible text. Guarded by ``tests/test_org_templates.py``, both from the rendered page and statically over every template of this module. {% endcomment %} {% load i18n %} {% block title %}{% trans "Report templates" %}{% endblock %} {% block inner %}

{% trans "Report templates" %}

{% blocktrans trimmed %} Templates are report definitions kept at organizer level. Loading one in an event creates an editable copy; the template itself is not changed by that copy and does not change it later. {% endblocktrans %}

{% trans "Create a new template" %}

{% if templates %}
{% for template in templates %} {% endfor %}
{% trans "Name" %} {% trans "Internal identifier" %} {% trans "Report base" %} {% trans "Used in events" %}
{{ template.name }} {% if template.description %}
{{ template.description }} {% endif %}
{{ template.identifier }} {{ template.get_base_display }} {{ template.instances.count }}
{% include "pretixcontrol/pagination.html" %} {% else %}

{% trans "There are no report templates yet." %}

{% endif %} {% endblock %}