fix(conditional): dynamic title counters using css

Closes #8086
This commit is contained in:
Colin Darie 2023-02-20 16:45:00 +01:00
parent 568c2f8f4e
commit 3de089d6c7
8 changed files with 47 additions and 14 deletions

View file

@ -10,8 +10,7 @@
- else
%tr
- if c.type_champ == TypeDeChamp.type_champs.fetch(:header_section)
%th.header-section{ colspan: 3 }
= c.libelle
%th.header-section{ colspan: 3, class: c.dossier.auto_numbering_section_headers_for?(c) ? "header-section-counter" : nil }= c.libelle
- else
%td.libelle{ class: repetition ? 'padded' : '' }
= "#{c.libelle} :"

View file

@ -1,4 +1,4 @@
%table.table.vertical.dossier-champs{ role: :presentation }
%table.table.vertical.dossier-champs.counter-start-header-section{ role: :presentation }
%tbody
- if dossier.show_groupe_instructeur_details?
%td.libelle= dossier.procedure.routing_criteria_name

View file

@ -2,7 +2,7 @@
- content_for(:notice_info) do
= render partial: "shared/dossiers/france_connect_informations_notice", locals: { user_information: dossier.france_connect_information }
.dossier-edit.container
.dossier-edit.container.counter-start-header-section
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: dossier }
- if dossier.brouillon?