2024-03-05 14:00:54 +01:00
|
|
|
- if dossier.france_connected_with_one_identity? && current_user.instructeur? && !current_user.owns_or_invite?(dossier)
|
2022-09-14 16:19:14 +02:00
|
|
|
- content_for(:notice_info) do
|
2024-03-21 17:57:57 +01:00
|
|
|
= render partial: "shared/dossiers/france_connect_informations_notice", locals: { user_information: dossier.user.france_connect_informations.first }
|
2022-09-14 16:19:14 +02:00
|
|
|
|
2024-09-06 10:46:28 +02:00
|
|
|
.counter-start-header-section.dossier-show.gallery.gallery-demande{ class: class_names("dossier-show-instructeur" => profile =="instructeur"), "data-controller": "lightbox" }
|
2024-04-15 10:37:47 +02:00
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
- 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')
|
2023-04-28 10:33:01 +02:00
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
%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')
|
2019-02-18 17:59:09 +01:00
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
- if dossier.depose_at.present?
|
|
|
|
= render partial: "shared/dossiers/infos_generales", locals: { dossier: dossier, profile: profile }
|
2023-12-11 17:06:12 +01:00
|
|
|
|
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
- if dossier.for_tiers?
|
|
|
|
%h2.fr-h6.fr-background-alt--grey.fr-mb-0.flex
|
|
|
|
.flex-grow.fr-py-3v.fr-px-2w= t('views.shared.dossiers.demande.mandataire_identity')
|
2023-12-11 17:06:12 +01:00
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
- if dossier.individual.present? && profile == 'usager' && !dossier.read_only?
|
|
|
|
= link_to t('views.shared.dossiers.demande.edit_identity'), identite_dossier_path(dossier), class: 'fr-py-3v fr-btn fr-btn--tertiary-no-outline'
|
2023-12-11 17:06:12 +01:00
|
|
|
|
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
= render partial: "shared/dossiers/mandataire_infos", locals: { user_deleted: dossier.user_deleted?, email: dossier.user_email_for(:display), dossier: dossier }
|
2023-06-27 12:53:12 +02:00
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
.tab-title
|
|
|
|
%h2.fr-h6.fr-background-alt--grey.fr-mb-0.flex
|
|
|
|
.flex-grow.fr-py-3v.fr-px-2w
|
|
|
|
= t('views.shared.dossiers.demande.requester_identity')
|
2023-06-27 12:53:12 +02:00
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
- if dossier.identity_updated_at.present? && demande_seen_at&.<(dossier.identity_updated_at)
|
|
|
|
%span.fr-badge.fr-badge--new.fr-badge--sm
|
|
|
|
= t('views.shared.dossiers.demande.requester_identity_updated_at', date: try_format_datetime(dossier.identity_updated_at))
|
2023-04-28 10:33:01 +02:00
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
- if dossier.etablissement.present? && profile == 'usager' && !dossier.read_only?
|
|
|
|
= link_to t('views.shared.dossiers.demande.edit_siret'), siret_dossier_path(dossier), class: 'fr-py-3v fr-btn fr-btn--tertiary-no-outline'
|
2023-04-28 10:33:01 +02:00
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
- if dossier.individual.present? && profile == 'usager' && !dossier.read_only?
|
|
|
|
= link_to t('views.shared.dossiers.demande.edit_identity'), identite_dossier_path(dossier), class: 'fr-py-3v fr-btn fr-btn--tertiary-no-outline'
|
2021-10-04 10:07:54 +02:00
|
|
|
|
2023-11-14 16:11:17 +01:00
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
= render partial: "shared/dossiers/user_infos", locals: { user_deleted: dossier.user_deleted?, email: dossier.user_email_for(:display), for_tiers: dossier.for_tiers?, beneficiaire_mail: dossier.for_tiers? ? dossier.individual.email : ""}
|
2018-08-14 13:39:49 +02:00
|
|
|
|
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
- if dossier.individual.present?
|
|
|
|
= render partial: "shared/dossiers/identite_individual", locals: { dossier: dossier }
|
2018-08-14 13:39:49 +02:00
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
- if dossier.etablissement.present?
|
|
|
|
.fr-mt-1w.fr-mb-4w.fr-px-2w
|
|
|
|
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: dossier.etablissement, profile: profile }
|
2019-03-05 14:52:12 +01:00
|
|
|
|
2024-06-21 05:49:42 +02:00
|
|
|
%h2.fr-h6.fr-background-alt--grey.fr-mb-0.flex
|
|
|
|
.flex-grow.fr-py-3v.fr-px-2w= t('views.shared.dossiers.demande.form')
|
|
|
|
|
|
|
|
- types_de_champ = dossier.revision.types_de_champ_public
|
|
|
|
- if types_de_champ.any? || dossier.procedure.routing_enabled?
|
|
|
|
= render ViewableChamp::SectionComponent.new(dossier:, types_de_champ:, demande_seen_at:, profile:)
|