2023-04-26 17:33:14 +02:00
|
|
|
|
= render partial: 'administrateurs/breadcrumbs',
|
|
|
|
|
locals: { steps: [[t('.procedures'), admin_procedures_path],
|
|
|
|
|
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
|
|
|
|
['Groupes', admin_procedure_groupe_instructeurs_path(@procedure)],
|
|
|
|
|
['Routage à partir d’un champ']] }
|
|
|
|
|
|
|
|
|
|
= render Procedure::InstructeursMenuComponent.new(procedure: @procedure) do
|
|
|
|
|
- content_for(:title, 'Routage')
|
|
|
|
|
%h1 Routage à partir d’un champ
|
|
|
|
|
= form_for :create_simple_routing,
|
|
|
|
|
method: :post,
|
2023-12-19 15:30:12 +01:00
|
|
|
|
data: { controller: 'enable-submit-if-checked' },
|
2023-04-26 17:33:14 +02:00
|
|
|
|
url: create_simple_routing_admin_procedure_groupe_instructeurs_path(@procedure) do |f|
|
|
|
|
|
|
2023-12-19 15:30:12 +01:00
|
|
|
|
%div{ data: { 'action': "click->enable-submit-if-checked#click" } }
|
2023-04-26 17:33:14 +02:00
|
|
|
|
.notice
|
2023-06-07 21:52:31 +02:00
|
|
|
|
Sélectionner le champ à partir duquel créer des groupes d’instructeurs
|
2023-04-26 17:33:14 +02:00
|
|
|
|
- buttons_content = @procedure.active_revision.routable_types_de_champ.map { |tdc| { label: tdc.libelle, value: tdc.stable_id } }
|
|
|
|
|
= render Dsfr::RadioButtonListComponent.new(form: f,
|
|
|
|
|
target: :stable_id,
|
|
|
|
|
buttons: buttons_content)
|
|
|
|
|
|
|
|
|
|
%ul.fr-btns-group.fr-btns-group--inline-sm
|
|
|
|
|
%li
|
|
|
|
|
= link_to 'Retour', options_admin_procedure_groupe_instructeurs_path(@procedure, state: :choix), class: 'fr-btn fr-btn--secondary'
|
|
|
|
|
%li
|
2023-12-19 15:30:12 +01:00
|
|
|
|
%button.fr-btn{ disabled: true, data: { disable_with: 'Création des groupes…', 'enable-submit-if-checked-target': 'submit' } } Créer les groupes
|