demarches-normaliennes/app/views/instructeurs/procedures/_tabs.html.haml

40 lines
1.8 KiB
Text
Raw Normal View History

%nav.fr-tabs.mt-3
2024-11-19 21:17:05 +01:00
%ul.fr-tabs__list.fr-pl-0{ role: 'tablist' }
2023-09-20 14:00:18 +02:00
= tab_item(t(tab_i18n_key_from_status('a-suivre')),
2021-12-24 18:10:50 +01:00
instructeur_procedure_path(procedure, statut: 'a-suivre'),
active: statut == 'a-suivre',
badge: number_with_html_delimiter(a_suivre_count))
2023-09-20 14:00:18 +02:00
= tab_item(t(tab_i18n_key_from_status('suivis'), count: suivis_count),
2021-12-24 18:10:50 +01:00
instructeur_procedure_path(procedure, statut: 'suivis'),
active: statut == 'suivis',
badge: number_with_html_delimiter(suivis_count),
notification: has_en_cours_notifications)
2023-09-20 14:00:18 +02:00
= tab_item(t(tab_i18n_key_from_status('traites'), count: traites_count),
2021-12-24 18:10:50 +01:00
instructeur_procedure_path(procedure, statut: 'traites'),
active: statut == 'traites',
badge: number_with_html_delimiter(traites_count),
notification: has_termine_notifications)
2023-09-20 14:00:18 +02:00
= tab_item(t(tab_i18n_key_from_status('tous')),
2021-12-24 18:10:50 +01:00
instructeur_procedure_path(procedure, statut: 'tous'),
active: statut == 'tous',
badge: number_with_html_delimiter(tous_count))
= tab_item(t(tab_i18n_key_from_status('supprimes'), count: supprimes_count),
instructeur_procedure_path(procedure, statut: 'supprimes'),
active: statut == 'supprimes',
badge: number_with_html_delimiter(supprimes_count))
2022-01-27 17:02:02 +01:00
2021-12-24 18:10:50 +01:00
- if procedure.procedure_expires_when_termine_enabled
2023-09-20 14:00:18 +02:00
= tab_item(t(tab_i18n_key_from_status('expirant'), count: expirant_count),
2021-12-24 18:10:50 +01:00
instructeur_procedure_path(procedure, statut: 'expirant'),
active: statut == 'expirant',
badge: number_with_html_delimiter(expirant_count))
2023-09-20 14:00:18 +02:00
= tab_item(t(tab_i18n_key_from_status('archives'), count: archives_count),
2021-12-24 18:10:50 +01:00
instructeur_procedure_path(procedure, statut: 'archives'),
active: statut == 'archives',
badge: number_with_html_delimiter(archives_count))