From 8156e1cc01c0a5e65dd050ad822b7fe790448e16 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 21 Feb 2023 11:36:32 +0100 Subject: [PATCH] feat(admin): notice about auto numbering of header section --- app/assets/stylesheets/procedure_champs_editor.scss | 3 ++- .../champ_component/champ_component.html.haml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/procedure_champs_editor.scss b/app/assets/stylesheets/procedure_champs_editor.scss index bb2e6fe1e..c4e20f0dc 100644 --- a/app/assets/stylesheets/procedure_champs_editor.scss +++ b/app/assets/stylesheets/procedure_champs_editor.scss @@ -89,7 +89,8 @@ color: $light-grey; } - .conditionnel { + .conditionnel, + p { color: $white; } } diff --git a/app/components/types_de_champ_editor/champ_component/champ_component.html.haml b/app/components/types_de_champ_editor/champ_component/champ_component.html.haml index d9e1260aa..972beea77 100644 --- a/app/components/types_de_champ_editor/champ_component/champ_component.html.haml +++ b/app/components/types_de_champ_editor/champ_component/champ_component.html.haml @@ -29,6 +29,10 @@ = form.check_box :mandatory, class: 'small-margin small', id: dom_id(type_de_champ, :mandatory) = form.label :mandatory, "Champ obligatoire", for: dom_id(type_de_champ, :mandatory) = form.text_field :libelle, class: 'small-margin small width-100', id: dom_id(type_de_champ, :libelle), data: input_autofocus + - if type_de_champ.header_section? + %p + %small Nous numérotons automatiquement les titres lorsqu’aucun de vos titres ne commence par un chiffre. + - if !type_de_champ.header_section? && !type_de_champ.titre_identite? .cell.mt-1 = form.label :description, "Description du champ (optionnel)", for: dom_id(type_de_champ, :description)