From 16146deb2e76bb77f9566e0c3d5f21fd98d0f65c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 9 May 2025 10:41:44 +0200 Subject: ✨ GIS API: manage GIS connections (list, request token, create token, delete) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/templates/ishtar/gis_token_list.html | 90 ++++++++++++++++++++++ ishtar_common/templates/navbar.html | 3 + 2 files changed, 93 insertions(+) create mode 100644 ishtar_common/templates/ishtar/gis_token_list.html (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/gis_token_list.html b/ishtar_common/templates/ishtar/gis_token_list.html new file mode 100644 index 000000000..ca4389076 --- /dev/null +++ b/ishtar_common/templates/ishtar/gis_token_list.html @@ -0,0 +1,90 @@ +{% extends "base.html" %} +{% load i18n l10n %} + +{% block content %} +{% localize off %} +{% if user_request %} + +{% endif %} +

{{page_name}}

+
+
+ {% if user_request %} + + {% else %} +
+ {% csrf_token %} +
+ {% with field=request_form.access_type %} + {% include "blocks/bs_field_snippet.html" %} + {% endwith %} + {% with field=request_form.comment %} + {% include "blocks/bs_field_snippet.html" %} + {% endwith %} + {% with field=request_form.limit_date %} + {% include "blocks/bs_field_snippet.html" %} + {% endwith %} +
+ +
+
+
+ {% endif %} +
+ {% if object_list %} +
+
+ + + + + + + + {% for access in object_list %} + + + + + + + {% endfor %} +
{% trans "Access type (limit date)" %}{% trans "Comment" %}{% trans "Last access (IP)" %}{% trans "Delete" %}
{{access.access_type_label}}{% if access.limit_date %} ({{access.limit_date|date:"DATE_FORMAT"|default:"-"}}){% endif %}{{access.comment|default:"-"}}{{access.last_access|date:"DATE_FORMAT"}} ({{access.last_ip|default:"-"}}) + + +
+
+ {% endif %} +{% endlocalize %} +{% endblock %} + diff --git a/ishtar_common/templates/navbar.html b/ishtar_common/templates/navbar.html index 3e7190645..79023100a 100644 --- a/ishtar_common/templates/navbar.html +++ b/ishtar_common/templates/navbar.html @@ -33,6 +33,9 @@ {% trans "Change password" %} + {% if SITE_PROFILE.gis_connector %} + {% trans "GIS connections" %} + {% endif %} {% trans "Changelog" %} -- cgit v1.2.3