diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-13 12:28:23 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-13 12:28:23 +0200 |
| commit | 801e31fc093bc554ae62ff50a5540659634098b4 (patch) | |
| tree | bd15fd64ca8040b4a1c5933bd332d9f593a8e1f5 /ishtar_common/templates | |
| parent | 247987acf353400c0b90bf78cbc29473ce7ad43c (diff) | |
| download | Ishtar-801e31fc093bc554ae62ff50a5540659634098b4.tar.bz2 Ishtar-801e31fc093bc554ae62ff50a5540659634098b4.zip | |
Fix organization form - fix quick add with delayed cached_label
Diffstat (limited to 'ishtar_common/templates')
| -rw-r--r-- | ishtar_common/templates/ishtar/forms/qa_new_item.html | 8 |
1 files changed, 4 insertions, 4 deletions
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 %} -<p>{{new_item_label}} {% trans "created." %}</p> +{% if new_item_pk %} +<p>{% if new_item_label %}{{new_item_label}}{% else %}{% trans "Item" %}{% endif %} {% trans "created." %}</p> {% else %} {% bs_compact_form form %} {% endif %} {% endblock %} {% block footer %} -{% if new_item_label %} +{% if new_item_pk %} <button type="button" data-dismiss="modal" aria-label="Close" class="btn btn-secondary"> {% trans "Close" %} @@ -21,7 +21,7 @@ {% endblock %} {% block js_ready %} -{% if new_item_label %} +{% if new_item_pk %} save_and_close_window{% if many %}_many{% endif %}_data(null, "{{parent_name}}", "{{parent_pk}}", "{{new_item_label|safe}}", "{{new_item_pk}}"); {% endif %} {% endblock %}
\ No newline at end of file |
