|
53 | 53 | = t('.expression_reguliere.labels.error_message') |
54 | 54 | = form.text_field :expression_reguliere_error_message, class: "fr-input small-margin small", id: dom_id(type_de_champ, :expression_reguliere_error_message) |
55 | 55 |
|
| 56 | + - if !type_de_champ.header_section? && !type_de_champ.titre_identite? |
| 57 | + .cell.fr-mt-1w |
| 58 | + = form.label :description, "Description du champ (optionnel)", for: dom_id(type_de_champ, :description) |
| 59 | + = form.text_area :description, class: 'fr-input small-margin small width-100 resize-y', rows: 3, id: dom_id(type_de_champ, :description) |
| 60 | + |
56 | 61 | - if type_de_champ.formule? |
57 | 62 | - available_champs = upper_coordinates.filter_map { |coord| { label: coord.type_de_champ.libelle, stable_id: coord.type_de_champ.stable_id } if coord.type_de_champ.fillable? } |
58 | 63 | .cell.fr-mt-1w{ data: { controller: 'formula-editor', formula_editor_champs_value: available_champs.to_json } } |
|
76 | 81 | - if type_de_champ.errors[:formule_expression].any? |
77 | 82 | %p.fr-message.fr-message--error |
78 | 83 | = type_de_champ.errors[:formule_expression].join(", ") |
79 | | -
|
80 | | - - if !type_de_champ.header_section? && !type_de_champ.titre_identite? |
81 | | - .cell.fr-mt-1w |
82 | | - = form.label :description, "Description du champ (optionnel)", for: dom_id(type_de_champ, :description) |
83 | | - = form.text_area :description, class: 'fr-input small-margin small width-100 resize-y', rows: 3, id: dom_id(type_de_champ, :description) |
84 | 84 | - if type_de_champ.header_section? |
85 | 85 | .cell.fr-mt-1w |
86 | 86 | = render TypesDeChampEditor::HeaderSectionComponent.new(form: form, tdc: type_de_champ, upper_tdcs: filtered_upper_tdcs) |
|
0 commit comments