amelioration(users/dossiers#demande): passage a la nouvelle ui/ux
wip
This commit is contained in:
parent
dc0eaed2f0
commit
43c6f03d10
31 changed files with 487 additions and 349 deletions
|
@ -1,72 +0,0 @@
|
|||
- champs.reject(&:exclude_from_view?).filter(&:visible?).each do |c|
|
||||
- if c.type_champ == TypeDeChamp.type_champs.fetch(:repetition)
|
||||
%tr
|
||||
%td.libelle.repetition{ colspan: 3 }
|
||||
= "#{c.libelle} :"
|
||||
- c.rows.each do |champs|
|
||||
= render partial: "shared/dossiers/champ_row", locals: { champs: champs, demande_seen_at: demande_seen_at, profile: profile, repetition: true }
|
||||
%tr
|
||||
%td.libelle{ colspan: 4 }
|
||||
- else
|
||||
%tr
|
||||
- if c.type_champ == TypeDeChamp.type_champs.fetch(:header_section)
|
||||
%th.header-section{ colspan: 3, class: c.dossier.auto_numbering_section_headers_for?(c) ? "header-section-counter" : nil }= c.libelle
|
||||
- else
|
||||
%td.libelle{ class: repetition ? 'padded' : '' }
|
||||
= "#{c.libelle} :"
|
||||
- if c.type_champ != TypeDeChamp.type_champs.fetch(:header_section)
|
||||
%td.updated-at
|
||||
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
||||
modifié le
|
||||
= try_format_datetime(c.updated_at)
|
||||
|
||||
%tr
|
||||
%td.rich-text{ class: c.type_champ }
|
||||
%div{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
||||
- case c.type_champ
|
||||
- when TypeDeChamp.type_champs.fetch(:carte)
|
||||
= render partial: "shared/champs/carte/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:dossier_link)
|
||||
= render partial: "shared/champs/dossier_link/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:multiple_drop_down_list)
|
||||
= render partial: "shared/champs/multiple_drop_down_list/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:piece_justificative)
|
||||
= render partial: "shared/champs/piece_justificative/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:titre_identite)
|
||||
= render partial: "shared/champs/piece_justificative/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:siret)
|
||||
= render partial: "shared/champs/siret/show", locals: { champ: c, profile: profile }
|
||||
- when TypeDeChamp.type_champs.fetch(:iban)
|
||||
= render partial: "shared/champs/iban/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:textarea)
|
||||
= render partial: "shared/champs/textarea/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:annuaire_education)
|
||||
= render partial: "shared/champs/annuaire_education/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:cnaf)
|
||||
= render partial: "shared/champs/cnaf/show", locals: { champ: c, profile: profile }
|
||||
- when TypeDeChamp.type_champs.fetch(:dgfip)
|
||||
= render partial: "shared/champs/dgfip/show", locals: { champ: c, profile: profile }
|
||||
- when TypeDeChamp.type_champs.fetch(:pole_emploi)
|
||||
= render partial: "shared/champs/pole_emploi/show", locals: { champ: c, profile: profile }
|
||||
- when TypeDeChamp.type_champs.fetch(:mesri)
|
||||
= render partial: "shared/champs/mesri/show", locals: { champ: c, profile: profile }
|
||||
- when TypeDeChamp.type_champs.fetch(:address)
|
||||
= render partial: "shared/champs/address/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:communes)
|
||||
= render partial: "shared/champs/communes/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:regions)
|
||||
= render partial: "shared/champs/regions/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:rna)
|
||||
= render partial: "shared/champs/rna/show", locals: { champ: c, profile: profile }
|
||||
- when TypeDeChamp.type_champs.fetch(:epci)
|
||||
= render partial: "shared/champs/epci/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:date)
|
||||
= c.to_s
|
||||
- when TypeDeChamp.type_champs.fetch(:datetime)
|
||||
= c.to_s
|
||||
- when TypeDeChamp.type_champs.fetch(:number)
|
||||
= number_with_html_delimiter(c.to_s)
|
||||
- else
|
||||
= format_text_value(c.to_s) unless c.blank?
|
||||
|
||||
|
|
@ -1,10 +1,16 @@
|
|||
%table.table.vertical.dossier-champs.counter-start-header-section{ role: :presentation }
|
||||
%tbody
|
||||
- if dossier.show_groupe_instructeur_details?
|
||||
%td.libelle= dossier.procedure.routing_criteria_name
|
||||
%td{ class: highlight_if_unseen_class(demande_seen_at, dossier.groupe_instructeur_updated_at) }= dossier.groupe_instructeur.label
|
||||
%td.updated-at
|
||||
%span{ class: highlight_if_unseen_class(demande_seen_at, dossier.groupe_instructeur_updated_at) }
|
||||
modifié le
|
||||
= try_format_datetime(dossier.updated_at)
|
||||
= render partial: "shared/dossiers/champ_row", locals: { champs: champs, demande_seen_at: demande_seen_at, profile: profile, repetition: false }
|
||||
- if dossier.show_groupe_instructeur_details?
|
||||
.fr-my-4v.fr-px-4v
|
||||
.flex
|
||||
|
||||
%p.flex-grow.fr-text-action-high--grey.fr-mb-0= dossier.procedure.routing_criteria_name
|
||||
%p.champ-updated-at.fr-mb-0.fr-text--sm
|
||||
- if demande_seen_at&.<(dossier.groupe_instructeur_updated_at)
|
||||
%span{ class: highlight_if_unseen_class(demande_seen_at, dossier.groupe_instructeur_updated_at) }
|
||||
modifié le
|
||||
= try_format_datetime(dossier.updated_at)
|
||||
|
||||
.champ-content.fr-text-action-high--grey{ class: highlight_if_unseen_class(demande_seen_at, dossier.groupe_instructeur_updated_at) }
|
||||
%p= dossier.groupe_instructeur.label
|
||||
|
||||
|
||||
= render ViewableChamp::SectionComponent.new(champs: champs, demande_seen_at: demande_seen_at, profile: profile)
|
||||
|
|
|
@ -2,38 +2,40 @@
|
|||
- content_for(:notice_info) do
|
||||
= render partial: "shared/dossiers/france_connect_informations_notice", locals: { user_information: dossier.france_connect_information }
|
||||
|
||||
.container
|
||||
.container.counter-start-header-section
|
||||
%h2.fr-h6.fr-background-alt--grey.fr-mb-0
|
||||
.flex-grow.fr-py-3v.fr-px-4v= t('views.shared.dossiers.demande.en_construction')
|
||||
|
||||
- if dossier.depose_at.present?
|
||||
.card
|
||||
= render partial: "shared/dossiers/infos_generales", locals: { dossier: dossier }
|
||||
= render partial: "shared/dossiers/infos_generales", locals: { dossier: dossier }
|
||||
|
||||
.tab-title
|
||||
%h2.fr-h6= t('views.shared.dossiers.demande.requester_identity')
|
||||
%h2.fr-h6.fr-background-alt--grey.fr-mb-0.flex
|
||||
.flex-grow.fr-py-3v.fr-px-4v= t('views.shared.dossiers.demande.requester_identity')
|
||||
- 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'
|
||||
|
||||
- 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'
|
||||
|
||||
|
||||
- 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
|
||||
.fr-my-4v.fr-px-4v
|
||||
= 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: 'fr-btn fr-btn--tertiary'
|
||||
%h2.fr-h6.fr-background-alt--grey.fr-mb-0.flex
|
||||
.flex-grow.fr-py-3v.fr-px-4v= t('views.shared.dossiers.demande.form')
|
||||
|
||||
%h2.fr-h6= t('views.shared.dossiers.demande.form')
|
||||
- champs = dossier.champs_public
|
||||
- if champs.any? || dossier.procedure.routing_enabled?
|
||||
.card
|
||||
= render partial: "shared/dossiers/champs", locals: { champs: champs, dossier: dossier, demande_seen_at: demande_seen_at, profile: profile }
|
||||
= render partial: "shared/dossiers/champs", locals: { champs: champs, dossier: dossier, demande_seen_at: demande_seen_at, profile: profile }
|
||||
|
|
|
@ -1,173 +1,193 @@
|
|||
- if etablissement.as_degraded_mode?
|
||||
%table.table.vertical.dossier-champs{ role: :presentation }
|
||||
%tbody
|
||||
%tr
|
||||
%td{ colspan: 2 }
|
||||
.fr-alert.fr-alert--warning.fr-alert--sm
|
||||
%p
|
||||
LʼINSEE est indisponible, les informations sur lʼentreprise arriveront dʼici quelques heures.
|
||||
- if profile == "instructeur"
|
||||
%br
|
||||
Il nʼest pas possible dʼaccepter ou de refuser un dossier sans cette étape.
|
||||
|
||||
|
||||
|
||||
%tr
|
||||
%td.libelle SIRET :
|
||||
%td= etablissement.siret
|
||||
.fr-alert.fr-alert--warning.fr-alert--sm
|
||||
%p
|
||||
LʼINSEE est indisponible, les informations sur lʼentreprise arriveront dʼici quelques heures.
|
||||
- if profile == "instructeur"
|
||||
%p
|
||||
Il nʼest pas possible dʼaccepter ou de refuser un dossier sans cette étape.
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 SIRET :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= etablissement.siret
|
||||
- else
|
||||
%table.table.vertical.dossier-champs{ role: :presentation }
|
||||
%tbody
|
||||
- if etablissement.diffusable_commercialement == false && profile != 'instructeur'
|
||||
%tr
|
||||
%td= t('warning_for_private_info', scope: 'views.shared.dossiers.identite_entreprise', siret: pretty_siret(etablissement.siret))
|
||||
- else
|
||||
%tr
|
||||
%td.libelle Dénomination :
|
||||
%td= raison_sociale_or_name(etablissement)
|
||||
%tr
|
||||
%td.libelle SIRET :
|
||||
%td #{pretty_siret(etablissement.siret)} #{ render Dsfr::CopyButtonComponent.new(text: etablissement.siret, title: "Copier le siret dans le presse-papier", success: "Le siret a été copié dans le presse-papier") }
|
||||
- if etablissement.diffusable_commercialement == false && profile != 'instructeur'
|
||||
.fr-my-2v
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= t('warning_for_private_info', scope: 'views.shared.dossiers.identite_entreprise', siret: pretty_siret(etablissement.siret))
|
||||
- else
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Dénomination :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= raison_sociale_or_name(etablissement)
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 SIRET :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p #{pretty_siret(etablissement.siret)} #{ render Dsfr::CopyButtonComponent.new(text: etablissement.siret, title: "Copier le siret dans le presse-papier", success: "Le siret a été copié dans le presse-papier") }
|
||||
|
||||
|
||||
- unless local_assigns[:short_identity]
|
||||
- if etablissement.siret != etablissement.entreprise.siret_siege_social
|
||||
%tr
|
||||
%td.libelle SIRET du siège social:
|
||||
%td= etablissement.entreprise.siret_siege_social
|
||||
%tr
|
||||
%td.libelle Forme juridique :
|
||||
%td= sanitize(etablissement.entreprise.forme_juridique)
|
||||
%tr
|
||||
%td.libelle Libellé NAF :
|
||||
%td= etablissement.libelle_naf
|
||||
%tr
|
||||
%td.libelle Code NAF :
|
||||
%td= etablissement.naf
|
||||
%tr
|
||||
%td.libelle Date de création :
|
||||
%td
|
||||
= try_format_date(etablissement.entreprise.date_creation)
|
||||
- unless local_assigns[:short_identity]
|
||||
- if etablissement.siret != etablissement.entreprise.siret_siege_social
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 SIRET du siège social:
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= etablissement.entreprise.siret_siege_social
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Forme juridique :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= sanitize(etablissement.entreprise.forme_juridique)
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Libellé NAF :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= etablissement.libelle_naf
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Code NAF :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= etablissement.naf
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Date de création :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p
|
||||
= try_format_date(etablissement.entreprise.date_creation)
|
||||
|
||||
- if etablissement.entreprise_etat_administratif.present?
|
||||
%span.label= humanized_entreprise_etat_administratif(etablissement)
|
||||
- if etablissement.entreprise_etat_administratif.present?
|
||||
%span.label= humanized_entreprise_etat_administratif(etablissement)
|
||||
|
||||
- if profile == 'instructeur'
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0
|
||||
Effectif mensuel
|
||||
= try_format_mois_effectif(etablissement)
|
||||
(URSSAF) :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= etablissement.entreprise_effectif_mensuel
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0
|
||||
Effectif moyen annuel
|
||||
= etablissement.entreprise_effectif_annuel_annee
|
||||
(URSSAF) :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= etablissement.entreprise_effectif_annuel
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Effectif de l'organisation (INSEE) :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p
|
||||
= effectif(etablissement)
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Numéro de TVA intracommunautaire :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= etablissement.entreprise.numero_tva_intracommunautaire
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Adresse :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p
|
||||
- etablissement.adresse.split("\n").each do |line|
|
||||
= line
|
||||
%br
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Capital social :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= pretty_currency(etablissement.entreprise.capital_social)
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Chiffre d’affaires :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p
|
||||
- if profile == 'instructeur'
|
||||
%tr
|
||||
%td.libelle
|
||||
Effectif mensuel
|
||||
= try_format_mois_effectif(etablissement)
|
||||
(URSSAF) :
|
||||
%td= etablissement.entreprise_effectif_mensuel
|
||||
%tr
|
||||
%td.libelle
|
||||
Effectif moyen annuel
|
||||
= etablissement.entreprise_effectif_annuel_annee
|
||||
(URSSAF) :
|
||||
%td= etablissement.entreprise_effectif_annuel
|
||||
%tr
|
||||
%td.libelle Effectif de l'organisation (INSEE) :
|
||||
%td
|
||||
= effectif(etablissement)
|
||||
%tr
|
||||
%td.libelle Numéro de TVA intracommunautaire :
|
||||
%td= etablissement.entreprise.numero_tva_intracommunautaire
|
||||
%tr
|
||||
%td.libelle Adresse :
|
||||
%td
|
||||
- etablissement.adresse.split("\n").each do |line|
|
||||
= line
|
||||
%details
|
||||
- etablissement.exercices.each_with_index do |exercice, index|
|
||||
= "#{exercice.date_fin_exercice.year} : "
|
||||
= pretty_currency(exercice.ca)
|
||||
%br
|
||||
%tr
|
||||
%td.libelle Capital social :
|
||||
%td= pretty_currency(etablissement.entreprise.capital_social)
|
||||
%tr
|
||||
%td.libelle Chiffre d’affaires :
|
||||
%td
|
||||
- if profile == 'instructeur'
|
||||
%details
|
||||
- etablissement.exercices.each_with_index do |exercice, index|
|
||||
= "#{exercice.date_fin_exercice.year} : "
|
||||
= pretty_currency(exercice.ca)
|
||||
%br
|
||||
- elsif etablissement.exercices.present?
|
||||
= t('activemodel.models.exercices_summary', count: etablissement.exercices.count)
|
||||
- elsif etablissement.exercices.present?
|
||||
= t('activemodel.models.exercices_summary', count: etablissement.exercices.count)
|
||||
|
||||
|
||||
- if etablissement.entreprise_bilans_bdf.present?
|
||||
- if profile == 'instructeur'
|
||||
= render partial: 'shared/dossiers/identite_entreprise_bilan_detail',
|
||||
locals: { libelle: 'Résultat exercice', key: 'resultat_exercice', etablissement: etablissement }
|
||||
- if etablissement.entreprise_bilans_bdf.present?
|
||||
- if profile == 'instructeur'
|
||||
= render partial: 'shared/dossiers/identite_entreprise_bilan_detail',
|
||||
locals: { libelle: 'Résultat exercice', key: 'resultat_exercice', etablissement: etablissement }
|
||||
|
||||
= render partial: 'shared/dossiers/identite_entreprise_bilan_detail',
|
||||
locals: { libelle: "Excédent brut d’exploitation", key: 'excedent_brut_exploitation', etablissement: etablissement }
|
||||
= render partial: 'shared/dossiers/identite_entreprise_bilan_detail',
|
||||
locals: { libelle: "Excédent brut d’exploitation", key: 'excedent_brut_exploitation', etablissement: etablissement }
|
||||
|
||||
= render partial: 'shared/dossiers/identite_entreprise_bilan_detail',
|
||||
locals: { libelle: 'Fonds de roulement net global', key: 'fonds_roulement_net_global', etablissement: etablissement }
|
||||
= render partial: 'shared/dossiers/identite_entreprise_bilan_detail',
|
||||
locals: { libelle: 'Fonds de roulement net global', key: 'fonds_roulement_net_global', etablissement: etablissement }
|
||||
|
||||
= render partial: 'shared/dossiers/identite_entreprise_bilan_detail',
|
||||
locals: { libelle: 'Besoin en fonds de roulement', key: 'besoin_en_fonds_de_roulement', etablissement: etablissement }
|
||||
%tr
|
||||
%td.libelle
|
||||
Chiffres financiers clés (Banque de France)
|
||||
= "en #{pretty_currency_unit(etablissement.entreprise_bilans_bdf_monnaie)} :"
|
||||
= render partial: 'shared/dossiers/identite_entreprise_bilan_detail',
|
||||
locals: { libelle: 'Besoin en fonds de roulement', key: 'besoin_en_fonds_de_roulement', etablissement: etablissement }
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0
|
||||
Chiffres financiers clés (Banque de France)
|
||||
= "en #{pretty_currency_unit(etablissement.entreprise_bilans_bdf_monnaie)} :"
|
||||
|
||||
- if controller.is_a?(Instructeurs::AvisController)
|
||||
%td
|
||||
Les consulter
|
||||
= link_to "au format csv", bilans_bdf_instructeur_avis_path(@avis, format: 'csv')
|
||||
,
|
||||
= link_to "au format xlsx", bilans_bdf_instructeur_avis_path(@avis, format: 'xlsx')
|
||||
ou
|
||||
= link_to "au format ods", bilans_bdf_instructeur_avis_path(@avis, format: 'ods')
|
||||
- else
|
||||
%td
|
||||
Les consulter
|
||||
= link_to "au format csv", bilans_bdf_instructeur_dossier_path(procedure_id: @dossier.procedure.id, dossier_id: @dossier.id, format: 'csv')
|
||||
,
|
||||
= link_to "au format xlsx", bilans_bdf_instructeur_dossier_path(procedure_id: @dossier.procedure.id, dossier_id: @dossier.id, format: 'xlsx')
|
||||
ou
|
||||
= link_to "au format ods", bilans_bdf_instructeur_dossier_path(procedure_id: @dossier.procedure.id, dossier_id: @dossier.id, format: 'ods')
|
||||
- if controller.is_a?(Instructeurs::AvisController)
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p
|
||||
Les consulter
|
||||
= link_to "au format csv", bilans_bdf_instructeur_avis_path(@avis, format: 'csv')
|
||||
,
|
||||
= link_to "au format xlsx", bilans_bdf_instructeur_avis_path(@avis, format: 'xlsx')
|
||||
ou
|
||||
= link_to "au format ods", bilans_bdf_instructeur_avis_path(@avis, format: 'ods')
|
||||
- else
|
||||
%tr
|
||||
%td.libelle
|
||||
Bilans Banque de France :
|
||||
%td Les 3 derniers bilans connus de votre entreprise par la Banque de France ont été joints à votre dossier.
|
||||
- if etablissement.entreprise_attestation_sociale.attached?
|
||||
%tr
|
||||
%td.libelle Attestation sociale :
|
||||
- if profile == 'instructeur'
|
||||
%td= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_sociale)
|
||||
- else
|
||||
%td Une attestation de vigilance délivrée par l'ACOSS a été jointe à votre dossier.
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p
|
||||
Les consulter
|
||||
= link_to "au format csv", bilans_bdf_instructeur_dossier_path(procedure_id: @dossier.procedure.id, dossier_id: @dossier.id, format: 'csv')
|
||||
,
|
||||
= link_to "au format xlsx", bilans_bdf_instructeur_dossier_path(procedure_id: @dossier.procedure.id, dossier_id: @dossier.id, format: 'xlsx')
|
||||
ou
|
||||
= link_to "au format ods", bilans_bdf_instructeur_dossier_path(procedure_id: @dossier.procedure.id, dossier_id: @dossier.id, format: 'ods')
|
||||
- else
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0
|
||||
Bilans Banque de France :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p Les 3 derniers bilans connus de votre entreprise par la Banque de France ont été joints à votre dossier.
|
||||
- if etablissement.entreprise_attestation_sociale.attached?
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Attestation sociale :
|
||||
- if profile == 'instructeur'
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_sociale)
|
||||
- else
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p Une attestation de vigilance délivrée par l'ACOSS a été jointe à votre dossier.
|
||||
|
||||
- if etablissement.entreprise_attestation_fiscale.attached?
|
||||
%tr
|
||||
%td.libelle Attestation fiscale :
|
||||
- if profile == 'instructeur'
|
||||
%td= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_fiscale)
|
||||
- else
|
||||
%td Une attestation fiscale délivrée par l'URSSAF a été jointe à votre dossier.
|
||||
- if etablissement.entreprise_attestation_fiscale.attached?
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Attestation fiscale :
|
||||
- if profile == 'instructeur'
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_fiscale)
|
||||
- else
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p Une attestation fiscale délivrée par l'URSSAF a été jointe à votre dossier.
|
||||
|
||||
- if etablissement.association?
|
||||
%tr
|
||||
%td.libelle Numéro RNA :
|
||||
%td= etablissement.association_rna
|
||||
%tr
|
||||
%td.libelle Titre :
|
||||
%td= etablissement.association_titre
|
||||
%tr
|
||||
%td.libelle Objet :
|
||||
%td= etablissement.association_objet
|
||||
%tr
|
||||
%td.libelle Date de création :
|
||||
%td= try_format_date(etablissement.association_date_creation)
|
||||
%tr
|
||||
%td.libelle Date de publication :
|
||||
%td= try_format_date(etablissement.association_date_publication)
|
||||
%tr
|
||||
%td.libelle Date de déclaration :
|
||||
%td= try_format_date(etablissement.association_date_declaration)
|
||||
- if etablissement.association?
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Numéro RNA :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= etablissement.association_rna
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Titre :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= etablissement.association_titre
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Objet :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= etablissement.association_objet
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Date de création :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= try_format_date(etablissement.association_date_creation)
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Date de publication :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= try_format_date(etablissement.association_date_publication)
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Date de déclaration :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= try_format_date(etablissement.association_date_declaration)
|
||||
|
||||
- unless local_assigns[:short_identity]
|
||||
%p
|
||||
|
|
|
@ -1,19 +1,18 @@
|
|||
%table.table.vertical.dossier-champs{ role: :presentation }
|
||||
%tbody
|
||||
%tr
|
||||
%td.libelle
|
||||
= t('views.users.dossiers.identite.civility')
|
||||
%td= individual.gender
|
||||
%tr
|
||||
%td.libelle
|
||||
= t('views.users.dossiers.identite.first_name')
|
||||
%td= individual.prenom
|
||||
%tr
|
||||
%td.libelle
|
||||
= t('views.users.dossiers.identite.last_name')
|
||||
%td= individual.nom
|
||||
- if individual.birthdate.present?
|
||||
%tr
|
||||
%td.libelle
|
||||
= t('views.users.dossiers.identite.birthdate')
|
||||
%td= try_format_date(individual.birthdate)
|
||||
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0= t('views.users.dossiers.identite.civility')
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= individual.gender
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0= t('views.users.dossiers.identite.first_name')
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= individual.prenom
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0= t('views.users.dossiers.identite.last_name')
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= individual.nom
|
||||
- if individual.birthdate.present?
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0= t('views.users.dossiers.identite.birthdate')
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= try_format_date(individual.birthdate)
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
%table.table.vertical.dossier-champs{ role: :presentation }
|
||||
%tbody
|
||||
%tr
|
||||
%td.libelle Déposé le :
|
||||
%td= l(dossier.depose_at, format: '%d %B %Y')
|
||||
%div
|
||||
%p.fr-my-4v.fr-px-4v.fr-text-action-high--grey
|
||||
= l(dossier.depose_at, format: '%d %B %Y %H:%m')
|
||||
- if dossier.updated_at != dossier.depose_at
|
||||
= t('views.shared.dossiers.demande.updated_at', updated_at: l(dossier.updated_at, format: '%d %B %y %H:%m'))
|
||||
|
||||
- if dossier.justificatif_motivation.attached?
|
||||
%tr
|
||||
%td.libelle Justificatif :
|
||||
%td
|
||||
.fr-my-4v.fr-px-4v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Justificatif :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
.action
|
||||
= render Attachment::ShowComponent.new(attachment: dossier.justificatif_motivation.attachment)
|
||||
|
||||
- if dossier.motivation.present?
|
||||
%tr
|
||||
%td.libelle Motivation :
|
||||
%td
|
||||
.fr-my-4v.fr-px-4v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Motivation :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
.action
|
||||
= dossier.motivation
|
||||
|
||||
- if dossier.attestation.present?
|
||||
%tr
|
||||
%td.libelle Attestation :
|
||||
%td
|
||||
.fr-my-4v.fr-px-4v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Attestation :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
.action
|
||||
= link_to('Voir l’attestation', attestation_instructeur_dossier_path(dossier.procedure, dossier), target: '_blank', rel: 'noopener')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
%table.table.vertical.dossier-champs{ role: :presentation }
|
||||
%tbody
|
||||
%tr
|
||||
%td.libelle Email :
|
||||
%td= user_deleted ? "#{email} (l’usager a supprimé son compte)" : email
|
||||
.fr-my-2v
|
||||
%p.fr-text-action-high--grey.fr-mb-0 Email :
|
||||
.champ-content.fr-text-action-high--grey
|
||||
%p= user_deleted ? "#{email} (l’usager a supprimé son compte)" : email
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue