52 lines
2.3 KiB
Text
52 lines
2.3 KiB
Text
#procedure-show
|
||
.backoffice-header
|
||
.container.flex
|
||
- if @procedure.logo.present?
|
||
= image_tag @procedure.logo, height: 40, class: 'procedure-logo'
|
||
|
||
.width-100
|
||
%h1= @procedure.libelle
|
||
%ul.tabs
|
||
%li{ class: (@statut == 'a-suivre') ? 'active' : nil }>
|
||
= link_to(procedure_path(@procedure, statut: 'a-suivre')) do
|
||
à suivre
|
||
%span.badge= @a_suivre_dossiers.count
|
||
|
||
%li{ class: (@statut == 'suivis') ? 'active' : nil }>
|
||
= link_to(procedure_path(@procedure, statut: 'suivis')) do
|
||
= t('pluralize.followed', count: @followed_dossiers.count)
|
||
%span.badge= @followed_dossiers.count
|
||
|
||
%li{ class: (@statut == 'traites') ? 'active' : nil }>
|
||
= link_to(procedure_path(@procedure, statut: 'traites')) do
|
||
= t('pluralize.processed', count: @termines_dossiers.count)
|
||
%span.badge= @termines_dossiers.count
|
||
|
||
%li{ class: (@statut == 'tous') ? 'active' : nil }>
|
||
= link_to(procedure_path(@procedure, statut: 'tous')) do
|
||
tous les dossiers
|
||
%span.badge= @all_state_dossiers.count
|
||
|
||
%li{ class: (@statut == 'archives') ? 'active' : nil }>
|
||
= link_to(procedure_path(@procedure, statut: 'archives')) do
|
||
= t('pluralize.archived', count: @archived_dossiers.count)
|
||
%span.badge= @archived_dossiers.count
|
||
|
||
.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
|
||
%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')
|
||
%td.status-col
|
||
= link_to(dossier_path(@procedure, dossier), class: 'big-link') do
|
||
= render partial: 'status', locals: { dossier: dossier }
|
||
%td.follow-col= render partial: 'dossier_actions', locals: { procedure: @procedure, dossier: dossier, dossier_is_followed: @followed_dossiers_id.include?(dossier.id) }
|
||
- else
|
||
%h2 Aucun dossier
|