feat(instruction routage choice): update view
This commit is contained in:
parent
f53af82f14
commit
b511eb2db7
1 changed files with 12 additions and 8 deletions
|
@ -54,18 +54,22 @@
|
|||
data: { controller: 'enable-submit-if-checked' },
|
||||
url: wizard_admin_procedure_groupe_instructeurs_path(@procedure) do |f|
|
||||
|
||||
%div{ data: { 'action': "click->enable-submit-if-checked#click" } }
|
||||
%h1 Configuration du routage
|
||||
%h2 Choix du type de routage
|
||||
|
||||
.card.fr-pb-0{ data: { 'action': "click->enable-submit-if-checked#click" } }
|
||||
%p.fr-mb-0 Routage
|
||||
= render Dsfr::RadioButtonListComponent.new(form: f,
|
||||
target: :state,
|
||||
buttons: [ { label: 'À partir d’un champ', value: 'routage_simple', hint: 'crée les groupes en fonction d’un champ du formulaire' } ,
|
||||
{ label: 'Avancé', value: 'routage_custom', hint: 'libre à vous de créer et de configurer les groupes' }]) do
|
||||
%h1 Choix du type de routage
|
||||
{ label: 'Avancé', value: 'routage_custom', hint: 'libre à vous de créer et de configurer les groupes' }])
|
||||
|
||||
%ul.fr-btns-group.fr-btns-group--inline-sm
|
||||
%li
|
||||
= link_to 'Retour', options_admin_procedure_groupe_instructeurs_path(@procedure), class: 'fr-btn fr-btn--secondary'
|
||||
%li
|
||||
%button.fr-btn{ disabled: true, data: { 'enable-submit-if-checked-target': 'submit' } } Continuer
|
||||
|
||||
%ul.fr-btns-group.fr-btns-group--inline-sm
|
||||
%li
|
||||
= link_to 'Annuler', options_admin_procedure_groupe_instructeurs_path(@procedure), class: 'fr-btn fr-btn--secondary'
|
||||
%li
|
||||
%button.fr-btn{ disabled: true, data: { 'enable-submit-if-checked-target': 'submit' } } Continuer
|
||||
- if params[:state] != 'choix'
|
||||
.padded-fixed-footer
|
||||
.fixed-footer
|
||||
|
|
Loading…
Reference in a new issue