2018-09-05 14:48:42 +02:00
|
|
|
- content_for(:title, "Démarches")
|
2017-11-17 23:40:51 +01:00
|
|
|
|
2023-07-10 18:08:33 +02:00
|
|
|
.sub-header
|
|
|
|
.fr-container
|
|
|
|
%h1.fr-h3.fr-mb-0 Démarches
|
|
|
|
= render partial: 'instructeurs/procedures/synthese', locals: { procedures: @procedures, all_dossiers_counts: @all_dossiers_counts }
|
2017-07-03 14:05:55 +02:00
|
|
|
|
2023-11-09 15:02:43 +01:00
|
|
|
%nav.fr-tabs{ role: 'navigation', 'aria-label': t('views.users.dossiers.secondary_menu') }
|
2023-11-14 12:05:17 +01:00
|
|
|
%ul.fr-tabs__list{ role: 'tablist' }
|
2023-09-25 15:34:37 +02:00
|
|
|
= tab_item(t('pluralize.en_cours', count: @procedures_en_cours_count), instructeur_procedures_path(statut: 'en-cours'), active: @statut == 'en-cours', badge: number_with_html_delimiter(@procedures_en_cours_count))
|
|
|
|
= tab_item(t('pluralize.en_test', count: @procedures_draft_count), instructeur_procedures_path(statut: 'brouillons'), active: @statut == 'brouillons', badge: number_with_html_delimiter(@procedures_draft_count))
|
|
|
|
= tab_item(t('pluralize.closed', count: @procedures_closes_count), instructeur_procedures_path(statut: 'archivees'), active: @statut == 'archivees', badge: number_with_html_delimiter(@procedures_closes_count))
|
2023-07-10 18:08:33 +02:00
|
|
|
|
|
|
|
.fr-container
|
2023-09-27 16:51:44 +02:00
|
|
|
- if @statut.in? ["publiees", "en-cours"] # FIX ME: @statut === "en-cours" à partir du 1/11/2023
|
2023-09-25 15:34:37 +02:00
|
|
|
= render Dsfr::CalloutComponent.new(title: nil) do |c|
|
|
|
|
- c.with_body do
|
|
|
|
= t(".procedure_en_cours_description")
|
|
|
|
- collection = @procedures_en_cours
|
2023-07-10 18:08:33 +02:00
|
|
|
- if @statut === "brouillons"
|
2023-09-25 15:34:37 +02:00
|
|
|
= render Dsfr::CalloutComponent.new(title: nil) do |c|
|
|
|
|
- c.with_body do
|
|
|
|
= t(".procedure_en_test_description")
|
2023-07-10 18:08:33 +02:00
|
|
|
- collection = @procedures_draft
|
|
|
|
- if @statut === "archivees"
|
2023-09-25 15:34:37 +02:00
|
|
|
= render Dsfr::CalloutComponent.new(title: nil) do |c|
|
|
|
|
- c.with_body do
|
|
|
|
= t(".procedure_close_description")
|
|
|
|
- collection = @procedures_closes
|
2023-07-10 18:08:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
- if collection.present?
|
2024-05-02 14:39:23 +02:00
|
|
|
%h2.fr-h6
|
2023-07-10 18:08:33 +02:00
|
|
|
= page_entries_info collection
|
|
|
|
%ul.procedure-list.fr-pl-0
|
|
|
|
= render partial: 'instructeurs/procedures/list',
|
|
|
|
collection: collection,
|
|
|
|
as: :p,
|
|
|
|
locals: { dossiers_count_per_procedure: @dossiers_count_per_procedure,
|
|
|
|
dossiers_a_suivre_count_per_procedure: @dossiers_a_suivre_count_per_procedure,
|
|
|
|
dossiers_archived_count_per_procedure: @dossiers_archived_count_per_procedure,
|
|
|
|
dossiers_termines_count_per_procedure: @dossiers_termines_count_per_procedure,
|
|
|
|
dossiers_expirant_count_per_procedure: @dossiers_expirant_count_per_procedure,
|
2024-07-18 14:15:29 +02:00
|
|
|
dossiers_supprimes_count_per_procedure: @dossiers_supprimes_count_per_procedure,
|
2023-07-10 18:08:33 +02:00
|
|
|
followed_dossiers_count_per_procedure: @followed_dossiers_count_per_procedure,
|
|
|
|
procedure_ids_en_cours_with_notifications: @procedure_ids_en_cours_with_notifications,
|
|
|
|
procedure_ids_termines_with_notifications: @procedure_ids_termines_with_notifications }
|
|
|
|
|
|
|
|
= paginate collection, views_prefix: 'shared'
|