From 6f01a108468d60f267a39e667d0f73c504aaf129 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 19 Dec 2023 11:31:55 +0100 Subject: [PATCH] tech(clean): move from custom spacer classes to dsfr spacer classes --- .../champ_component/champ_component.html.haml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 9caa369cf..748e16f6b 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 @@ -41,29 +41,29 @@ %small Nous numérotons automatiquement les titres lorsqu’aucun de vos titres ne commence par un chiffre. - if type_de_champ.expression_reguliere? - .cell.mt-1 + .cell.fr-mt-1w = form.label :expression_reguliere, for: dom_id(type_de_champ, :expression_reguliere) do = t('.expression_reguliere.labels.regex') .type-de-champ-expression-reguliere = form.text_field :expression_reguliere, class: "fr-input small-margin small", id: dom_id(type_de_champ, :expression_reguliere) - .cell.mt-1 + .cell.fr-mt-1w = form.label :expression_reguliere_exemple_text, for: dom_id(type_de_champ, :expression_reguliere_exemple_text) do = t('.expression_reguliere.labels.valid_exemple') = form.text_field :expression_reguliere_exemple_text, class: "fr-input small-margin small", id: dom_id(type_de_champ, :expression_reguliere_exemple_text) - if type_de_champ.invalid_regexp? %p.fr-message.fr-message--error = type_de_champ.errors[:expression_reguliere_exemple_text].join(", ") - .cell.mt-1 + .cell.fr-mt-1w = form.label :expression_reguliere_error_message, for: dom_id(type_de_champ, :expression_reguliere_error_message) do = t('.expression_reguliere.labels.error_message') = form.text_field :expression_reguliere_error_message, class: "fr-input small-margin small", id: dom_id(type_de_champ, :expression_reguliere_error_message) - if !type_de_champ.header_section? && !type_de_champ.titre_identite? - .cell.mt-1 + .cell.fr-mt-1w = form.label :description, "Description du champ (optionnel)", for: dom_id(type_de_champ, :description) = form.text_area :description, class: 'fr-input small-margin small width-100', rows: 3, id: dom_id(type_de_champ, :description) - if type_de_champ.header_section? - .cell.mt-1 + .cell.fr-mt-1w = render TypesDeChampEditor::HeaderSectionComponent.new(form: form, tdc: type_de_champ, upper_tdcs: @upper_coordinates.map(&:type_de_champ)) - if type_de_champ.explication? .cell.fr-mt-1w @@ -80,7 +80,7 @@ - .flex.justify-start.mt-1 + .flex.justify-start.fr-mt-1w - if type_de_champ.drop_down_list? .flex.column.justify-start.width-33 .cell @@ -97,7 +97,7 @@ .cell = form.label :drop_down_secondary_libelle, "Libellé du champ secondaire", class: 'flex-grow', for: dom_id(type_de_champ, :drop_down_secondary_libelle) = form.text_field :drop_down_secondary_libelle, class: 'fr-input small-margin small width-100', id: dom_id(type_de_champ, :drop_down_secondary_libelle) - .cell.mt-1 + .cell.fr-mt-1w = form.label :drop_down_secondary_description, "Description du champ secondaire (optionnel)", for: dom_id(type_de_champ, :drop_down_secondary_description) = form.text_area :drop_down_secondary_description, class: 'fr-input small-margin small width-100', rows: 3, id: dom_id(type_de_champ, :drop_down_secondary_description) - if type_de_champ.piece_justificative?