2021-02-09 10:24:13 +01:00
|
|
|
|
- avis_statut = (@statut == Experts::AvisController::A_DONNER_STATUS) ? 'à donner' : 'rendus'
|
|
|
|
|
- content_for(:title, "Avis #{avis_statut}")
|
|
|
|
|
|
|
|
|
|
#procedure-show
|
|
|
|
|
.sub-header
|
2023-06-29 15:03:22 +02:00
|
|
|
|
.fr-container.flex
|
2021-02-09 10:24:13 +01:00
|
|
|
|
|
|
|
|
|
.procedure-logo{ style: "background-image: url(#{@procedure.logo_url})",
|
|
|
|
|
role: 'img', 'aria-label': "logo de la démarche #{@procedure.libelle}" }
|
|
|
|
|
|
|
|
|
|
.procedure-header
|
2023-06-29 15:03:22 +02:00
|
|
|
|
%h1.fr-h3= procedure_libelle @procedure
|
2024-03-15 17:41:30 +01:00
|
|
|
|
= link_to t('.management', procedure_id: @procedure.id), notification_settings_expert_procedure_path(@procedure), class: 'header-link'
|
|
|
|
|
|
|
|
|
|
|
2021-02-09 10:24:13 +01:00
|
|
|
|
|
2023-11-09 15:02:43 +01:00
|
|
|
|
%nav.fr-tabs
|
2023-11-14 12:05:17 +01:00
|
|
|
|
%ul.fr-tabs__list{ role: 'tablist' }
|
2021-12-24 18:10:50 +01:00
|
|
|
|
= tab_item('avis à donner',
|
|
|
|
|
procedure_expert_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?)
|
2021-02-09 10:24:13 +01:00
|
|
|
|
|
2021-12-24 18:10:50 +01:00
|
|
|
|
= tab_item("avis #{'donné'.pluralize(@avis_donnes.count)}",
|
|
|
|
|
procedure_expert_avis_index_path(statut: Instructeurs::AvisController::DONNES_STATUS),
|
|
|
|
|
active: @statut == Instructeurs::AvisController::DONNES_STATUS,
|
|
|
|
|
badge: @avis_donnes.count)
|
2021-02-09 10:24:13 +01:00
|
|
|
|
|
2023-06-29 15:03:22 +02:00
|
|
|
|
.fr-container
|
2021-02-09 10:24:13 +01:00
|
|
|
|
- if @avis.present?
|
2024-11-12 17:04:30 +01:00
|
|
|
|
.fr-table.fr-table--no-scroll.fr-table--bordered
|
|
|
|
|
.fr-table__wrapper
|
|
|
|
|
.fr-table__container
|
|
|
|
|
.fr-table__content
|
|
|
|
|
%table.dossiers-table
|
|
|
|
|
%thead
|
|
|
|
|
%tr
|
|
|
|
|
%th Nº dossier
|
|
|
|
|
%th Demandeur
|
|
|
|
|
%th Démarche
|
|
|
|
|
%tbody
|
|
|
|
|
- @avis.each do |avis|
|
|
|
|
|
%tr
|
2024-11-13 18:40:09 +01:00
|
|
|
|
%td.fr-cell--numeric
|
2024-11-12 17:04:30 +01:00
|
|
|
|
= link_to(expert_avis_path(avis.procedure, avis), class: 'cell-link') do
|
|
|
|
|
= avis.dossier.id
|
|
|
|
|
%td= link_to(avis.dossier.user_email_for(:display), expert_avis_path(avis.procedure, avis), class: 'cell-link')
|
|
|
|
|
%td= link_to(avis.procedure.libelle, expert_avis_path(avis.procedure, avis), class: 'cell-link')
|
|
|
|
|
.fr-table__footer
|
|
|
|
|
.fr-table__footer--start
|
|
|
|
|
.fr-table__footer--middle
|
|
|
|
|
= paginate @avis, views_prefix: 'shared'
|
|
|
|
|
.fr-table__footer--end.flex-no-grow
|
2021-02-09 10:24:13 +01:00
|
|
|
|
- else
|
|
|
|
|
%h2.empty-text Aucun avis
|