* extends KonovaCode filtering for parent objects matching given input
* renames data_form into form for easier template render support
* simplifies empty geometry form initialization
This commit is contained in:
mipel
2021-09-29 14:49:17 +02:00
parent f3f5cc2b50
commit 1965721dea
7 changed files with 26 additions and 26 deletions

View File

@@ -32,9 +32,7 @@
</div>
<div id="dataCard" class="collapse" aria-labelledby="dataCardHeader">
<div class="card-body">
{% with data_form as form %}
{% include 'form/generic_table_form_body.html' %}
{% endwith %}
{% include 'form/generic_table_form_body.html' %}
</div>
</div>
</div>
@@ -54,7 +52,6 @@
</div>
</div>
</div>
<div class="row">
<div class="col-6">
<a href="{{ form.cancel_redirect }}">

View File

@@ -4,8 +4,7 @@
Encapsules the rendering and initializing of a geometry view component, e.g. used in the detail views.
{% endcomment %}
{% if geom_form.area == 0 %}
{% if geom_form.empty %}
<div class="alert alert-info">{% trans 'No geometry added, yet.' %}</div>
{% endif %}
{{geom_form.media}}