{% extends "pretixcontrol/event/base.html" %} {% comment %} Owner from wave 1 on: persistence-dev (see ORCHESTRIERUNG.md section 5). Deliberately plain: the graphical editor is built by frontend-dev. Permission checks in the template use ``can_change`` from the view rather than ``request.eventpermset`` directly, so the same template works outside the control middleware. Creating and changing a report goes to the graphical editor (``editor.new`` / ``editor.edit``, frontend-dev) rather than to this module's own ``event.reports.add`` / ``event.reports.edit`` form. The editor is a superset of that form -- it carries name, description, a hidden identifier and its own "Definition as JSON" panel -- and it posts to exactly those two CRUD URLs (``save_url()`` in views/editor.py). So the plain form stays reachable as a hand-repair fallback for a report whose JSON is too broken for the editor, it is just not linked from here any more. Note the different route argument: ``editor.edit`` takes the stable ``identifier``, the CRUD routes take the numeric ``report`` primary key. {% endcomment %} {% load i18n %} {% block title %}{% trans "Reports" %}{% endblock %} {% block content %}
{% trans "Create a new report" %} {% comment %} Added by the integrator in wave 4, proposed verbatim in handoff/requests/portability-dev-an-integrator-urls.md section 6: import and templates are finished features that were reachable by URL only. {% endcomment %} {% trans "Import a report" %} {% trans "Load a template" %}
{% endif %}| {% trans "Name" %} | {% trans "Internal identifier" %} | {% trans "Report base" %} | {% trans "Created from template" %} | |
|---|---|---|---|---|
|
{% if can_change %}
{{ report.name }}
{% else %}
{{ report.name }}
{% endif %}
{% if report.description %}
{{ report.description }} {% endif %} |
{{ report.identifier }} |
{{ report.get_base_display }} | {% if report.source_template %} {{ report.source_template.name }} {% else %} – {% endif %} | {% comment %} Export needs read permission only, so it sits outside the can_change block on purpose. {% endcomment %} {% if can_change %} {% endif %} |
{% blocktrans trimmed %} You have not created any reports yet. {% endblocktrans %}
{% if can_change %} {% trans "Create a new report" %} {% trans "Import a report" %} {% trans "Load a template" %} {% endif %}