13 lines
663 B
Text
13 lines
663 B
Text
- if current_gestionnaire
|
|
- avis_for_dossier = current_gestionnaire.avis.for_dossier(dossier_facade.dossier.id).by_latest
|
|
- if avis_for_dossier.any?
|
|
.panel.panel-default
|
|
.panel-body
|
|
%h4 Votre avis est sollicité sur le dossier :
|
|
- avis_for_dossier.each do |avis|
|
|
%hr
|
|
%p= avis.introduction
|
|
= simple_form_for avis, url: backoffice_dossier_avis_path(dossier_facade.dossier, avis) do |f|
|
|
= f.input 'answer', label: "Votre avis"
|
|
- submit_label = if avis.answer then "Modifier votre avis" else "Enregistrer votre avis" end
|
|
= f.submit submit_label, class: 'btn btn-default'
|