2020-04-03 17:15:35 +02:00
|
|
|
- if @search_terms.present?
|
|
|
|
- content_for(:title, "Recherche : #{@search_terms}")
|
|
|
|
- else
|
|
|
|
- content_for(:title, "Dossiers")
|
2018-08-29 17:09:48 +02:00
|
|
|
|
2018-09-12 13:29:15 +02:00
|
|
|
- content_for :footer do
|
2019-03-25 10:53:45 +01:00
|
|
|
= render partial: "users/dossiers/index_footer"
|
2018-09-12 13:29:15 +02:00
|
|
|
|
2018-04-23 17:22:20 +02:00
|
|
|
.dossiers-headers.sub-header
|
2018-04-03 10:49:16 +02:00
|
|
|
.container
|
2020-04-03 17:15:35 +02:00
|
|
|
- if @search_terms.present?
|
|
|
|
%h1.page-title Résultat de la recherche pour « #{@search_terms} »
|
2020-11-17 13:25:35 +01:00
|
|
|
= render partial: "dossiers_list", locals: { dossiers: @dossiers }
|
2018-04-03 10:49:16 +02:00
|
|
|
|
2018-06-20 15:29:52 +02:00
|
|
|
- else
|
|
|
|
%h1.page-title Dossiers
|
|
|
|
%ul.tabs
|
2018-08-16 16:30:55 +02:00
|
|
|
= tab_item('mes dossiers',
|
2020-11-17 13:25:35 +01:00
|
|
|
dossiers_path(statut: 'mes-dossiers'),
|
|
|
|
active: @statut == 'mes-dossiers',
|
|
|
|
badge: number_with_html_delimiter(@user_dossiers.count))
|
2018-08-16 16:30:55 +02:00
|
|
|
|
|
|
|
= tab_item('dossiers invités',
|
2020-11-17 13:25:35 +01:00
|
|
|
dossiers_path(statut: 'dossiers-invites'),
|
|
|
|
active: @statut == 'dossiers-invites',
|
|
|
|
badge: number_with_html_delimiter(@dossiers_invites.count))
|
|
|
|
|
|
|
|
= tab_item('dossiers supprimés',
|
|
|
|
dossiers_path(statut: 'dossiers-supprimes'),
|
|
|
|
active: @statut == 'dossiers-supprimes',
|
|
|
|
badge: number_with_html_delimiter(@dossiers_supprimes.count))
|
|
|
|
|
2018-03-28 15:02:37 +02:00
|
|
|
|
2018-04-03 10:49:16 +02:00
|
|
|
.container
|
2020-11-17 13:25:35 +01:00
|
|
|
- if @statut === "mes-dossiers"
|
|
|
|
= render partial: "dossiers_list", locals: { dossiers: @user_dossiers }
|
2018-03-28 15:02:37 +02:00
|
|
|
|
2020-11-17 13:25:35 +01:00
|
|
|
- if @statut === "dossiers-invites"
|
|
|
|
= render partial: "dossiers_list", locals: { dossiers: @dossiers_invites }
|
2018-08-13 14:39:58 +02:00
|
|
|
|
2020-11-17 13:25:35 +01:00
|
|
|
- if @statut === "dossiers-supprimes"
|
|
|
|
= render partial: "dossiers_list", locals: { dossiers: @dossiers_supprimes }
|