From 2e608dde86b1de6fa5b66ebbbcd8c1b719981b45 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 13 Sep 2019 12:28:23 +0200 Subject: Fix organization form - fix quick add with delayed cached_label --- ishtar_common/templates/ishtar/forms/qa_new_item.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ishtar_common/templates/ishtar') diff --git a/ishtar_common/templates/ishtar/forms/qa_new_item.html b/ishtar_common/templates/ishtar/forms/qa_new_item.html index 78162d759..ae57adfc2 100644 --- a/ishtar_common/templates/ishtar/forms/qa_new_item.html +++ b/ishtar_common/templates/ishtar/forms/qa_new_item.html @@ -2,15 +2,15 @@ {% load i18n inline_formset table_form %} {% block main_form %} -{% if new_item_label %} -

{{new_item_label}} {% trans "created." %}

+{% if new_item_pk %} +

{% if new_item_label %}{{new_item_label}}{% else %}{% trans "Item" %}{% endif %} {% trans "created." %}

{% else %} {% bs_compact_form form %} {% endif %} {% endblock %} {% block footer %} -{% if new_item_label %} +{% if new_item_pk %}