summaryrefslogtreecommitdiff
path: root/archaeological_operations/templates
diff options
context:
space:
mode:
authorCefin <kevon@tuta.io>2022-02-01 16:36:40 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:21:00 +0100
commitc8c8b4f798315559dbc56d478daff57d002a3bd9 (patch)
tree0b29b802cfedec8d9fd900567e10eb2e1be51c55 /archaeological_operations/templates
parent280eabb5e82195bb79ef08ae71a7bb1a2efaf06e (diff)
downloadIshtar-c8c8b4f798315559dbc56d478daff57d002a3bd9.tar.bz2
Ishtar-c8c8b4f798315559dbc56d478daff57d002a3bd9.zip
Operation - Parcels - Modify: change condition on ca relation and commit before using additionnal formset #5227
Diffstat (limited to 'archaeological_operations/templates')
-rw-r--r--archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html b/archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html
index 3a9f2785c..434ba9490 100644
--- a/archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html
+++ b/archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html
@@ -10,6 +10,7 @@
</div>
<form enctype="multipart/form-data" action="{{url}}" method="post" id="qa-new-{{ formset.form_slug }}">
{{ formset.management_form }}
+ {{ formset_add.management_form }}
{% csrf_token %}
<div class="modal-body body-scroll">
<div class='form'>
@@ -31,7 +32,17 @@
</td>
</tr>
</table>
-
+ {% comment %} <h3>Add a new parcel</h3> {% endcomment %}
+ {% comment %} {% if formset_add.non_form_errors %} {% endcomment %}
+ {% comment %} <div class="alert alert-danger" role="alert"> {% endcomment %}
+ {% comment %} {{ formset_add.non_form_errors }} {% endcomment %}
+ {% comment %} </div> {% endcomment %}
+ {% comment %} {% endif %} {% endcomment %}
+ {% comment %} <table> {% endcomment %}
+ {% comment %} {% for form in formset_add %} {% endcomment %}
+ {% comment %} {{form}} {% endcomment %}
+ {% comment %} {% endfor %} {% endcomment %}
+ {% comment %} </table> {% endcomment %}
{% endblock %}
</div>
</div>