add instructeur feedback on accuse de lecture agreement
This commit is contained in:
parent
a29719a15c
commit
c6e2e6445c
6 changed files with 48 additions and 0 deletions
|
@ -1184,6 +1184,10 @@ class Dossier < ApplicationRecord
|
|||
procedure.accuse_lecture? && termine? && accuse_lecture_agreement_at.blank?
|
||||
end
|
||||
|
||||
def termine_and_accuse_lecture?
|
||||
procedure.accuse_lecture? && termine?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def champs_by_public_id
|
||||
|
|
|
@ -5,6 +5,15 @@
|
|||
.fr-container.counter-start-header-section.dossier-show{ class: class_names("dossier-show-instructeur" => profile =="instructeur") }
|
||||
.fr-grid-row.fr-grid-row--center
|
||||
.fr-col-12.fr-col-xl-8
|
||||
- if profile == 'instructeur' && dossier.termine_and_accuse_lecture?
|
||||
= render Dsfr::CalloutComponent.new(title: nil) do |c|
|
||||
- c.with_html_body do
|
||||
= t('views.shared.dossiers.demande.accuse_lecture')
|
||||
- if dossier.accuse_lecture_agreement_at.present?
|
||||
= t('views.shared.dossiers.demande.accuse_lecture_with_agreement', agreement: l(dossier.accuse_lecture_agreement_at, format: :long))
|
||||
- else
|
||||
= t('views.shared.dossiers.demande.accuse_lecture_without_agreement')
|
||||
|
||||
%h2.fr-h6.fr-background-alt--grey.fr-mb-0
|
||||
.flex-grow.fr-py-3v.fr-px-2w= t('views.shared.dossiers.demande.en_construction')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue