2017-07-11 16:09:03 +02:00
|
|
|
|
#procedure-show
|
2017-07-18 15:12:55 +02:00
|
|
|
|
.backoffice-header
|
|
|
|
|
.container.flex
|
2017-07-11 16:09:03 +02:00
|
|
|
|
- if @procedure.logo.present?
|
|
|
|
|
= image_tag @procedure.logo, height: 40, class: 'procedure-logo'
|
|
|
|
|
|
|
|
|
|
.right
|
|
|
|
|
%h1= @procedure.libelle
|
|
|
|
|
%ul.dossiers-categories
|
|
|
|
|
%li{ class: (@statut == 'a-suivre') ? 'active' : nil }>
|
|
|
|
|
= link_to(procedure_path(@procedure, statut: 'a-suivre')) do
|
|
|
|
|
%span.dossiers-count= @a_suivre_dossiers.count
|
|
|
|
|
à suivre
|
|
|
|
|
|
|
|
|
|
%li{ class: (@statut == 'suivis') ? 'active' : nil }>
|
|
|
|
|
= link_to(procedure_path(@procedure, statut: 'suivis')) do
|
|
|
|
|
%span.dossiers-count= @followed_dossiers.count
|
|
|
|
|
= t('pluralize.followed', count: @followed_dossiers.count)
|
|
|
|
|
|
|
|
|
|
%li{ class: (@statut == 'traites') ? 'active' : nil }>
|
|
|
|
|
= link_to(procedure_path(@procedure, statut: 'traites')) do
|
|
|
|
|
%span.dossiers-count= @termines_dossiers.count
|
|
|
|
|
= t('pluralize.processed', count: @termines_dossiers.count)
|
|
|
|
|
|
|
|
|
|
%li{ class: (@statut == 'tous') ? 'active' : nil }>
|
|
|
|
|
= link_to(procedure_path(@procedure, statut: 'tous')) do
|
|
|
|
|
%span.dossiers-count= @all_state_dossiers.count
|
|
|
|
|
tous les dossiers
|
|
|
|
|
|
|
|
|
|
%li{ class: (@statut == 'archives') ? 'active' : nil }>
|
|
|
|
|
= link_to(procedure_path(@procedure, statut: 'archives')) do
|
|
|
|
|
%span.dossiers-count= @archived_dossiers.count
|
|
|
|
|
= t('pluralize.archived', count: @archived_dossiers.count)
|
2017-07-11 15:40:09 +02:00
|
|
|
|
|
|
|
|
|
.container
|
|
|
|
|
- if @dossiers.present?
|
|
|
|
|
%table.dossiers-table
|
|
|
|
|
%tr
|
|
|
|
|
%th.number-col Nº dossier
|
|
|
|
|
%th Demandeur
|
|
|
|
|
%th.status-col Statut
|
|
|
|
|
%th.follow-col
|
|
|
|
|
- @dossiers.each do |dossier|
|
|
|
|
|
%tr
|
2017-07-06 16:33:36 +02:00
|
|
|
|
%td.number-col= link_to(dossier.id, dossier_path(@procedure, dossier), class: 'big-link')
|
|
|
|
|
%td= link_to(dossier.user.email, dossier_path(@procedure, dossier), class: 'big-link')
|
2017-07-11 15:40:09 +02:00
|
|
|
|
%td.status-col
|
2017-07-06 16:33:36 +02:00
|
|
|
|
= link_to(dossier_path(@procedure, dossier), class: 'big-link') do
|
2017-07-11 15:43:20 +02:00
|
|
|
|
= render partial: 'status', locals: { dossier: dossier }
|
2017-07-11 15:58:31 +02:00
|
|
|
|
%td.follow-col= render partial: 'dossier_actions', locals: { procedure: @procedure, dossier: dossier }
|
2017-07-11 15:40:09 +02:00
|
|
|
|
- else
|
|
|
|
|
%h2 Aucun dossier
|