From ac49f983ee799070e3f00603eb74fd9e776f275d Mon Sep 17 00:00:00 2001 From: mpeltriaux <michel.peltriaux@sgdnord.rlp.de> Date: Tue, 2 Aug 2022 09:38:03 +0200 Subject: [PATCH] #185 Parcel loading on public reports * fixes bug where unauthorized clients would not load a geometries parcel view properly * minor general templates enhancements --- konova/views.py | 2 -- templates/base.html | 2 +- user/templates/user/team/index.html | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/konova/views.py b/konova/views.py index 4fadf6a0..48572a85 100644 --- a/konova/views.py +++ b/konova/views.py @@ -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 diff --git a/templates/base.html b/templates/base.html index 30be48ed..ec79ca62 100644 --- a/templates/base.html +++ b/templates/base.html @@ -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 %} diff --git a/user/templates/user/team/index.html b/user/templates/user/team/index.html index 63560516..68b135f7 100644 --- a/user/templates/user/team/index.html +++ b/user/templates/user/team/index.html @@ -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' %} -- 2.45.2