tech(clean): move from custom spacer classes to dsfr spacer classes
This commit is contained in:
parent
4bc8eaa192
commit
6f01a10846
1 changed files with 7 additions and 7 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Reference in a new issue