add mention if user_deleted and move dossier info back to info_generales
This commit is contained in:
parent
90a7ecef52
commit
76947a5ccf
5 changed files with 19 additions and 26 deletions
|
@ -1,7 +1,6 @@
|
|||
-# small expires mention
|
||||
- if dossier.expirable?
|
||||
%p.expires_at.fr-mb-1w
|
||||
|
||||
%p.expires_at
|
||||
%small
|
||||
= t("shared.dossiers.header.expires_at.#{dossier.state}", date: safe_expiration_date(dossier), duree_conservation_totale: dossier.duree_totale_conservation_in_months)
|
||||
- if dossier.conservation_extension.positive?
|
||||
|
|
|
@ -20,31 +20,11 @@
|
|||
= render partial: 'instructeurs/dossiers/header_actions', locals: { dossier: dossier }
|
||||
= render(partial: 'instructeurs/dossiers/print_and_export_actions', locals: {dossier: dossier})
|
||||
|
||||
|
||||
= render(partial: 'instructeurs/dossiers/expiration_banner', locals: {dossier: dossier})
|
||||
|
||||
- if dossier.motivation.present?
|
||||
- if dossier.user_deleted?
|
||||
%p.fr-mb-1w
|
||||
%small
|
||||
%strong
|
||||
Motivation :
|
||||
« #{dossier.motivation} »
|
||||
|
||||
- if dossier.justificatif_motivation.attached?
|
||||
%p.fr-mb-0
|
||||
%small
|
||||
%strong
|
||||
Justificatif :
|
||||
Ce justificatif joint par l’instructeur a été envoyé au demandeur.
|
||||
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
|
||||
|
||||
- if dossier.attestation.present?
|
||||
%p.fr-mb-0
|
||||
%small
|
||||
%strong
|
||||
Cette attestation a été envoyée automatiquement au demandeur.
|
||||
= link_to('Voir l’attestation', attestation_instructeur_dossier_path(dossier.procedure, dossier), target: '_blank', rel: 'noopener')
|
||||
|
||||
%small L’usager a supprimé son compte. Vous pouvez archiver puis supprimer le dossier.
|
||||
|
||||
%nav.tabs
|
||||
%ul
|
||||
|
|
|
@ -10,3 +10,17 @@
|
|||
%td
|
||||
.action
|
||||
= render Attachment::ShowComponent.new(attachment: dossier.justificatif_motivation.attachment)
|
||||
|
||||
- if dossier.motivation.present?
|
||||
%tr
|
||||
%td.libelle Motivation :
|
||||
%td
|
||||
.action
|
||||
= dossier.motivation
|
||||
|
||||
- if dossier.attestation.present?
|
||||
%tr
|
||||
%td.libelle Attestation :
|
||||
%td
|
||||
.action
|
||||
= link_to('Voir l’attestation', attestation_instructeur_dossier_path(dossier.procedure, dossier), target: '_blank', rel: 'noopener')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
-# small expires mention
|
||||
- if dossier.expirable?
|
||||
%p.expires_at.fr-mb-1w
|
||||
%p.expires_at
|
||||
%small= t("shared.dossiers.header.expires_at.#{dossier.state}", date: safe_expiration_date(dossier), duree_conservation_totale: dossier.duree_totale_conservation_in_months)
|
||||
|
||||
- if dossier.close_to_expiration?
|
||||
|
|
|
@ -35,7 +35,7 @@ describe 'instructeurs/dossiers/show.html.haml', type: :view do
|
|||
let(:dossier) { create :dossier, :accepte, :with_attestation }
|
||||
|
||||
it 'provides a link to the attestation' do
|
||||
expect(subject).to have_text('Cette attestation a été envoyée automatiquement au demandeur.')
|
||||
expect(subject).to have_text('Attestation')
|
||||
expect(subject).to have_link(href: attestation_instructeur_dossier_path(dossier.procedure, dossier))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue