2018-04-23 17:22:20 +02:00
|
|
|
|
.dossiers-headers.sub-header
|
2018-04-03 10:49:16 +02:00
|
|
|
|
.container
|
2018-06-26 18:04:04 +02:00
|
|
|
|
= link_to "Commencer une nouvelle démarche", new_demarche_url, class: "button secondary new-demarche"
|
|
|
|
|
|
2018-06-20 15:29:52 +02:00
|
|
|
|
- if @dossiers_invites.count == 0
|
|
|
|
|
%h1.page-title Mes 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-04-03 10:49:16 +02:00
|
|
|
|
%li{ class: (@current_tab == 'mes-dossiers') ? 'active' : nil }>
|
|
|
|
|
= link_to(dossiers_path(current_tab: 'mes-dossiers')) do
|
|
|
|
|
mes dossiers
|
|
|
|
|
%li{ class: (@current_tab == 'dossiers-invites') ? 'active' : nil }>
|
|
|
|
|
= link_to(dossiers_path(current_tab: 'dossiers-invites')) do
|
|
|
|
|
dossiers invités
|
2018-03-28 15:02:37 +02:00
|
|
|
|
|
2018-04-03 10:49:16 +02:00
|
|
|
|
.container
|
2018-06-25 15:14:22 +02:00
|
|
|
|
- if @dossiers.present?
|
2018-06-26 17:00:01 +02:00
|
|
|
|
- if @dossiers.total_pages >= 2
|
|
|
|
|
.card.feedback
|
|
|
|
|
.card-title Nous avons redesigné la liste des dossiers.
|
|
|
|
|
%p
|
|
|
|
|
Une suggestion pour améliorer cette page ? Votre avis nous intéresse ! Écrivez-nous à
|
|
|
|
|
= mail_to CONTACT_EMAIL, CONTACT_EMAIL, subject: "Amélioration de la liste des dossiers"
|
|
|
|
|
\.
|
|
|
|
|
|
2018-06-25 15:14:22 +02:00
|
|
|
|
%table.table.dossiers-table.hoverable
|
|
|
|
|
%thead
|
|
|
|
|
%tr
|
|
|
|
|
%th.notification-col
|
|
|
|
|
%th.number-col Nº dossier
|
|
|
|
|
%th Procédure
|
|
|
|
|
%th.status-col Statut
|
|
|
|
|
%th.updated-at-col Mis à jour
|
|
|
|
|
%tbody
|
|
|
|
|
- @dossiers.each do |dossier|
|
|
|
|
|
%tr
|
|
|
|
|
%td.folder-col
|
2018-06-28 17:19:22 +02:00
|
|
|
|
= link_to(url_for_dossier(dossier), class: 'cell-link') do
|
2018-06-25 15:14:22 +02:00
|
|
|
|
%span.icon.folder
|
|
|
|
|
%td.number-col
|
2018-06-28 17:19:22 +02:00
|
|
|
|
= link_to(url_for_dossier(dossier), class: 'cell-link') do
|
2018-06-25 15:14:22 +02:00
|
|
|
|
= dossier.id
|
|
|
|
|
%td
|
2018-06-28 17:19:22 +02:00
|
|
|
|
= link_to(url_for_dossier(dossier), class: 'cell-link') do
|
2018-06-25 15:14:22 +02:00
|
|
|
|
= dossier.procedure.libelle
|
|
|
|
|
%td.status-col
|
2018-06-28 17:19:22 +02:00
|
|
|
|
= link_to(url_for_dossier(dossier), class: 'cell-link') do
|
2018-06-25 15:14:22 +02:00
|
|
|
|
= render partial: 'shared/dossiers/status', locals: { dossier: dossier }
|
|
|
|
|
%td.updated-at-col
|
2018-06-28 17:19:22 +02:00
|
|
|
|
= link_to(url_for_dossier(dossier), class: 'cell-link') do
|
2018-06-25 15:14:22 +02:00
|
|
|
|
= dossier.updated_at.localtime.strftime("%d/%m/%Y")
|
|
|
|
|
= paginate(@dossiers)
|
2018-03-28 15:02:37 +02:00
|
|
|
|
|
2018-06-25 15:14:22 +02:00
|
|
|
|
- else
|
2018-06-26 18:04:04 +02:00
|
|
|
|
.dossiers-table-empty
|
|
|
|
|
%h2.empty-text Aucun dossier.
|
2018-06-28 11:14:02 +02:00
|
|
|
|
%p.empty-text-details Pour l’instant vous n’avez commencé aucune démarche.
|
2018-06-26 18:04:04 +02:00
|
|
|
|
= link_to "Commencer une nouvelle démarche", new_demarche_url, class: "button primary"
|