2022-09-14 16:19:14 +02:00
|
|
|
- if dossier.france_connect_information.present?
|
|
|
|
- content_for(:notice_info) do
|
|
|
|
= render partial: "shared/dossiers/france_connect_informations_notice", locals: { user_information: dossier.france_connect_information }
|
|
|
|
|
2018-08-14 13:39:49 +02:00
|
|
|
.container
|
2021-12-06 15:49:17 +01:00
|
|
|
- if dossier.depose_at.present?
|
2019-02-18 17:59:09 +01:00
|
|
|
.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
|
|
|
|
2021-10-04 10:07:54 +02:00
|
|
|
.tab-title
|
2023-01-02 18:06:50 +01:00
|
|
|
%h2.fr-h6= t('views.shared.dossiers.demande.requester_identity')
|
2021-10-04 10:07:54 +02:00
|
|
|
|
|
|
|
- if dossier.identity_updated_at.present? && demande_seen_at&.<(dossier.identity_updated_at)
|
|
|
|
%span.highlighted
|
|
|
|
modifié le
|
|
|
|
= try_format_datetime(dossier.identity_updated_at)
|
|
|
|
|
2018-08-14 13:39:49 +02:00
|
|
|
.card
|
2021-05-12 19:04:31 +02:00
|
|
|
= render partial: "shared/dossiers/user_infos", locals: { user_deleted: dossier.user_deleted?, email: dossier.user_email_for(:display) }
|
2018-08-14 13:39:49 +02:00
|
|
|
|
|
|
|
- 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
|
2021-04-17 18:49:00 +02:00
|
|
|
= link_to t('views.shared.dossiers.demande.edit_siret'), siret_dossier_path(dossier), class: 'button'
|
2019-03-05 10:39:17 +01:00
|
|
|
|
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
|
2022-11-11 12:25:45 +01:00
|
|
|
= link_to t('views.shared.dossiers.demande.edit_identity'), identite_dossier_path(dossier), class: 'fr-btn fr-btn--tertiary'
|
2019-03-05 14:52:12 +01:00
|
|
|
|
2023-01-02 18:06:50 +01:00
|
|
|
%h2.fr-h6= t('views.shared.dossiers.demande.form')
|
2023-01-09 14:21:25 +01:00
|
|
|
- champs = dossier.champs_public
|
2022-11-04 10:10:57 +01:00
|
|
|
- if champs.any? || dossier.procedure.routing_enabled?
|
2018-08-14 13:39:49 +02:00
|
|
|
.card
|
2019-10-15 10:29:07 +02:00
|
|
|
= render partial: "shared/dossiers/champs", locals: { champs: champs, dossier: dossier, demande_seen_at: demande_seen_at, profile: profile }
|
2023-05-30 17:38:59 +02:00
|
|
|
|
|
|
|
- if dossier.procedure.routing_enabled?
|
|
|
|
%h2.fr-h6
|
|
|
|
Réaffectation
|
|
|
|
.card
|
|
|
|
En cas d'erreur de l'usager, vous pouvez réaffecter le dossier vers l'un des groupes d'instructeurs suivants
|
|
|
|
= form_tag reaffecter_instructeur_dossier_path(procedure_id: @dossier.procedure.id, dossier_id: @dossier.id),
|
|
|
|
method: :post,
|
|
|
|
class: 'fr-mb-3w mt-2' do
|
|
|
|
.flex
|
|
|
|
= select_tag(:groupe_instructeur_id,
|
|
|
|
options_for_select(@dossier.groupe_instructeur.other_groupe_instructeurs.pluck(:label, :id)),
|
|
|
|
include_blank: true,
|
|
|
|
class: 'fr-select flex auto fr-mr-2w')
|
|
|
|
|
|
|
|
= button_tag 'Réaffecter', class: 'fr-btn fr-btn--secondary'
|