2018-04-03 10:49:16 +02:00
|
|
|
.dossiers-headers.accompagnateur-header
|
|
|
|
.container
|
|
|
|
%h1.page-title Les dossiers
|
|
|
|
|
|
|
|
%ul.tabs
|
|
|
|
- if @user_dossiers.count > 0
|
|
|
|
%li{ class: (@current_tab == 'mes-dossiers') ? 'active' : nil }>
|
|
|
|
= link_to(dossiers_path(current_tab: 'mes-dossiers')) do
|
|
|
|
mes dossiers
|
|
|
|
- if @dossiers_invites.count > 0
|
|
|
|
%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-03-28 15:02:37 +02:00
|
|
|
%table.table.dossiers-table.hoverable
|
|
|
|
%thead
|
|
|
|
%tr
|
2018-03-30 18:22:28 +02:00
|
|
|
%th.notification-col
|
2018-03-28 15:02:37 +02:00
|
|
|
%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
|
|
|
|
= link_to(modifier_dossier_path(dossier), class: 'cell-link') do
|
|
|
|
%span.icon.folder
|
|
|
|
%td.number-col
|
|
|
|
= link_to(modifier_dossier_path(dossier), class: 'cell-link') do
|
|
|
|
= dossier.id
|
|
|
|
%td
|
|
|
|
= link_to(modifier_dossier_path(dossier), class: 'cell-link') do
|
|
|
|
= dossier.procedure.libelle
|
|
|
|
%td.status-col
|
|
|
|
= link_to(modifier_dossier_path(dossier), class: 'cell-link') do
|
|
|
|
= render partial: 'shared/dossiers/status', locals: { dossier: dossier }
|
|
|
|
%td.updated-at-col
|
|
|
|
= link_to(modifier_dossier_path(dossier), class: 'cell-link') do
|
|
|
|
= dossier.updated_at.localtime.strftime("%d/%m/%Y")
|
|
|
|
|
|
|
|
= paginate(@dossiers)
|