2021-09-14 19:54:35 +02:00
|
|
|
|
.card
|
2022-07-21 18:56:01 +02:00
|
|
|
|
%h2.card-title= t('.title')
|
|
|
|
|
|
2021-11-11 13:25:47 +01:00
|
|
|
|
- if !procedure.routee?
|
|
|
|
|
%p.notice= t('.notice_html')
|
2021-09-14 19:54:35 +02:00
|
|
|
|
|
2021-11-11 13:25:47 +01:00
|
|
|
|
- if procedure.routee?
|
|
|
|
|
- if procedure.routing_enabled? && procedure.groupe_instructeurs.size == 1
|
|
|
|
|
= link_to t('.button.routing_disable'), update_routing_enabled_admin_procedure_groupe_instructeurs_path(procedure, routing: :disable), class: 'button primary mt-1', method: 'patch'
|
|
|
|
|
- else
|
|
|
|
|
= link_to t('.button.routing_enable'), update_routing_enabled_admin_procedure_groupe_instructeurs_path(procedure, routing: :enable), class: 'button primary mt-1', method: 'patch'
|
2022-07-21 18:56:01 +02:00
|
|
|
|
.card
|
|
|
|
|
%h2.card-title L‘autogestion des instructeurs
|
|
|
|
|
%p.notice= t('.self_managment_notice_html')
|
2021-09-15 10:37:19 +02:00
|
|
|
|
|
2022-07-21 18:56:01 +02:00
|
|
|
|
= form_for procedure,
|
|
|
|
|
method: :patch,
|
|
|
|
|
url: update_instructeurs_self_management_enabled_admin_procedure_groupe_instructeurs_path(procedure),
|
|
|
|
|
html: { class: 'form procedure-form__column--form no-background' } do |f|
|
|
|
|
|
%label.toggle-switch
|
|
|
|
|
= f.check_box :instructeurs_self_management_enabled, class: 'toggle-switch-checkbox', onchange: 'this.form.submit()'
|
|
|
|
|
%span.toggle-switch-control.round
|
|
|
|
|
%span.toggle-switch-label.on
|
|
|
|
|
%span.toggle-switch-label.off
|