#185 Parcel loading on public reports

* fixes bug where unauthorized clients would not load a geometries parcel view properly
* minor general templates enhancements
pull/186/head
mpeltriaux 2 years ago
parent a955e9f564
commit ac49f983ee

@ -102,7 +102,6 @@ def home_view(request: HttpRequest):
return render(request, template, context)
@login_required
def get_geom_parcels(request: HttpRequest, id: str):
""" Getter for HTMX
@ -157,7 +156,6 @@ def get_geom_parcels(request: HttpRequest, id: str):
return HttpResponse(None, status=404)
@login_required
def get_geom_parcels_content(request: HttpRequest, id: str, page: int):
""" Getter for infinite scroll of HTMX

@ -31,7 +31,7 @@
</div>
{% endfor %}
</div>
<div class="container-fluid mt-3 px-4">
<div class="container-fluid mt-3 mb-5 px-4">
{% comment %}
The modal wrapper, which can be used on every view can stay on the base.html template
{% endcomment %}

@ -14,8 +14,8 @@
{% block body %}
<div class="container">
<h4>{% trans 'Teams' %}</h4>
<div class="col-md">
<h4>{% trans 'Teams' %}</h4>
<button class="btn rlp-r btn-modal" data-form-url="{% url 'user:team-new' %}" title="{% trans 'Add new team' %}">
{% fa5_icon 'plus' %}
{% trans 'New' %}

Loading…
Cancel
Save