2020-07-27 16:06:34 +02:00
|
|
|
.sub-header
|
2020-07-28 15:15:56 +02:00
|
|
|
.procedure-admin-listing-container
|
|
|
|
= link_to "Nouvelle Démarche", new_admin_procedure_path, id: 'new-procedure', class: 'button primary'
|
|
|
|
.container
|
|
|
|
|
2020-07-27 16:06:34 +02:00
|
|
|
%ul.tabs
|
2020-07-28 15:15:56 +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))
|
|
|
|
= tab_item('En test', admin_procedures_path(statut: 'brouillons'), active: @statut == 'brouillons', badge: number_with_html_delimiter(@procedures_draft_count))
|
|
|
|
= 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))
|
2020-07-27 16:06:34 +02:00
|
|
|
|
2020-07-28 15:15:56 +02:00
|
|
|
.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 }
|
2020-07-28 15:15:56 +02:00
|
|
|
= paginate @procedures_publiees
|
2020-07-27 16:06:34 +02:00
|
|
|
|
|
|
|
- if @statut === "brouillons"
|
|
|
|
= render partial: "procedures_list", locals: { procedures: @procedures_draft }
|
2020-07-28 15:15:56 +02:00
|
|
|
= paginate @procedures_draft
|
|
|
|
|
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 }
|
|
|
|
= paginate @procedures_closed
|