diff --git a/envergo/moulinette/admin.py b/envergo/moulinette/admin.py index 5da43dc8a..0be18b962 100644 --- a/envergo/moulinette/admin.py +++ b/envergo/moulinette/admin.py @@ -366,7 +366,7 @@ def get_demarche_simplifiee_pre_fill_config_help_text(self): @admin.register(ConfigHaie) class ConfigHaieAdmin(admin.ModelAdmin): form = ConfigHaieAdminForm - list_display = ["department", "is_activated", "department_guichet_unique_url"] + list_display = ["department", "is_activated"] list_filter = ["is_activated"] def get_queryset(self, request): diff --git a/envergo/moulinette/migrations/0067_remove_confighaie_department_guichet_unique_url_and_more.py b/envergo/moulinette/migrations/0067_remove_confighaie_department_guichet_unique_url_and_more.py new file mode 100644 index 000000000..f9ffa101c --- /dev/null +++ b/envergo/moulinette/migrations/0067_remove_confighaie_department_guichet_unique_url_and_more.py @@ -0,0 +1,22 @@ +# Generated by Django 4.2.13 on 2025-01-24 10:30 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("moulinette", "0066_confighaie_demarches_simplifiees_city_id_and_more"), + ] + + operations = [ + migrations.RemoveField( + model_name="confighaie", + name="department_guichet_unique_url", + ), + migrations.AlterField( + model_name="confighaie", + name="contacts_and_links", + field=models.TextField(blank=True, verbose_name="Champ html d’information"), + ), + ] diff --git a/envergo/moulinette/migrations/0069_merge_20250124_1157.py b/envergo/moulinette/migrations/0069_merge_20250124_1157.py new file mode 100644 index 000000000..64d5b5c44 --- /dev/null +++ b/envergo/moulinette/migrations/0069_merge_20250124_1157.py @@ -0,0 +1,13 @@ +# Generated by Django 4.2.13 on 2025-01-24 10:57 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("moulinette", "0067_remove_confighaie_department_guichet_unique_url_and_more"), + ("moulinette", "0068_remove_configamenagement_criteria_values"), + ] + + operations = [] diff --git a/envergo/moulinette/models.py b/envergo/moulinette/models.py index 705114846..4f572a8b5 100644 --- a/envergo/moulinette/models.py +++ b/envergo/moulinette/models.py @@ -786,13 +786,7 @@ class ConfigHaie(ConfigBase): regulations_available = HAIE_REGULATIONS - department_guichet_unique_url = models.URLField( - "Url du guichet unique de la haie du département (si existant)", blank=True - ) - - contacts_and_links = models.TextField( - "Liste des contacts et liens utiles", blank=True - ) + contacts_and_links = models.TextField("Champ html d’information", blank=True) demarche_simplifiee_number = models.IntegerField( "Numéro de la démarche sur démarche simplifiée", diff --git a/envergo/templates/haie/pages/home.html b/envergo/templates/haie/pages/home.html index 008f4ebdc..8b0da8418 100644 --- a/envergo/templates/haie/pages/home.html +++ b/envergo/templates/haie/pages/home.html @@ -68,11 +68,10 @@
- Vous envisagez des travaux sur vos haies ? Nous vous informons sur les règles de protection et les procédures à
- suivre.
+ Vous envisagez des travaux sur vos haies ? Simulez ici votre projet pour connaître les règles de protection et la replantation attendue, puis déposez votre demande d'autorisation.
- 3 minutes, gratuit et anonyme
+ Simulation gratuite et anonyme. Durée : 3 min.
Un guichet de la haie existe déjà pour le département {{ department }}.
-- Aller au Guichet unique Haie pour ce - département -
- {% elif department %} -- - Le guichet unique haie n'existe pas encore dans le département {{ department }}. -
+ {% if department %} + {% if config and config.contacts_and_links %} ++ Vous représentez la DDT(M) du département et souhaitez compléter ou modifier les informations affichées ici ? + Cliquez ici. +
++ + {{ department }} : nous ne disposons pas encore d'information sur les contacts de l'administration en rapport avec la haie. +
++ Vous représentez la DDT(M) du département et souhaitez faire apparaître ici des informations de contact, des liens vers le site de votre préfecture, + des ressources à présenter aux usagers ? + Cliquez ici. +