2020-07-27 16:06:34 +02:00
|
|
|
.sub-header
|
2024-05-02 16:01:16 +02:00
|
|
|
.flex.fr-container
|
|
|
|
%h1.fr-h3 Mes démarches
|
|
|
|
.procedure-admin-listing-container.fr-mt-1v
|
|
|
|
= link_to "Nouvelle Démarche", new_from_existing_admin_procedures_path, id: 'new-procedure', class: 'fr-btn'
|
2022-10-25 17:06:27 +02:00
|
|
|
.fr-container
|
2020-07-28 15:15:56 +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-07-10 18:08:33 +02:00
|
|
|
= tab_item(t('pluralize.published', count: @procedures_publiees_count), admin_procedures_path(statut: 'publiees'), active: @statut == 'publiees', badge: number_with_html_delimiter(@procedures_publiees_count))
|
2024-05-03 10:18:05 +02:00
|
|
|
= tab_item('en test', admin_procedures_path(statut: 'brouillons'), active: @statut == 'brouillons', badge: number_with_html_delimiter(@procedures_draft_count))
|
2023-07-10 18:08:33 +02:00
|
|
|
= tab_item(t('pluralize.closed', count: @procedures_closed_count), admin_procedures_path(statut: 'archivees'), active: @statut == 'archivees', badge: number_with_html_delimiter(@procedures_closed_count))
|
|
|
|
= tab_item(t('pluralize.deleted', count: @procedures_deleted_count), admin_procedures_path(statut: 'supprimees'), active: @statut === 'supprimees', badge: number_with_html_delimiter(@procedures_deleted_count))
|
2020-07-27 16:06:34 +02:00
|
|
|
|
2022-10-25 17:06:27 +02:00
|
|
|
.fr-container#procedures{ data: { item_count: @statut === "publiees" ? @procedures_publiees_count : @statut === "brouillons" ? @procedures_draft_count : @procedures_closed_count } }
|
2020-07-27 16:06:34 +02:00
|
|
|
- if @statut === "publiees"
|
|
|
|
= render partial: "procedures_list", locals: { procedures: @procedures_publiees }
|
2023-04-21 17:19:17 +02:00
|
|
|
= paginate @procedures_publiees, views_prefix: 'shared'
|
2020-07-27 16:06:34 +02:00
|
|
|
|
|
|
|
- if @statut === "brouillons"
|
|
|
|
= render partial: "procedures_list", locals: { procedures: @procedures_draft }
|
2023-04-21 17:19:17 +02:00
|
|
|
= paginate @procedures_draft, views_prefix: 'shared'
|
2020-07-28 15:15:56 +02:00
|
|
|
|
2020-07-27 16:06:34 +02:00
|
|
|
- if @statut === "archivees"
|
2020-07-28 15:15:56 +02:00
|
|
|
= render partial: "procedures_list", locals: { procedures: @procedures_closed }
|
2023-04-21 17:19:17 +02:00
|
|
|
= paginate @procedures_closed, views_prefix: 'shared'
|
2022-05-10 13:59:25 +02:00
|
|
|
|
|
|
|
- if @statut === "supprimees"
|
|
|
|
= render partial: "procedures_list", locals: { procedures: @procedures_deleted }
|
2023-04-21 17:19:17 +02:00
|
|
|
= paginate @procedures_deleted, views_prefix: 'shared'
|