2017-11-17 23:40:51 +01:00
|
|
|
|
- content_for(:title, "Avis · Dossier nº #{@dossier.id} (#{@dossier.owner_name})")
|
|
|
|
|
|
2017-12-15 11:26:57 +01:00
|
|
|
|
= render partial: 'header', locals: { avis: @avis, dossier: @dossier }
|
2017-09-06 16:14:03 +02:00
|
|
|
|
|
|
|
|
|
.container
|
|
|
|
|
%section.give-avis
|
2017-12-12 16:53:19 +01:00
|
|
|
|
%h1.tab-title Donner votre avis
|
2017-09-20 10:52:48 +02:00
|
|
|
|
%h2.claimant
|
2017-09-20 10:51:06 +02:00
|
|
|
|
Demandeur :
|
|
|
|
|
%span.email= @avis.claimant.email
|
2017-09-20 10:52:48 +02:00
|
|
|
|
%span.date Demande d'avis envoyée le #{I18n.l(@avis.created_at.localtime, format: '%d/%m/%y')}
|
|
|
|
|
%p.introduction= @avis.introduction
|
2017-09-06 16:14:03 +02:00
|
|
|
|
|
2018-02-21 15:19:04 +01:00
|
|
|
|
= form_for @avis, url: gestionnaire_avis_path(@avis), html: { class: 'form' } do |f|
|
2017-09-06 16:14:03 +02:00
|
|
|
|
= f.text_area :answer, rows: 3, placeholder: 'Votre avis', required: true
|
2017-09-20 10:52:48 +02:00
|
|
|
|
.flex.justify-between.align-baseline
|
2017-12-18 17:20:43 +01:00
|
|
|
|
%p.confidentiel.flex
|
2017-12-12 14:51:44 +01:00
|
|
|
|
%span.icon.lock
|
2017-12-18 17:20:43 +01:00
|
|
|
|
%span
|
|
|
|
|
Cet avis est confidentiel et n'est pas affiché aux autres experts consultés
|
2017-09-20 10:52:48 +02:00
|
|
|
|
.send-wrapper
|
|
|
|
|
= f.submit 'Envoyer votre avis', class: 'button send'
|
2017-09-06 16:14:03 +02:00
|
|
|
|
|
2017-12-15 13:23:22 +01:00
|
|
|
|
= render partial: "new_gestionnaire/shared/avis/form", locals: { url: avis_avis_path(@avis), must_be_confidentiel: @avis.confidentiel? }
|
2017-09-06 16:14:03 +02:00
|
|
|
|
|
2017-12-15 13:21:59 +01:00
|
|
|
|
= render partial: 'new_gestionnaire/shared/avis/list', locals: { avis: @dossier.avis_for(current_gestionnaire), avis_seen_at: nil }
|