Skip to content

Commit 94c39f2

Browse files
committed
display custom message for natura2000_haie regulation in confighaie_settings view
1 parent 3925459 commit 94c39f2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

envergo/moulinette/views.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ def get(self, request, *args, **kwargs):
662662

663663
config = self.moulinette.get_config()
664664
if not config:
665-
return HttpResponseRedirect(f"{reverse("home")}#simulateur")
665+
return HttpResponseRedirect(f"{reverse('home')}#simulateur")
666666

667667
event_params = {
668668
"department": self.moulinette.department.department,
@@ -849,8 +849,9 @@ def get_context_data(self, **kwargs):
849849
context["department_members"] = departement_members_dict
850850

851851
# Get activation maps for criteria in regulations related to this department
852+
# natura2000_haie map is displayed with custom message : "Map import processing"
853+
# protection_captages map is displayed with custom message : "Data not publicly available"
852854
MAPS_REGULATION_LIST = [
853-
"natura2000_haie",
854855
"reserves_naturelles",
855856
"code_rural_haie",
856857
"sites_proteges_haie",

envergo/templates/haie/moulinette/confighaie_settings.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ <h2 id="title-cartes" class="fr-mb-4v">Cartes</h2>
6363
</p>
6464
</div>
6565

66+
<h3 class="fr-h5">Natura 2000</h3>
67+
68+
<p>
69+
<em>Carte en cours d'import dans le portail.</em>
70+
</p>
71+
6672
{% for regulation in regulation_list %}
6773
<h3 class="fr-h5">{{ regulation.title }}</h3>
6874
{% if regulation.regulation in grouped_criteria %}

0 commit comments

Comments
 (0)