From 73dd4d9d3f9cfc52ac437c35efe848f86e7db001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Odini?= Date: Thu, 30 May 2024 14:00:41 +0200 Subject: [PATCH] =?UTF-8?q?fix(Structures):=20D=C3=A9tail=20:=20am=C3=A9li?= =?UTF-8?q?orer=20les=20informations=20affich=C3=A9es=20aux=20admin=20(#12?= =?UTF-8?q?38)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/includes/_tracker_itou.html | 2 +- .../siaes/_detail_admin_extra_info.html | 36 +++++++++---------- lemarche/templates/siaes/detail.html | 2 +- .../templates/tenders/_detail_sidebar.html | 2 +- lemarche/www/siaes/views.py | 2 -- lemarche/www/tenders/views.py | 1 - 6 files changed, 19 insertions(+), 26 deletions(-) diff --git a/lemarche/templates/includes/_tracker_itou.html b/lemarche/templates/includes/_tracker_itou.html index ac7b5fd6d..df63123b8 100644 --- a/lemarche/templates/includes/_tracker_itou.html +++ b/lemarche/templates/includes/_tracker_itou.html @@ -19,7 +19,7 @@ // Optionnaly add meta data (in key/value pairs) from url query string const meta = Object.assign(metaIn, getUrlMeta()); // user info - meta['is_admin'] = {% if user.is_authenticated %}{% if user.kind == 'ADMIN' %}true{% else %}false{% endif %}{% else %}false{% endif %}; + meta['is_admin'] = {% if user.is_authenticated %}{% if user.is_admin %}true{% else %}false{% endif %}{% else %}false{% endif %}; meta['user_kind'] = {% if user.is_authenticated %}'{{ user.kind }}'{% else %}null{% endif %}; meta['user_id'] = {% if user.is_authenticated %}{{ user.id }}{% else %}null{% endif %}; meta['siae_id'] = {% if siae %}{{ siae.id }}{% else %}null{% endif %}; diff --git a/lemarche/templates/siaes/_detail_admin_extra_info.html b/lemarche/templates/siaes/_detail_admin_extra_info.html index a72b224ba..5353336d9 100644 --- a/lemarche/templates/siaes/_detail_admin_extra_info.html +++ b/lemarche/templates/siaes/_detail_admin_extra_info.html @@ -3,26 +3,22 @@

Informations Admin