<buttonclass="btn btn-outline-default btn-modal"data-form-url="{% url 'compensation:acc-new-state' obj.id %}" title="{% trans 'Add new state after' %}">
<buttonclass="btn btn-outline-default btn-modal"data-form-url="{% url 'compensation:acc:new-state' obj.id %}" title="{% trans 'Add new state after' %}">
{% fa5_icon 'plus' %}
{% fa5_icon 'layer-group' %}
</button>
@ -20,27 +20,26 @@
</div>
</div>
</div>
<divclass="card-body scroll-300">
{% if sum_before_states > sum_after_states %}
<divclass="row alert alert-danger">
{% trans 'Missing surfaces according to states before: ' %}{{ diff_states|floatformat:2 }} m²
</div>
{% endif %}
{% if sum_before_states > sum_after_states %}
<divclass="alert alert-danger mb-0">
{% trans 'Missing surfaces according to states before: ' %}{{ diff_states|floatformat:2 }} m²
</div>
{% endif %}
<divclass="card-body scroll-300 p-2">
<tableclass="table table-hover">
<thead>
<tr>
<thclass="w-25" scope="col">
<thclass="w-50" scope="col">
{% trans 'Biotope type' %}
</th>
<thclass="w-25"scope="col">
{% trans 'Biotope additional type' %}
</th>
<thscope="col">
{% trans 'Surface' %}
</th>
{% if is_default_member and has_access %}
<thscope="col">
{% trans 'Action' %}
<spanclass="float-right">
{% trans 'Action' %}
</span>
</th>
{% endif %}
</tr>
@ -48,20 +47,19 @@
<tbody>
{% for state in after_states %}
<tr>
<tdclass="align-middle">
{{ state.biotope_type }}
</td>
<tdclass="align-middle">
{% for biotope_extra in state.biotope_type_details.all %}
<divclass="mb-2"title="{{ biotope_extra }}">
{{ biotope_extra.long_name }}
</div>
{% endfor %}
<td>
<span>{{ state.biotope_type }}</span>
{% if state.biotope_type_details.count > 0 %}
<br>
{% for detail in state.biotope_type_details.all %}
<buttonclass="btn btn-outline-default btn-modal"data-form-url="{% url 'compensation:acc-new-state' obj.id %}?before=true" title="{% trans 'Add new state before' %}">
<buttonclass="btn btn-outline-default btn-modal"data-form-url="{% url 'compensation:acc:new-state' obj.id %}?before=true" title="{% trans 'Add new state before' %}">
{% fa5_icon 'plus' %}
{% fa5_icon 'layer-group' %}
</button>
@ -20,27 +20,26 @@
</div>
</div>
</div>
<divclass="card-body scroll-300">
{% if sum_before_states <sum_after_states%}
<divclass="row alert alert-danger">
{% trans 'Missing surfaces according to states after: ' %}{{ diff_states|floatformat:2 }} m²
</div>
{% endif %}
{% if sum_before_states <sum_after_states%}
<divclass="alert alert-danger mb-0">
{% trans 'Missing surfaces according to states after: ' %}{{ diff_states|floatformat:2 }} m²
</div>
{% endif %}
<divclass="card-body scroll-300 p-2">
<tableclass="table table-hover">
<thead>
<tr>
<thclass="w-25" scope="col">
<thclass="w-50" scope="col">
{% trans 'Biotope type' %}
</th>
<thclass="w-25"scope="col">
{% trans 'Biotope additional type' %}
</th>
<thscope="col">
{% trans 'Surface' %}
</th>
{% if is_default_member and has_access %}
<thscope="col">
{% trans 'Action' %}
<spanclass="float-right">
{% trans 'Action' %}
</span>
</th>
{% endif %}
</tr>
@ -48,20 +47,19 @@
<tbody>
{% for state in before_states %}
<tr>
<tdclass="align-middle">
{{ state.biotope_type }}
</td>
<tdclass="align-middle">
{% for biotope_extra in state.biotope_type_details.all %}
<divclass="mb-2"title="{{ biotope_extra }}">
{{ biotope_extra.long_name }}
</div>
{% endfor %}
<td>
<span>{{ state.biotope_type }}</span>
{% if state.biotope_type_details.count > 0 %}
<br>
{% for detail in state.biotope_type_details.all %}
@ -21,6 +21,26 @@ CHECKED_RECORDED_RESET = _("Status of Checked and Recorded reseted")
# ECO ACCOUNT
CANCEL_ACC_RECORDED_OR_DEDUCTED=_("Action canceled. Eco account is recorded or deductions exist. Only conservation office member can perform this action.")