demarches-normaliennes/app/views/instructeurs/avis/instruction.html.haml

39 lines
1.8 KiB
Text
Raw Normal View History

2017-11-17 23:40:51 +01:00
- content_for(:title, "Avis · Dossier nº #{@dossier.id} (#{@dossier.owner_name})")
= 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
%h2.claimant
2017-09-20 10:51:06 +02:00
Demandeur :
%span.email= @avis.claimant.email
%span.date Demande d'avis envoyée le #{l(@avis.created_at, format: '%d/%m/%y')}
%p.introduction= @avis.introduction
2017-09-06 16:14:03 +02:00
- if @avis.introduction_file.attached?
= render partial: 'shared/attachment/show', locals: { attachment: @avis.introduction_file.attachment }
%br/
2020-05-20 16:32:06 +02:00
= form_for @avis, url: instructeur_avis_path(@avis.procedure, @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
= text_upload_and_render f, @avis.piece_justificative_file
.flex.justify-between.align-baseline
%p.confidentiel.flex
- if @avis.confidentiel?
%span.icon.lock
%span
Cet avis est confidentiel et n'est pas affiché aux autres experts consultés
- else
%span
Cet avis est partagé avec les autres experts
.send-wrapper
= f.submit 'Envoyer votre avis', class: 'button send'
2017-09-06 16:14:03 +02:00
- if !@dossier.termine? && !feature_enabled_for?(:expert_not_allowed_to_invite, @avis.procedure)
2020-05-20 16:32:06 +02:00
= render partial: "instructeurs/shared/avis/form", locals: { url: avis_instructeur_avis_path(@avis.procedure, @avis), linked_dossiers: @dossier.linked_dossiers_for(current_instructeur), must_be_confidentiel: @avis.confidentiel?, avis: @new_avis }
2017-09-06 16:14:03 +02:00
- if @dossier.avis_for(current_instructeur).present?
= render partial: 'instructeurs/shared/avis/list', locals: { avis: @dossier.avis_for(current_instructeur), avis_seen_at: nil }