From a9e2b04477c968db7d4e255a2755523fd9bf9527 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 10 Apr 2019 14:12:18 +0200 Subject: Popup: BS style - Container: improve creation form - prevent container creation when the same reference exists - autocopy reference to location --- ishtar_common/templates/window.html | 51 ++++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 20 deletions(-) (limited to 'ishtar_common/templates/window.html') diff --git a/ishtar_common/templates/window.html b/ishtar_common/templates/window.html index dcb4d4084..dc94b4aae 100644 --- a/ishtar_common/templates/window.html +++ b/ishtar_common/templates/window.html @@ -12,36 +12,47 @@ + {{form.media}} - + - + {% block extra_head %} {% endblock %} - -{% if new_item_label %} + + {% endif %} -
-

{{title}}

-
{% csrf_token %} - - {% for field in form %} - - - - {% endfor %} - -
{{ field.label_tag }}{{ field.errors }}{{field|safe}}
-
-
+$("#cancel-btn").click(function(){ + close(); +}); + - - -- cgit v1.2.3