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}")
|
|
|
|
|
|
2020-06-24 22:25:10 +02:00
|
|
|
|
#procedure-show
|
|
|
|
|
.sub-header
|
|
|
|
|
.container.flex
|
2017-09-06 11:21:29 +02:00
|
|
|
|
|
2020-06-24 22:25:10 +02:00
|
|
|
|
.procedure-logo{ style: "background-image: url(#{@procedure.logo_url})",
|
|
|
|
|
role: 'img', 'aria-label': "logo de la démarche #{@procedure.libelle}" }
|
|
|
|
|
|
|
|
|
|
.procedure-header
|
|
|
|
|
%h1= procedure_libelle @procedure
|
|
|
|
|
|
2021-12-24 18:10:50 +01:00
|
|
|
|
%nav.tabs
|
|
|
|
|
%ul
|
|
|
|
|
= tab_item('avis à donner',
|
|
|
|
|
procedure_instructeur_avis_index_path(statut: Instructeurs::AvisController::A_DONNER_STATUS),
|
|
|
|
|
active: @statut == Instructeurs::AvisController::A_DONNER_STATUS,
|
|
|
|
|
badge: @avis_a_donner.count,
|
|
|
|
|
notification: @avis_a_donner.any?)
|
2020-06-24 22:25:10 +02:00
|
|
|
|
|
2021-12-24 18:10:50 +01:00
|
|
|
|
= tab_item("avis #{'donné'.pluralize(@avis_donnes.count)}",
|
|
|
|
|
procedure_instructeur_avis_index_path(statut: Instructeurs::AvisController::DONNES_STATUS),
|
|
|
|
|
active: @statut == Instructeurs::AvisController::DONNES_STATUS,
|
|
|
|
|
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
|
2020-05-20 16:32:06 +02:00
|
|
|
|
= link_to(instructeur_avis_path(avis.procedure, avis), class: 'cell-link') do
|
2017-12-15 11:26:57 +01:00
|
|
|
|
%span.icon.folder
|
|
|
|
|
#{avis.dossier.id}
|
2021-05-01 12:20:24 +02:00
|
|
|
|
%td= link_to(avis.dossier.user_email_for(:display), instructeur_avis_path(avis.procedure, avis), class: 'cell-link')
|
2020-05-20 16:32:06 +02:00
|
|
|
|
%td= link_to(avis.procedure.libelle, instructeur_avis_path(avis.procedure, avis), class: 'cell-link')
|
2017-12-15 11:26:57 +01:00
|
|
|
|
= paginate(@avis)
|
|
|
|
|
- else
|
|
|
|
|
%h2.empty-text Aucun avis
|