summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/forms/qa_new_item.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-12 21:19:19 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-12 21:19:58 +0200
commit7eaddb898570caaf19e94e3b2c889572eaf7a59c (patch)
tree9501168bcf42a290b63a6008faa75651e9fd61eb /ishtar_common/templates/ishtar/forms/qa_new_item.html
parent70f0fa29fac15c03f1c7af0f185b70be480b2d45 (diff)
downloadIshtar-7eaddb898570caaf19e94e3b2c889572eaf7a59c.tar.bz2
Ishtar-7eaddb898570caaf19e94e3b2c889572eaf7a59c.zip
New management of popup for new items - manage author and persons
Diffstat (limited to 'ishtar_common/templates/ishtar/forms/qa_new_item.html')
-rw-r--r--ishtar_common/templates/ishtar/forms/qa_new_item.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/forms/qa_new_item.html b/ishtar_common/templates/ishtar/forms/qa_new_item.html
new file mode 100644
index 000000000..78162d759
--- /dev/null
+++ b/ishtar_common/templates/ishtar/forms/qa_new_item.html
@@ -0,0 +1,27 @@
+{% extends "ishtar/forms/qa_base.html" %}
+{% load i18n inline_formset table_form %}
+
+{% block main_form %}
+{% if new_item_label %}
+<p>{{new_item_label}} {% trans "created." %}</p>
+{% else %}
+ {% bs_compact_form form %}
+{% endif %}
+{% endblock %}
+
+{% block footer %}
+{% if new_item_label %}
+<button type="button" data-dismiss="modal"
+ aria-label="Close" class="btn btn-secondary">
+ {% trans "Close" %}
+</button>
+{% else %}
+ {{ block.super }}
+{% endif %}
+{% endblock %}
+
+{% block js_ready %}
+{% if new_item_label %}
+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