From 2a6629e075d1774cf8d8b280de66892996c59ac5 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 9 Jan 2017 20:19:47 +0100 Subject: [PATCH] Fix empty log in category form --- .../pretixcontrol/items/category.html | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/items/category.html b/src/pretix/control/templates/pretixcontrol/items/category.html index 5967ee80cc..a200b8029b 100644 --- a/src/pretix/control/templates/pretixcontrol/items/category.html +++ b/src/pretix/control/templates/pretixcontrol/items/category.html @@ -8,23 +8,25 @@ {% csrf_token %} {% bootstrap_form_errors form %}
-
+
{% trans "General information" %} {% bootstrap_field form.name layout="horizontal" %} {% bootstrap_field form.description layout="horizontal" %}
-
-
-
-

- {% trans "Category history" %} -

+ {% if category %} +
+
+
+

+ {% trans "Category history" %} +

+
+ {% include "pretixcontrol/includes/logs.html" with obj=category %}
- {% include "pretixcontrol/includes/logs.html" with obj=category %}
-
+ {% endif %}