{# Define custom layout for creating and modifying a ticket; add supporting css and javascript. #} {% extends theme("layout.html") %} {% import "ticket/ticket_macros.html" as ticket_macros with context %} {% block head %} {{ super() }} {% endblock %} {% set exists = item.fqname and storage.get_item(**item.fqname.query) %} {% block local_panel %} {% if user.valid and exists %}
{{ _("User Actions") }}
{% endif %} {% endblock %} {% block header_itemviews %} {{ ticket_macros.itemviews(exists) }} {% endblock %} {% block content %}

{% if closed %} {{ _("Closed:") }} {% endif %} {% block title_text %} {% endblock %}

{{ gen.form.open(form, method='post', enctype='multipart/form-data') }} {% block ticket_content %} {% endblock %} {{ gen.form.close() }}
{% endblock %} {% block footer_itemviews %} {{ ticket_macros.itemviews(exists) }} {% endblock %} {% block body_scripts %} {{ super() }} {% endblock %}