feat(routing): add types of routables champs

This commit is contained in:
Eric Leroy-Terquem 2024-11-08 17:08:18 +01:00
parent 05b28fb75d
commit 4e8200aaf7
No known key found for this signature in database
GPG key ID: 53D8FAECEF207605

View file

@ -35,7 +35,7 @@
.card.fr-pb-0{ data: { 'action': "click->enable-submit-if-checked#click" } } .card.fr-pb-0{ data: { 'action': "click->enable-submit-if-checked#click" } }
.notice .notice
Sélectionner le champ à partir duquel créer des groupes dinstructeurs Sélectionner le champ à partir duquel créer des groupes dinstructeurs
- buttons_content = @procedure.active_revision.simple_routable_types_de_champ.map { |tdc| { label: tdc.libelle, value: tdc.stable_id } } - buttons_content = @procedure.active_revision.simple_routable_types_de_champ.map { |tdc| { label: tdc.libelle, value: tdc.stable_id, hint: "[#{I18n.t(tdc.type_champ, scope: 'activerecord.attributes.type_de_champ.type_champs')}]"} }
= render Dsfr::RadioButtonListComponent.new(form: f, = render Dsfr::RadioButtonListComponent.new(form: f,
target: :stable_id, target: :stable_id,
buttons: buttons_content) buttons: buttons_content)