2017-09-06 11:21:29 +02:00
|
|
|
|
#avis-index
|
|
|
|
|
.backoffice-header
|
|
|
|
|
.container.flex
|
|
|
|
|
.width-100
|
|
|
|
|
%h1 Avis
|
|
|
|
|
%ul.tabs
|
|
|
|
|
%li{ class: (@statut == NewGestionnaire::AvisController::A_DONNER_STATUS) ? 'active' : nil }>
|
|
|
|
|
= link_to(avis_index_path(statut: NewGestionnaire::AvisController::A_DONNER_STATUS)) do
|
|
|
|
|
avis à donner
|
|
|
|
|
%span.badge= @avis_a_donner.count
|
|
|
|
|
|
|
|
|
|
%li{ class: (@statut == NewGestionnaire::AvisController::DONNES_STATUS) ? 'active' : nil }>
|
|
|
|
|
= link_to(avis_index_path(statut: NewGestionnaire::AvisController::DONNES_STATUS)) do
|
|
|
|
|
avis #{'donné'.pluralize(@avis_donnes.count)}
|
|
|
|
|
%span.badge= @avis_donnes.count
|
|
|
|
|
|
|
|
|
|
.container
|
|
|
|
|
- if @avis.present?
|
|
|
|
|
%table.table.dossiers-table.hoverable
|
|
|
|
|
%thead
|
|
|
|
|
%tr
|
|
|
|
|
%th.number-col Nº dossier
|
|
|
|
|
%th Demandeur
|
|
|
|
|
%th Procédure
|
|
|
|
|
%tbody
|
|
|
|
|
- @avis.each do |avis|
|
|
|
|
|
%tr
|
|
|
|
|
%td.number-col
|
|
|
|
|
= link_to(avis_path(avis), class: 'cell-link') do
|
|
|
|
|
%i.folder
|
|
|
|
|
#{avis.dossier.id}
|
|
|
|
|
%td= link_to(avis.dossier.user.email, avis_path(avis), class: 'cell-link')
|
|
|
|
|
%td= link_to(avis.dossier.procedure.libelle, avis_path(avis), class: 'cell-link')
|
|
|
|
|
- else
|
2017-09-20 17:07:09 +02:00
|
|
|
|
%h2.empty-text Aucun avis
|