Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Changer url de la page "Auditer vos achats" #1218

Merged
merged 1 commit into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
https://docs.djangoproject.com/en/3.2/ref/settings/
"""

import datetime
import locale
import os
import datetime

import environ
from django.contrib.messages import constants as messages
Expand Down Expand Up @@ -841,8 +841,9 @@

WAGTAIL_FRONTEND_LOGIN_URL = LOGIN_URL

# Specific home page is setted here to avoid one query on every page
# Specific home and purchasing impact page is setted here to avoid queries on every page
SIAE_HOME_PAGE = env.str("SIAE_HOME_PAGE", "/accueil-structure/")
PURCHASING_IMPACT_PAGE = env.str("PURCHASING_IMPACT_PAGE", "/impact-rse/")

# Increase throttling to avoid Bad request errors when saving large pages
# https://docs.djangoproject.com/en/4.2/ref/settings/#data-upload-max-number-fields
Expand Down
2 changes: 1 addition & 1 deletion lemarche/templates/layouts/_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<li><a href="{% url 'tenders:create' %}">Publier un besoin d'achat</li>
<li><a href="{% url 'siae:search_results' %}">Rechercher un prestataire</a></li>
<li><a href="{% url 'siae:search_results' %}">Moteur de recherche multicritères</a></li>
<li><a href="{% url 'pages:valoriser_achats' %}">Auditer vos achats</a></li>
<li><a href="{{ PURCHASING_IMPACT_PAGE }}">Auditer vos achats</a></li>
</ul>
<ul>
<li><a href="{% url 'pages:impact_calculator' %}">Calibrer vos achats</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<a href="{% url 'tenders:create' %}" id="header-dropdown-tender-create-btn" class="dropdown-item">
Sourcing inversé
</a>
<a href="{% url 'pages:valoriser_achats' %}" id="header-valoriser" class="dropdown-item">
<a href="{{ PURCHASING_IMPACT_PAGE }}" id="header-valoriser" class="dropdown-item">
Auditer vos achats
</a>
<a href="{% url 'pages:impact_calculator' %}" id="header-calibrer" class="dropdown-item">
Expand Down
1 change: 1 addition & 0 deletions lemarche/utils/settings_context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ def expose_settings(request):
"FORM_PARTENAIRES": settings.FORM_PARTENAIRES,
"MTCAPTCHA_PUBLIC_KEY": settings.MTCAPTCHA_PUBLIC_KEY,
"SIAE_HOME_PAGE": settings.SIAE_HOME_PAGE,
"PURCHASING_IMPACT_PAGE": settings.PURCHASING_IMPACT_PAGE,
}
Loading