blob: 78162d7590b9944e5221a44b2ce710e98b64833d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 %}
|