Skip to content

Commit 1608d66

Browse files
authored
Merge pull request #13025 from colinux/banner-admin-tableau
ETQ admin, je peux répondre à l'enquête sur le champ tableau
2 parents 7f5fba5 + 92f6236 commit 1608d66

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

app/views/administrateurs/procedures/index.html.haml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
- if ENV.fetch("ADMIN_TABLEAU_SURVEY_ENABLED", "enabled") == "enabled"
2+
= render Dsfr::NoticeComponent.new(closable: true, data_attributes: { "data-notice-name" => "admin-sondage-champ-tableau" }) do |c|
3+
- c.with_title do
4+
Votre avis compte !
5+
- c.with_desc do
6+
En tant qu’administrateur·trice de formulaire, vous auriez besoin d’un nouveau champ de type ”tableau“ ?
7+
- c.with_link do
8+
-# haml-lint:disable ApplicationNameLinter
9+
= link_to "Répondre au sondage", "https://demarche.numerique.gouv.fr/commencer/sondage-champ-de-type-tableau", class: "fr-notice__link", **external_link_attributes
10+
-# haml-lint:enable ApplicationNameLinter
11+
112
.sub-header
213
.fr-container
314
%h1.fr-h3 Mes démarches

config/env.example.optional

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ ADMINISTRATION_BANNER_MESSAGE=""
264264
# for usager only
265265
USAGER_BANNER_MESSAGE=""
266266

267+
# Survey banner shown to administrateurs about a "tableau" champ type
268+
# ADMIN_TABLEAU_SURVEY_ENABLED="disabled" # "enabled" by default
269+
267270
# RSA private key to generate JWT tokens for communication with COJO services
268271
COJO_JWT_RSA_PRIVATE_KEY=""
269272
COJO_JWT_ISS=""

0 commit comments

Comments
 (0)