feat(admin): notice about auto numbering of header section

This commit is contained in:
Colin Darie 2023-02-21 11:36:32 +01:00
parent ce175aed00
commit 8156e1cc01
2 changed files with 6 additions and 1 deletions

View file

@ -89,7 +89,8 @@
color: $light-grey;
}
.conditionnel {
.conditionnel,
p {
color: $white;
}
}

View file

@ -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 lorsquaucun 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)