diff options
| author | Cefin <kevon@tuta.io> | 2022-02-11 13:22:04 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:21:00 +0100 |
| commit | aa1a1960bb0ae2d83545aa8462c9467f54e7e48a (patch) | |
| tree | 307cd55f5f62696ba3b0e333ad8e22d39b948df2 /ishtar_common/templates | |
| parent | 3f109fef94090b8c0bd9ec5e4a04a02d9752bd1b (diff) | |
| download | Ishtar-aa1a1960bb0ae2d83545aa8462c9467f54e7e48a.tar.bz2 Ishtar-aa1a1960bb0ae2d83545aa8462c9467f54e7e48a.zip | |
File - Parcels - Modify: add get method for modifying parcels #5227
Diffstat (limited to 'ishtar_common/templates')
| -rw-r--r-- | ishtar_common/templates/ishtar/forms/modify_parcels.html | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/forms/modify_parcels.html b/ishtar_common/templates/ishtar/forms/modify_parcels.html new file mode 100644 index 000000000..b9882c12c --- /dev/null +++ b/ishtar_common/templates/ishtar/forms/modify_parcels.html @@ -0,0 +1,58 @@ +{% load i18n inline_formset table_form %} + +<div class="modal-dialog modal-lg"> + <div class="modal-content"> + <div class="modal-header"> + <h2>{{ formset.form_label }}</h2> + <button type="button" class="close" data-dismiss="modal" aria-label="Close"> + <span aria-hidden="true">×</span> + </button> + </div> + <form enctype="multipart/form-data" action="{{url}}" method="post" id="qa-action"> + {{ formset.management_form }} + {% bs_form formset.selection_form %} + {% csrf_token %} + <div class="modal-body body-scroll"> + <div class='form'> + {% block main_form %} + <table class='inline-table'> + <tr> + {% for field in formset.forms.0 %} + {% if field.name != 'pk' %}{% if field.required %}<th{%else%}<td{% endif %}{% if not forloop.last %} rowspan='2'{% endif %}> + {{ field.label_tag }}{% if field.required %}</th>{%else%}</td>{% endif %}{% endif %}{% endfor %} + </tr> + <tr><td>({% trans "all"%} <input type='checkbox' name='check-all' class='check-all'/>)</td></tr> + {% inline_formset 'Parcels' formset.forms False %} + </table> + + {% endblock %} + </div> + </div> + <div class="modal-footer"> + {% block footer %} + <button type="submit" id="submit_form" name='validate' + value="validate" class="btn btn-success"> + {% if action_name %} + {{ action_name }} + {% else %} + {% trans "Add/Modify" %} + {% endif %} + </button> + <button type="button" data-dismiss="modal" + aria-label="Close" class="btn btn-secondary"> + {% trans "Cancel" %} + </button> + {% endblock %} + </div> + </form> + </div> +</div> +<script type="text/javascript"> + {% block js %} + {% endblock %} + $(document).ready(function(){ + qa_action_register("{{url}}"); + {% block js_ready %} + {% endblock %} + }); +</script> |
