summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html25
1 files changed, 9 insertions, 16 deletions
diff --git a/archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html b/archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html
index 6128150be..117141e59 100644
--- a/archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html
+++ b/archaeological_operations/templates/ishtar/forms/operation_modify_parcels.html
@@ -14,23 +14,16 @@
<div class="modal-body body-scroll">
<div class='form'>
{% block main_form %}
- {% if formset.non_form_errors %}
- <div class="alert alert-danger" role="alert">
- {{ formset.non_form_errors }}
- </div>
- {% endif %}
- <table>
- {% for form in formset %}
- {{form}}
- {% endfor %}
+ <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>
- <tr>
- <td>
- ({% trans "all"%}
- <input type='checkbox' name='check-all' class='check-all'/>)
- </td>
- </tr>
- </table>
{% endblock %}
</div>
</div>