summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/wizard/parcels_wizard.html
blob: 93addd7a2e629cb053ce1e04131fe60f7163df19 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{% extends "ishtar/wizard/default_wizard.html" %}
{% load i18n range inline_formset table_form %}
{% block extra_head %}
{{wizard.form.media}}
{% endblock %}
{% block wizard_form %}
<form action="." method="post">{% csrf_token %}
<div class='form container'>
{{ wizard.form.media }}
{{ wizard.management_form }}
  {{ wizard.form.management_form }}
  {% if automatic_parcel_association %}
  <div class="alert alert-danger" role="alert">
    {%trans "Existing parcels from the operation will be automatically added to the archaeological file." %}
  </div>
  {% endif %}
  {% if wizard.form.non_form_errors %}
  <div class="alert alert-danger" role="alert">
    {{wizard.form.non_form_errors}}
  </div>{%endif%}

  {% bs_form wizard.form.selection_form %}

<table class='inline-table' id='parcel-table'>
  <tr>{% for field in wizard.form.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' wizard.form.forms False %}
</table>
{% if add_all %}<p><input type='checkbox' name='add_all_parcels' id='add_all_parcels'> <label for='add_all_parcels'>{% trans "Add all parcels from the archaeological file" %}</label></p>{% endif %}

  <div class="mt-3 text-center">
      <button class="btn btn-success" name="formset_modify" value="{{wizard.steps.current}}">
        {% trans "Add/Modify" %}
      </button>
  </div>
<input type="hidden" name="{{ step_field }}" value="{{ step0 }}" />
{{ previous_fields|safe }}
  {% block "footer" %}
  <div id="footer">
    {% block "validation_bar" %}
    {% include 'ishtar/wizard/validation_bar.html' %}
    {% endblock %}
    {% include 'ishtar/blocks/footer.html' %}
  </div>
  {% endblock %}
</div>
</form>
{% endblock %}