#49 Parcels on report
* adds parcel displaying on public reports * fixes bug in EMA where autocomplete js would not load for modal forms * fixes bug where BaseContext cached data from last request and reused it, if not overwritten
This commit is contained in:
@@ -100,6 +100,9 @@
|
||||
<div class="row">
|
||||
{% include 'map/geom_form.html' %}
|
||||
</div>
|
||||
<div class="row">
|
||||
{% include 'konova/includes/parcels.html' %}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6 col-md-6 col-lg-6">
|
||||
<h4>{% trans 'Open in browser' %}</h4>
|
||||
|
||||
@@ -547,6 +547,7 @@ def report_view(request:HttpRequest, id: str):
|
||||
geom_form = SimpleGeomForm(
|
||||
instance=intervention
|
||||
)
|
||||
parcels = intervention.get_underlying_parcels()
|
||||
|
||||
distinct_deductions = intervention.deductions.all().distinct(
|
||||
"account"
|
||||
@@ -565,6 +566,7 @@ def report_view(request:HttpRequest, id: str):
|
||||
"qrcode": qrcode_img,
|
||||
"qrcode_lanis": qrcode_img_lanis,
|
||||
"geom_form": geom_form,
|
||||
"parcels": parcels,
|
||||
}
|
||||
context = BaseContext(request, context).context
|
||||
return render(request, template, context)
|
||||
|
||||
Reference in New Issue
Block a user