demarches-normaliennes/app/views/shared/dossiers/_demande.html.haml
2021-10-05 12:05:43 +02:00

37 lines
1.7 KiB
Text

.container
- if dossier.en_construction_at.present?
.card
= render partial: "shared/dossiers/infos_generales", locals: { dossier: dossier }
.tab-title
= t('views.shared.dossiers.demande.requester_identity')
- if dossier.identity_updated_at.present? && demande_seen_at&.<(dossier.identity_updated_at)
%span.highlighted
modifié le
= try_format_datetime(dossier.identity_updated_at)
.card
- if dossier.france_connect_information.present?
= render partial: "shared/dossiers/france_connect_informations", locals: { user_information: dossier.france_connect_information }
= render partial: "shared/dossiers/user_infos", locals: { user_deleted: dossier.user_deleted?, email: dossier.user_email_for(:display) }
- if dossier.etablissement.present?
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: dossier.etablissement, profile: profile }
- if profile == 'usager' && !dossier.read_only?
.flex.row-reverse
= link_to t('views.shared.dossiers.demande.edit_siret'), siret_dossier_path(dossier), class: 'button'
- if dossier.individual.present?
= render partial: "shared/dossiers/identite_individual", locals: { individual: dossier.individual }
- if profile == 'usager' && !dossier.read_only?
.flex.row-reverse
= link_to t('views.shared.dossiers.demande.edit_identity'), identite_dossier_path(dossier), class: 'button'
.tab-title= t('views.shared.dossiers.demande.form')
- champs = dossier.champs.includes(:type_de_champ)
- if champs.any? || dossier.procedure.routee?
.card
= render partial: "shared/dossiers/champs", locals: { champs: champs, dossier: dossier, demande_seen_at: demande_seen_at, profile: profile }