refactor: standardize terminology to "public space", update email templates, and improve organization branding logic.
This commit is contained in:
parent
9c822719b5
commit
3c7547ba5d
18 changed files with 99 additions and 128 deletions
|
|
@ -104,8 +104,8 @@ class RoadAuthorization(models.Model):
|
|||
|
||||
class Meta:
|
||||
ordering = ['status', '-code']
|
||||
verbose_name = _('Autorisation de voirie')
|
||||
verbose_name_plural = _('Autorisations de voirie')
|
||||
verbose_name = _("Autorisation d'occupation de l'espace public")
|
||||
verbose_name_plural = _("Autorisations d'occupation de l'espace public")
|
||||
|
||||
# Maps AUTH_TYPE values to their 2-digit code prefix
|
||||
TYPE_PREFIX = {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h1 class="h4 mb-0">
|
||||
<i class="bi bi-file-earmark-text me-2"></i>{% translate "Demandes d'autorisation de voirie" %}
|
||||
<i class="bi bi-file-earmark-text me-2"></i>{% translate "Demandes d'autorisation d'occupation de l'espace public" %}
|
||||
</h1>
|
||||
<a href="{% url 'authorizations:new_authorization' %}" class="btn btn-sm btn-outline-primary" target="_blank" rel="noopener">
|
||||
<i class="bi bi-box-arrow-up-right"></i> {% translate "Formulaire public" %}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% translate "Demande enregistrée" %} – Brussels Mobility</title>
|
||||
<title>{% translate "Demande enregistrée" %}{% if organization_name %} – {{ organization_name }}{% endif %}</title>
|
||||
<link href="{% static 'common/bootstrap.min.css' %}" rel="stylesheet">
|
||||
<link href="{% static 'common/bootstrap-icons.min.css' %}" rel="stylesheet">
|
||||
<style>
|
||||
|
|
@ -22,10 +22,10 @@
|
|||
<body>
|
||||
<header class="page-header mb-5">
|
||||
<div class="container d-flex align-items-center gap-3">
|
||||
<img src="{% static 'common/android-192.png' %}" alt="Brussels Mobility">
|
||||
<img src="{% static organization_logo_header %}" alt="{{ organization_name }}">
|
||||
<div>
|
||||
<div class="fw-bold fs-5">Brussels Mobility</div>
|
||||
<div class="fs-6 opacity-75">{% translate "Demande d'occupation de voirie régionale" %}</div>
|
||||
<div class="fw-bold fs-5">{{ organization_name }}</div>
|
||||
<div class="fs-6 opacity-75">{% translate "Demande d'occupation de l'espace public" %}</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
|
@ -47,13 +47,13 @@
|
|||
<p class="text-center text-muted">
|
||||
{% if just_verified %}
|
||||
{% blocktranslate trimmed %}
|
||||
Votre adresse email a été confirmée et votre demande d'autorisation d'occupation de voirie régionale a bien été enregistrée.
|
||||
Votre adresse email a été confirmée et votre demande d'autorisation d'occupation de l'espace public a bien été enregistrée.
|
||||
Un accusé de réception vous a été envoyé par email.
|
||||
Nos services prendront contact avec vous dans les meilleurs délais.
|
||||
{% endblocktranslate %}
|
||||
{% else %}
|
||||
{% blocktranslate trimmed %}
|
||||
Votre demande d'autorisation d'occupation de voirie régionale a bien été enregistrée.
|
||||
Votre demande d'autorisation d'occupation de l'espace public a bien été enregistrée.
|
||||
Un accusé de réception vous a été envoyé par email.
|
||||
Nos services prendront contact avec vous dans les meilleurs délais.
|
||||
{% endblocktranslate %}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% translate "Lien invalide" %} – Brussels Mobility</title>
|
||||
<title>{% translate "Lien invalide" %}{% if organization_name %} – {{ organization_name }}{% endif %}</title>
|
||||
<link href="{% static 'common/bootstrap.min.css' %}" rel="stylesheet">
|
||||
<link href="{% static 'common/bootstrap-icons.min.css' %}" rel="stylesheet">
|
||||
<style>
|
||||
|
|
@ -22,10 +22,10 @@
|
|||
<body>
|
||||
<header class="page-header mb-5">
|
||||
<div class="container d-flex align-items-center gap-3">
|
||||
<img src="{% static 'common/android-192.png' %}" alt="Brussels Mobility">
|
||||
<img src="{% static organization_logo_header %}" alt="{{ organization_name }}">
|
||||
<div>
|
||||
<div class="fw-bold fs-5">Brussels Mobility</div>
|
||||
<div class="fs-6 opacity-75">{% translate "Demande d'occupation de voirie régionale" %}</div>
|
||||
<div class="fw-bold fs-5">{{ organization_name }}</div>
|
||||
<div class="fs-6 opacity-75">{% translate "Demande d'occupation de l'espace public" %}</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% translate "Confirmation de votre email" %} – Brussels Mobility</title>
|
||||
<title>{% translate "Confirmation de votre email" %}{% if organization_name %} – {{ organization_name }}{% endif %}</title>
|
||||
<link href="{% static 'common/bootstrap.min.css' %}" rel="stylesheet">
|
||||
<link href="{% static 'common/bootstrap-icons.min.css' %}" rel="stylesheet">
|
||||
<style>
|
||||
|
|
@ -22,10 +22,10 @@
|
|||
<body>
|
||||
<header class="page-header mb-5">
|
||||
<div class="container d-flex align-items-center gap-3">
|
||||
<img src="{% static 'common/android-192.png' %}" alt="Brussels Mobility">
|
||||
<img src="{% static organization_logo_header %}" alt="{{ organization_name }}">
|
||||
<div>
|
||||
<div class="fw-bold fs-5">Brussels Mobility</div>
|
||||
<div class="fs-6 opacity-75">{% translate "Demande d'occupation de voirie régionale" %}</div>
|
||||
<div class="fw-bold fs-5">{{ organization_name }}</div>
|
||||
<div class="fs-6 opacity-75">{% translate "Demande d'occupation de l'espace public" %}</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% translate "Vérification de votre email" %} – Brussels Mobility</title>
|
||||
<title>{% translate "Vérification de votre email" %}{% if organization_name %} – {{ organization_name }}{% endif %}</title>
|
||||
<link href="{% static 'common/bootstrap.min.css' %}" rel="stylesheet">
|
||||
<link href="{% static 'common/bootstrap-icons.min.css' %}" rel="stylesheet">
|
||||
<style>
|
||||
|
|
@ -29,10 +29,10 @@
|
|||
<body>
|
||||
<header class="page-header mb-5">
|
||||
<div class="container d-flex align-items-center gap-3">
|
||||
<img src="{% static 'common/android-192.png' %}" alt="Brussels Mobility">
|
||||
<img src="{% static organization_logo_header %}" alt="{{ organization_name }}">
|
||||
<div>
|
||||
<div class="fw-bold fs-5">Brussels Mobility</div>
|
||||
<div class="fs-6 opacity-75">{% translate "Demande d'occupation de voirie régionale" %}</div>
|
||||
<div class="fw-bold fs-5">{{ organization_name }}</div>
|
||||
<div class="fs-6 opacity-75">{% translate "Demande d'occupation de l'espace public" %}</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
Madame, Monsieur,
|
||||
|
||||
Nous avons bien reçu votre demande d'autorisation d'occupation de la voirie.
|
||||
{% load settings_tags %}Votre dossier est traité par la Direction Gestion et Inspection de {% get_setting "ORGANIZATION_NAME_FR" "Bruxelles Mobilité" %}.
|
||||
Nous avons bien reçu votre demande d'autorisation d'occupation de l'espace public.
|
||||
{% load settings_tags %}Votre dossier est traité par {% get_setting "ORGANIZATION_NAME_FR" "l'Administration" %}.
|
||||
|
||||
Numéro de référence : {{ authorization.code }}
|
||||
|
||||
|
|
@ -37,15 +37,10 @@ Vous trouverez ci-dessous une copie des informations que vous avez transmises vi
|
|||
|
||||
• Cet e-mail est un accusé de réception.
|
||||
• Il ne vaut pas autorisation.
|
||||
• Vous ne pouvez pas commencer l'occupation de la voirie tant que vous n'avez pas reçu une décision officielle.
|
||||
|
||||
📧 Contact
|
||||
|
||||
Pour toute question, vous pouvez nous écrire à :
|
||||
{% get_setting "EMAIL_AUTHORIZATIONS_BCC" "autorisation.voiries@sprb.brussels" %}
|
||||
• Vous ne pouvez pas commencer l'occupation tant que vous n'avez pas reçu une décision officielle.
|
||||
|
||||
Cordialement,
|
||||
|
||||
{% get_setting "ORGANIZATION_NAME_FR" "Bruxelles Mobilité" %}
|
||||
Direction Gestion et Inspection
|
||||
Autorisations – Occupation de la voirie
|
||||
{% get_setting "ORGANIZATION_NAME_FR" "l'Administration" %}
|
||||
Service des Autorisations – Occupation de l'espace public
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{% autoescape off %}
|
||||
Dear {{ authorization.applicant_name }},
|
||||
|
||||
We have received your application for authorisation to use the public road.
|
||||
{% load settings_tags %}Your application is handled by the Management and Inspection Department of {% get_setting "ORGANIZATION_NAME" "Brussels Mobility" %}.
|
||||
We have received your application for authorisation to use the public space.
|
||||
{% load settings_tags %}Your application is handled by {% get_setting "ORGANIZATION_NAME" "the Administration" %}.
|
||||
|
||||
Reference number: {{ authorization.code }}
|
||||
|
||||
|
|
@ -38,16 +38,10 @@ You will find below a copy of the information you submitted via the online form.
|
|||
|
||||
• This e-mail is an acknowledgement of receipt.
|
||||
• It does not constitute an authorisation.
|
||||
• You may not begin using the public road until you have received an official decision.
|
||||
|
||||
📧 Contact
|
||||
|
||||
For any questions, please contact us at:
|
||||
{% get_setting "EMAIL_AUTHORIZATIONS_BCC" "autorisation.voiries@sprb.brussels" %}
|
||||
• You may not begin using the public space until you have received an official decision.
|
||||
|
||||
Yours sincerely,
|
||||
|
||||
{% get_setting "ORGANIZATION_NAME" "Brussels Mobility" %}
|
||||
Management and Inspection Department
|
||||
Authorisations – Use of public road
|
||||
{% get_setting "ORGANIZATION_NAME" "the Administration" %}
|
||||
Authorisations Department – Use of public space
|
||||
{% endautoescape %}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{% autoescape off %}
|
||||
Dear {{ applicant_name }},
|
||||
|
||||
Thank you for your application for authorisation to use the public road.
|
||||
Thank you for your application for authorisation to use the public space.
|
||||
|
||||
To finalise your application, please enter the verification code below on the confirmation page:
|
||||
|
||||
|
|
@ -15,6 +15,6 @@ Confirmation page:
|
|||
If you did not submit this application, you can ignore this message.
|
||||
|
||||
---
|
||||
Brussels Mobility
|
||||
Management and Inspection Department – Road authorisations
|
||||
{% load settings_tags %}{% get_setting "ORGANIZATION_NAME" "the Administration" %}
|
||||
Authorisations Department – Use of public space
|
||||
{% endautoescape %}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{% autoescape off %}
|
||||
Madame, Monsieur,
|
||||
|
||||
Nous avons bien reçu votre demande d'autorisation d'occupation de la voirie.
|
||||
{% load settings_tags %}Votre dossier est traité par la Direction Gestion et Inspection de {% get_setting "ORGANIZATION_NAME_FR" "Bruxelles Mobilité" %}.
|
||||
Nous avons bien reçu votre demande d'autorisation d'occupation de l'espace public.
|
||||
{% load settings_tags %}Votre dossier est traité par {% get_setting "ORGANIZATION_NAME_FR" "l'Administration" %}.
|
||||
|
||||
Numéro de référence : {{ authorization.code }}
|
||||
|
||||
|
|
@ -38,16 +38,10 @@ Vous trouverez ci-dessous une copie des informations que vous avez transmises vi
|
|||
|
||||
• Cet e-mail est un accusé de réception.
|
||||
• Il ne vaut pas autorisation.
|
||||
• Vous ne pouvez pas commencer l'occupation de la voirie tant que vous n'avez pas reçu une décision officielle.
|
||||
|
||||
📧 Contact
|
||||
|
||||
Pour toute question, vous pouvez nous écrire à :
|
||||
{% get_setting "EMAIL_AUTHORIZATIONS_BCC" "autorisation.voiries@sprb.brussels" %}
|
||||
• Vous ne pouvez pas commencer l'occupation tant que vous n'avez pas reçu une décision officielle.
|
||||
|
||||
Cordialement,
|
||||
|
||||
{% get_setting "ORGANIZATION_NAME_FR" "Bruxelles Mobilité" %}
|
||||
Direction Gestion et Inspection
|
||||
Autorisations – Occupation de la voirie
|
||||
{% get_setting "ORGANIZATION_NAME_FR" "l'Administration" %}
|
||||
Service des Autorisations – Occupation de l'espace public
|
||||
{% endautoescape %}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{% autoescape off %}
|
||||
Bonjour {{ applicant_name }},
|
||||
|
||||
Merci pour votre demande d'autorisation d'occupation de voirie régionale.
|
||||
Merci pour votre demande d'autorisation d'occupation de l'espace public.
|
||||
|
||||
Pour finaliser votre demande, saisissez le code de vérification ci-dessous sur la page de confirmation :
|
||||
|
||||
|
|
@ -15,6 +15,6 @@ Page de confirmation :
|
|||
Si vous n'êtes pas à l'origine de cette demande, vous pouvez ignorer ce message.
|
||||
|
||||
---
|
||||
Brussels Mobility
|
||||
Direction Infrastructure Routière – Autorisations de voirie
|
||||
{% load settings_tags %}{% get_setting "ORGANIZATION_NAME_FR" "l'Administration" %}
|
||||
Service des Autorisations – Occupation de l'espace public
|
||||
{% endautoescape %}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{% autoescape off %}
|
||||
Geachte {{ authorization.applicant_name }},
|
||||
|
||||
Wij hebben uw aanvraag voor een vergunning tot inname van de openbare weg goed ontvangen.
|
||||
{% load settings_tags %}Uw dossier wordt behandeld door de Directie Beheer en Inspectie van {% get_setting "ORGANIZATION_NAME_NL" "Brussel Mobiliteit" %}.
|
||||
Wij hebben uw aanvraag voor een vergunning tot inname van het openbaar domein goed ontvangen.
|
||||
{% load settings_tags %}Uw dossier wordt behandeld door {% get_setting "ORGANIZATION_NAME_NL" "de Administratie" %}.
|
||||
|
||||
Referentienummer : {{ authorization.code }}
|
||||
|
||||
|
|
@ -38,16 +38,10 @@ U vindt hieronder een kopie van de informatie die u via het online formulier hee
|
|||
|
||||
• Dit e-mailbericht is een ontvangstbewijs.
|
||||
• Het geldt niet als vergunning.
|
||||
• U mag de openbare weg niet innemen zolang u geen officiële beslissing heeft ontvangen.
|
||||
|
||||
📧 Contact
|
||||
|
||||
Voor vragen kunt u ons bereiken op :
|
||||
{% get_setting "EMAIL_AUTHORIZATIONS_BCC" "autorisation.voiries@sprb.brussels" %}
|
||||
• U mag het openbaar domein niet innemen zolang u geen officiële beslissing heeft ontvangen.
|
||||
|
||||
Met vriendelijke groeten,
|
||||
|
||||
{% get_setting "ORGANIZATION_NAME_NL" "Brussel Mobiliteit" %}
|
||||
Directie Beheer en Inspectie
|
||||
Vergunningen – Inname van de openbare weg
|
||||
{% get_setting "ORGANIZATION_NAME_NL" "de Administratie" %}
|
||||
Dienst Vergunningen – Inname van het openbaar domein
|
||||
{% endautoescape %}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{% autoescape off %}
|
||||
Geachte {{ applicant_name }},
|
||||
|
||||
Bedankt voor uw aanvraag voor een vergunning tot inname van de openbare weg.
|
||||
Bedankt voor uw aanvraag voor een vergunning tot inname van het openbaar domein.
|
||||
|
||||
Om uw aanvraag te voltooien, voert u de verificatiecode hieronder in op de bevestigingspagina :
|
||||
|
||||
|
|
@ -15,6 +15,6 @@ Bevestigingspagina :
|
|||
Als u deze aanvraag niet heeft ingediend, kunt u dit bericht negeren.
|
||||
|
||||
---
|
||||
Brussel Mobiliteit
|
||||
Directie Beheer en Inspectie – Vergunningen openbare weg
|
||||
{% load settings_tags %}{% get_setting "ORGANIZATION_NAME_NL" "de Administratie" %}
|
||||
Dienst Vergunningen – Inname van het openbaar domein
|
||||
{% endautoescape %}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Bonjour {{ applicant_name }},
|
||||
|
||||
Merci pour votre demande d'autorisation d'occupation de voirie régionale.
|
||||
Merci pour votre demande d'autorisation d'occupation de l'espace public.
|
||||
|
||||
Pour finaliser votre demande, saisissez le code de vérification ci-dessous sur la page de confirmation :
|
||||
|
||||
|
|
@ -12,5 +12,6 @@ Ce code est valable {{ validity_minutes }} minutes à compter de la réception d
|
|||
Si vous n'êtes pas à l'origine de cette demande, vous pouvez ignorer ce message.
|
||||
|
||||
---
|
||||
Brussels Mobility
|
||||
Direction Infrastructure Routière – Autorisations de voirie
|
||||
{% load settings_tags %}{% get_setting "ORGANIZATION_NAME_FR" "l'Administration" %}
|
||||
Service des Autorisations – Occupation de l'espace public
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% translate "Demande d'occupation de voirie régionale" %} – Brussels Mobility</title>
|
||||
<title>{% translate "Demande d'occupation de l'espace public" %}{% if organization_name %} – {{ organization_name }}{% endif %}</title>
|
||||
|
||||
<!-- Bootstrap 5.3 -->
|
||||
<link href="{% static 'common/bootstrap.min.css' %}" rel="stylesheet">
|
||||
|
|
@ -93,10 +93,10 @@
|
|||
<!-- Header -->
|
||||
<header class="page-header mb-4">
|
||||
<div class="container d-flex align-items-center gap-3">
|
||||
<img src="{% static 'common/android-192.png' %}" alt="{% translate "Brussels Mobility" %}">
|
||||
<img src="{% static organization_logo_header %}" alt="{{ organization_name }}">
|
||||
<div>
|
||||
<div class="fw-bold fs-5">{% translate "Brussels Mobility" %}</div>
|
||||
<div class="fs-6 opacity-75">{% translate "Demande d'occupation de voirie régionale" %}</div>
|
||||
<div class="fw-bold fs-5">{{ organization_name }}</div>
|
||||
<div class="fs-6 opacity-75">{% translate "Demande d'occupation de l'espace public" %}</div>
|
||||
</div>
|
||||
<div class="ms-auto d-flex align-items-center gap-1" id="lang-switcher">
|
||||
<i class="bi bi-globe2 me-1" style="color:rgba(255,255,255,0.6);font-size:1.05rem;"></i>
|
||||
|
|
@ -114,31 +114,17 @@
|
|||
<div class="card-body">
|
||||
<p class="mb-2">
|
||||
{% blocktranslate trimmed %}
|
||||
Toute occupation de l'espace public doit faire l'objet d'une autorisation de la part du gestionnaire de voiries.
|
||||
En Région de Bruxelles-Capitale, les axes principaux sont gérés par la Région
|
||||
(<a href="https://mobilite-mobiliteit.brussels/fr/qui-sommes-nous" target="_blank" rel="noopener">Bruxelles Mobilité</a>),
|
||||
tandis que les autres voiries sont gérées par les communes.
|
||||
Les voiries régionales sont représentées en <strong style="color:#cc0000;">rouge</strong> sur la carte ci-dessous.
|
||||
Toute occupation de l'espace public (terrasse, affichage, événement, mobilier, etc.) doit faire l'objet d'une autorisation préalable de la part de l'administration.
|
||||
{% endblocktranslate %}
|
||||
</p>
|
||||
<p class="mb-2">
|
||||
{% blocktranslate trimmed %}
|
||||
Ce formulaire ne concerne que les autorisations sur <strong>voiries régionales</strong>.
|
||||
Veuillez vous adresser à votre commune pour les autres autorisations ou documents.
|
||||
Veuillez compléter ce formulaire et délimiter la zone concernée sur la carte ci-dessous ainsi que la période souhaitée.
|
||||
{% endblocktranslate %}
|
||||
</p>
|
||||
<p class="mb-0 fst-italic text-muted">
|
||||
<p class="mb-0 text-muted">
|
||||
{% blocktranslate trimmed %}
|
||||
Pour les demandes liées à des chantiers, veuillez utiliser le système
|
||||
<a href="https://my.osiris.brussels/" target="_blank" rel="noopener">Osiris</a>.
|
||||
Les demandes pour le placement de conteneurs, d'échafaudages ou les déménagements se font également via ce système.
|
||||
{% endblocktranslate %}
|
||||
</p>
|
||||
<p class="mb-0 mt-2 text-muted">
|
||||
{% blocktranslate trimmed %}
|
||||
Si vous éprouvez des difficultés, contactez-nous par mail
|
||||
(<a href="mailto:mobilite@sprb.brussels">mobilite@sprb.brussels</a>)
|
||||
ou par téléphone (<a href="tel:+3280094001">0800 94 001</a>).
|
||||
Si vous éprouvez des difficultés ou avez des questions, vous pouvez contacter nos services.
|
||||
{% endblocktranslate %}
|
||||
</p>
|
||||
</div>
|
||||
|
|
@ -386,10 +372,8 @@
|
|||
</main>
|
||||
|
||||
<footer class="mt-5">
|
||||
<div class="container text-center">
|
||||
<a href="{% translate 'https://servicepublic.brussels/politique-de-confidentialite/' %}" target="_blank" rel="noopener">
|
||||
{% translate "Politique de confidentialité" %}
|
||||
</a>
|
||||
<div class="container text-center text-muted">
|
||||
{% translate "Demande d'occupation de l'espace public" %}
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
|
@ -404,6 +388,7 @@
|
|||
<script>
|
||||
window.MAP_STYLE_LIGHT = "{{ MAP_STYLE_LIGHT|escapejs }}";
|
||||
window.MAP_STYLE_STANDARD = "{{ MAP_STYLE_STANDARD|escapejs }}";
|
||||
window.MAP_OVERLAY_WMS_URL = "{{ map_overlay_wms_url|escapejs }}";
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
|
|
@ -413,7 +398,6 @@
|
|||
let map, drawing = false, vertices = [], markers = [];
|
||||
|
||||
const MAPTILER_STYLE = window.MAP_STYLE_LIGHT;
|
||||
const REGIONAL_ROADS_WMS = 'https://data.mobility.brussels/geoserver/bm_network/wms?';
|
||||
|
||||
function initMap() {
|
||||
map = new maplibregl.Map({
|
||||
|
|
@ -426,23 +410,25 @@
|
|||
map.addControl(new maplibregl.NavigationControl(), 'top-left');
|
||||
|
||||
map.on('load', function () {
|
||||
// Regional roads overlay (Bruxelles Mobilité)
|
||||
map.addSource('regional-roads', {
|
||||
type: 'raster',
|
||||
tiles: [
|
||||
REGIONAL_ROADS_WMS +
|
||||
// Optional overlay WMS layer (e.g., regional roads if configured via MAP_OVERLAY_WMS_URL)
|
||||
if (window.MAP_OVERLAY_WMS_URL) {
|
||||
const wmsUrl = window.MAP_OVERLAY_WMS_URL +
|
||||
(window.MAP_OVERLAY_WMS_URL.includes('?') ? '&' : '?') +
|
||||
'SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap' +
|
||||
'&LAYERS=Regional_roads&FORMAT=image/png&TRANSPARENT=true' +
|
||||
'&SRS=EPSG:3857&WIDTH=256&HEIGHT=256&BBOX={bbox-epsg-3857}'
|
||||
],
|
||||
tileSize: 256,
|
||||
});
|
||||
map.addLayer({
|
||||
id: 'regional-roads-layer',
|
||||
type: 'raster',
|
||||
source: 'regional-roads',
|
||||
paint: { 'raster-opacity': 0.5 },
|
||||
});
|
||||
'&SRS=EPSG:3857&WIDTH=256&HEIGHT=256&BBOX={bbox-epsg-3857}';
|
||||
map.addSource('overlay-wms', {
|
||||
type: 'raster',
|
||||
tiles: [wmsUrl],
|
||||
tileSize: 256,
|
||||
});
|
||||
map.addLayer({
|
||||
id: 'overlay-wms-layer',
|
||||
type: 'raster',
|
||||
source: 'overlay-wms',
|
||||
paint: { 'raster-opacity': 0.5 },
|
||||
});
|
||||
}
|
||||
|
||||
// Polygon preview sources
|
||||
map.addSource('poly-preview', {
|
||||
|
|
@ -75,12 +75,12 @@ _VERIFY_SUBJECTS = {
|
|||
}
|
||||
|
||||
_ACK_SUBJECTS = {
|
||||
'fr': "{code} – Accusé de réception de votre demande – Occupation de voirie régionale",
|
||||
'fr': "{code} – Accusé de réception de votre demande – Occupation de l'espace public",
|
||||
'nl': "{code} – Ontvangstbewijs van uw aanvraag – Inname van het openbaar domein",
|
||||
'en': "{code} – Acknowledgement of your application – Use of public road",
|
||||
'en': "{code} – Acknowledgement of your application – Use of public space",
|
||||
}
|
||||
|
||||
_BCC_ADDRESS = getattr(settings, 'EMAIL_AUTHORIZATIONS_BCC', 'autorisation.voiries@sprb.brussels')
|
||||
_BCC_ADDRESS = getattr(settings, 'EMAIL_AUTHORIZATIONS_BCC', '')
|
||||
|
||||
|
||||
def _send_verification_email(request, authorization, token_obj):
|
||||
|
|
@ -95,8 +95,8 @@ def _send_verification_email(request, authorization, token_obj):
|
|||
'verify_page_url': verify_page_url,
|
||||
'validity_minutes': EmailVerificationToken.TOKEN_VALIDITY_MINUTES,
|
||||
}
|
||||
org_name = getattr(settings, 'ORGANIZATION_NAME', 'Brussels Mobility')
|
||||
org_name_nl = getattr(settings, 'ORGANIZATION_NAME_NL', 'Brussel Mobiliteit')
|
||||
org_name = getattr(settings, 'ORGANIZATION_NAME', 'StreetUp')
|
||||
org_name_nl = getattr(settings, 'ORGANIZATION_NAME_NL', 'StreetUp')
|
||||
org = org_name_nl if lang == 'nl' else org_name
|
||||
subject = _VERIFY_SUBJECTS.get(lang, _VERIFY_SUBJECTS['fr']).format(code=authorization.code, org=org)
|
||||
body = render_to_string(f'authorizations/emails/{lang}/verify_email.txt', context)
|
||||
|
|
@ -129,7 +129,7 @@ def _send_acknowledgment_email(request, authorization):
|
|||
recipients = _resolve_recipients([authorization.applicant_email])
|
||||
# BCC uniquement en production (pas en mode override)
|
||||
override = getattr(settings, 'EMAIL_OVERRIDE', None)
|
||||
bcc = [] if override else [_BCC_ADDRESS]
|
||||
bcc = [] if override else ([_BCC_ADDRESS] if _BCC_ADDRESS else [])
|
||||
if not _is_smtp_available():
|
||||
logger.warning("SMTP non disponible – accusé de réception non envoyé pour %s", authorization.code)
|
||||
return
|
||||
|
|
@ -234,7 +234,10 @@ def new_authorization(request):
|
|||
if lang_for_render in ('fr', 'nl', 'en'):
|
||||
translation.activate(lang_for_render)
|
||||
|
||||
return render(request, 'authorizations/new_authorization.html', {
|
||||
return render(request, [
|
||||
'authorizations/new_authorization.html',
|
||||
'authorizations/new_authorization_default.html',
|
||||
], {
|
||||
'form': form,
|
||||
'doc_formset': doc_formset,
|
||||
'date_formset': date_formset,
|
||||
|
|
|
|||
|
|
@ -143,12 +143,13 @@ def organization_info(request):
|
|||
"""
|
||||
return {
|
||||
'product_name': getattr(settings, 'PRODUCT_NAME', 'StreetUp'),
|
||||
'organization_name': getattr(settings, 'ORGANIZATION_NAME', 'Brussels Mobility'),
|
||||
'organization_name': getattr(settings, 'ORGANIZATION_NAME', 'StreetUp'),
|
||||
'organization_logo_header': getattr(settings, 'ORGANIZATION_LOGO_HEADER', 'common/android-192.png'),
|
||||
'organization_primary_color': getattr(settings, 'ORGANIZATION_PRIMARY_COLOR_HEX', '#2f3e8b'),
|
||||
'map_default_center': [getattr(settings, 'MAP_DEFAULT_CENTER_LON', 4.3572), getattr(settings, 'MAP_DEFAULT_CENTER_LAT', 50.8477)],
|
||||
'map_default_zoom': getattr(settings, 'MAP_DEFAULT_ZOOM', 11),
|
||||
'map_default_extent': getattr(settings, 'MAP_DEFAULT_EXTENT', None),
|
||||
'map_overlay_wms_url': getattr(settings, 'MAP_OVERLAY_WMS_URL', ''),
|
||||
'map_ortho_wms_url': getattr(settings, 'MAP_ORTHO_WMS_URL', ''),
|
||||
'map_ortho_wms_name': getattr(settings, 'MAP_ORTHO_WMS_NAME', ''),
|
||||
'map_ortho_wms_attribution': getattr(settings, 'MAP_ORTHO_WMS_ATTRIBUTION', ''),
|
||||
|
|
|
|||
|
|
@ -368,7 +368,10 @@ MAP_DEFAULT_EXTENT = _parse_extent(getenv("MAP_DEFAULT_EXTENT"))
|
|||
EMAIL_TECH_SUPPORT = getenv("EMAIL_TECH_SUPPORT", "bm.perm.tech@sprb.brussels")
|
||||
EMAIL_TECH_SUPPORT_PHONE = getenv("EMAIL_TECH_SUPPORT_PHONE", "02/204.22.86")
|
||||
EMAIL_INTERNAL_FOLLOWUP = getenv("EMAIL_INTERNAL_FOLLOWUP", "kdeterme@sprb.brussels")
|
||||
EMAIL_AUTHORIZATIONS_BCC = getenv("EMAIL_AUTHORIZATIONS_BCC", "autorisation.voiries@sprb.brussels")
|
||||
EMAIL_AUTHORIZATIONS_BCC = getenv("EMAIL_AUTHORIZATIONS_BCC", "")
|
||||
|
||||
# WMS Overlay Layer Configuration (Optional overlay for maps, e.g. regional roads)
|
||||
MAP_OVERLAY_WMS_URL = getenv("MAP_OVERLAY_WMS_URL", "")
|
||||
|
||||
# Orthophoto WMS Layer Configuration
|
||||
MAP_ORTHO_WMS_URL = getenv("MAP_ORTHO_WMS_URL", "https://geoservices-urbis.irisnet.be/geoserver/urbisgrid/wms?service=WMS&version=1.3.0&request=GetMap&layers=Ortho&styles=&format=image/png&transparent=true&width=256&height=256&crs=EPSG:3857&bbox={bbox-epsg-3857}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue