demarches-normaliennes/app/views/administrateurs/groupe_instructeurs/simple_routing.html.haml

27 lines
1.5 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

= 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 dun champ']] }
= render Procedure::InstructeursMenuComponent.new(procedure: @procedure) do
- content_for(:title, 'Routage')
%h1 Routage à partir dun champ
= form_for :create_simple_routing,
method: :post,
data: { controller: 'enable-submit-if-checked' },
url: create_simple_routing_admin_procedure_groupe_instructeurs_path(@procedure) do |f|
%div{ data: { 'action': "click->enable-submit-if-checked#click" } }
.notice
Sélectionner le champ à partir duquel créer des groupes dinstructeurs
- 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
%button.fr-btn{ disabled: true, data: { disable_with: 'Création des groupes…', 'enable-submit-if-checked-target': 'submit' } } Créer les groupes