2017-11-17 23:40:51 +01:00
|
|
|
|
- avis_statut = (@statut == NewGestionnaire::AvisController::A_DONNER_STATUS) ? 'à donner' : 'rendus'
|
|
|
|
|
- content_for(:title, "Avis #{avis_statut}")
|
|
|
|
|
|
2018-04-23 17:22:20 +02:00
|
|
|
|
.sub-header
|
2017-12-15 11:26:57 +01:00
|
|
|
|
.container.flex
|
|
|
|
|
.width-100
|
|
|
|
|
%h1.tab-title Avis
|
|
|
|
|
%ul.tabs
|
|
|
|
|
%li{ class: (@statut == NewGestionnaire::AvisController::A_DONNER_STATUS) ? 'active' : nil }>
|
2018-02-21 15:45:21 +01:00
|
|
|
|
= link_to(gestionnaire_avis_index_path(statut: NewGestionnaire::AvisController::A_DONNER_STATUS)) do
|
2017-12-15 11:26:57 +01:00
|
|
|
|
avis à donner
|
|
|
|
|
%span.badge= @avis_a_donner.count
|
|
|
|
|
- if @avis_a_donner.any?
|
|
|
|
|
%span.notifications
|
2017-09-06 11:21:29 +02:00
|
|
|
|
|
2017-12-15 11:26:57 +01:00
|
|
|
|
%li{ class: (@statut == NewGestionnaire::AvisController::DONNES_STATUS) ? 'active' : nil }>
|
2018-02-21 15:45:21 +01:00
|
|
|
|
= link_to(gestionnaire_avis_index_path(statut: NewGestionnaire::AvisController::DONNES_STATUS)) do
|
2017-12-15 11:26:57 +01:00
|
|
|
|
avis #{'donné'.pluralize(@avis_donnes.count)}
|
|
|
|
|
%span.badge= @avis_donnes.count
|
2017-09-06 11:21:29 +02:00
|
|
|
|
|
2017-12-15 11:26:57 +01:00
|
|
|
|
.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|
|
2017-09-06 11:21:29 +02:00
|
|
|
|
%tr
|
2017-12-15 11:26:57 +01:00
|
|
|
|
%td.number-col
|
2018-02-21 15:19:04 +01:00
|
|
|
|
= link_to(gestionnaire_avis_path(avis), class: 'cell-link') do
|
2017-12-15 11:26:57 +01:00
|
|
|
|
%span.icon.folder
|
|
|
|
|
#{avis.dossier.id}
|
2018-02-21 15:19:04 +01:00
|
|
|
|
%td= link_to(avis.dossier.user.email, gestionnaire_avis_path(avis), class: 'cell-link')
|
|
|
|
|
%td= link_to(avis.dossier.procedure.libelle, gestionnaire_avis_path(avis), class: 'cell-link')
|
2017-12-15 11:26:57 +01:00
|
|
|
|
= paginate(@avis)
|
|
|
|
|
- else
|
|
|
|
|
%h2.empty-text Aucun avis
|