2019-08-06 11:02:54 +02:00
|
|
|
|
- avis_statut = (@statut == Instructeurs::AvisController::A_DONNER_STATUS) ? 'à donner' : 'rendus'
|
2017-11-17 23:40:51 +01:00
|
|
|
|
- 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
|
2018-08-16 16:30:55 +02:00
|
|
|
|
= tab_item('avis à donner',
|
2020-04-16 17:52:58 +02:00
|
|
|
|
instructeur_all_avis_path(statut: Instructeurs::AvisController::A_DONNER_STATUS),
|
2019-08-06 11:02:54 +02:00
|
|
|
|
active: @statut == Instructeurs::AvisController::A_DONNER_STATUS,
|
2018-08-16 16:30:55 +02:00
|
|
|
|
badge: @avis_a_donner.count,
|
|
|
|
|
notification: @avis_a_donner.any?)
|
2017-09-06 11:21:29 +02:00
|
|
|
|
|
2018-08-16 16:30:55 +02:00
|
|
|
|
= tab_item("avis #{'donné'.pluralize(@avis_donnes.count)}",
|
2020-04-16 17:52:58 +02:00
|
|
|
|
instructeur_all_avis_path(statut: Instructeurs::AvisController::DONNES_STATUS),
|
2019-08-06 11:02:54 +02:00
|
|
|
|
active: @statut == Instructeurs::AvisController::DONNES_STATUS,
|
2018-08-16 16:30:55 +02:00
|
|
|
|
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
|
2018-09-05 14:48:42 +02:00
|
|
|
|
%th Démarche
|
2017-12-15 11:26:57 +01:00
|
|
|
|
%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
|
2019-08-06 11:02:54 +02:00
|
|
|
|
= link_to(instructeur_avis_path(avis), class: 'cell-link') do
|
2017-12-15 11:26:57 +01:00
|
|
|
|
%span.icon.folder
|
|
|
|
|
#{avis.dossier.id}
|
2019-08-06 11:02:54 +02:00
|
|
|
|
%td= link_to(avis.dossier.user.email, instructeur_avis_path(avis), class: 'cell-link')
|
|
|
|
|
%td= link_to(avis.dossier.procedure.libelle, instructeur_avis_path(avis), class: 'cell-link')
|
2017-12-15 11:26:57 +01:00
|
|
|
|
= paginate(@avis)
|
|
|
|
|
- else
|
|
|
|
|
%h2.empty-text Aucun avis
|