2018-08-14 13:39:49 +02:00
|
|
|
.container
|
2019-02-18 17:59:09 +01:00
|
|
|
- if dossier.en_construction_at.present?
|
|
|
|
.card
|
2019-02-18 17:52:15 +01:00
|
|
|
= render partial: "shared/dossiers/infos_generales", locals: { dossier: dossier }
|
2019-02-18 17:59:09 +01:00
|
|
|
|
2018-08-14 13:39:49 +02:00
|
|
|
.tab-title Identité du demandeur
|
|
|
|
.card
|
|
|
|
= render partial: "shared/dossiers/user_infos", locals: { user: dossier.user }
|
|
|
|
|
|
|
|
- if dossier.etablissement.present?
|
2018-10-17 12:12:32 +02:00
|
|
|
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: dossier.etablissement, profile: profile }
|
2018-08-14 13:39:49 +02:00
|
|
|
|
2019-03-05 10:39:17 +01:00
|
|
|
- if profile == 'usager' && !dossier.read_only?
|
|
|
|
.flex.row-reverse
|
|
|
|
= link_to "Modifier le SIRET", siret_dossier_path(dossier), class: 'button'
|
|
|
|
|
2018-08-14 13:39:49 +02:00
|
|
|
- if dossier.individual.present?
|
|
|
|
= render partial: "shared/dossiers/identite_individual", locals: { individual: dossier.individual }
|
|
|
|
|
2019-03-05 14:52:12 +01:00
|
|
|
- if profile == 'usager' && !dossier.read_only?
|
|
|
|
.flex.row-reverse
|
|
|
|
= link_to "Modifier l'identité", identite_dossier_path(dossier), class: 'button'
|
|
|
|
|
2018-08-14 13:39:49 +02:00
|
|
|
.tab-title Formulaire
|
2018-12-27 11:41:16 +01:00
|
|
|
- champs = dossier.champs.includes(:type_de_champ)
|
2018-08-14 13:39:49 +02:00
|
|
|
- if champs.any?
|
|
|
|
.card
|
2018-10-17 12:12:32 +02:00
|
|
|
= render partial: "shared/dossiers/champs", locals: { champs: champs, demande_seen_at: demande_seen_at, profile: profile }
|
2018-08-14 13:39:49 +02:00
|
|
|
|
|
|
|
- if dossier.types_de_piece_justificative.any?
|
|
|
|
.tab-title Pièces jointes
|
|
|
|
.card
|
|
|
|
= render partial: "shared/dossiers/pieces_jointes", locals: { dossier: dossier, demande_seen_at: demande_seen_at }
|