Add identité demandeur for entreprise on dossier detail page
This commit is contained in:
parent
1c7d9eaa69
commit
f9f313e990
8 changed files with 139 additions and 46 deletions
|
@ -0,0 +1,49 @@
|
|||
- entreprise = entreprise.decorate
|
||||
- etablissement = entreprise.etablissement
|
||||
%h4= entreprise.raison_sociale_or_name
|
||||
|
||||
%table.table
|
||||
%tbody
|
||||
%tr
|
||||
%th SIRET :
|
||||
%td= entreprise.siret_siege_social
|
||||
%tr
|
||||
%th Forme juridique :
|
||||
%td= entreprise.forme_juridique
|
||||
- if etablissement.present?
|
||||
%tr
|
||||
%th Libellé NAF :
|
||||
%td= etablissement.libelle_naf
|
||||
%tr
|
||||
%th Code NAF :
|
||||
%td= etablissement.naf
|
||||
%tr
|
||||
%th Date de création :
|
||||
%td= Time.at(entreprise.date_creation).localtime.strftime("%d/%m/%Y")
|
||||
%tr
|
||||
%th Effectif de l'organisation :
|
||||
%td= entreprise.effectif
|
||||
%tr
|
||||
%th Code effectif :
|
||||
%td= entreprise.code_effectif_entreprise
|
||||
%tr
|
||||
%th Numéro de TVA intracommunautaire :
|
||||
%td= entreprise.numero_tva_intracommunautaire
|
||||
- if etablissement.present?
|
||||
%tr
|
||||
%th Adresse :
|
||||
%td
|
||||
- etablissement.adresse.split("\n").each do |line|
|
||||
= line
|
||||
%br
|
||||
%tr
|
||||
%th Capital social :
|
||||
%td= entreprise.pretty_capital_social
|
||||
- if etablissement.present?
|
||||
%tr
|
||||
%th Exercices :
|
||||
%td
|
||||
- etablissement.exercices.each_with_index do |exercice, index|
|
||||
= "#{exercice.dateFinExercice.year} : "
|
||||
= number_to_currency(exercice.ca)
|
||||
%br
|
5
app/views/new_gestionnaire/dossiers/show.html.haml
Normal file
5
app/views/new_gestionnaire/dossiers/show.html.haml
Normal file
|
@ -0,0 +1,5 @@
|
|||
.container
|
||||
.card
|
||||
.card-title Identité du demandeur
|
||||
- if @dossier.entreprise.present?
|
||||
= render partial: "identite_entreprise", locals: { entreprise: @dossier.entreprise }
|
|
@ -1,19 +1,19 @@
|
|||
- if dossier.en_construction_ou_instruction?
|
||||
- if current_gestionnaire.follow?(dossier)
|
||||
= link_to dossier_unfollow_path(procedure, dossier), method: :patch, class: 'button' do
|
||||
= link_to unfollow_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
||||
%i.unfollow>
|
||||
ne plus suivre
|
||||
- else
|
||||
= link_to dossier_follow_path(procedure, dossier), method: :patch, class: 'button' do
|
||||
= link_to follow_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
||||
%i.follow>
|
||||
suivre le dossier
|
||||
|
||||
- elsif dossier.termine?
|
||||
- if dossier.archived
|
||||
= link_to dossier_unarchive_path(procedure, dossier), method: :patch, class: 'button' do
|
||||
= link_to unarchive_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
||||
%i.unarchive>
|
||||
désarchiver le dossier
|
||||
- else
|
||||
= link_to dossier_archive_path(procedure, dossier), method: :patch, class: 'button' do
|
||||
= link_to archive_dossier_path(procedure, dossier), method: :patch, class: 'button' do
|
||||
%i.archive>
|
||||
archiver le dossier
|
||||
|
|
|
@ -42,10 +42,10 @@
|
|||
%th.follow-col
|
||||
- @dossiers.each do |dossier|
|
||||
%tr
|
||||
%td.number-col= link_to(dossier.id, backoffice_dossier_path(dossier), class: 'big-link')
|
||||
%td= link_to(dossier.user.email, backoffice_dossier_path(dossier), class: 'big-link')
|
||||
%td.number-col= link_to(dossier.id, dossier_path(@procedure, dossier), class: 'big-link')
|
||||
%td= link_to(dossier.user.email, dossier_path(@procedure, dossier), class: 'big-link')
|
||||
%td.status-col
|
||||
= link_to(backoffice_dossier_path(dossier), class: 'big-link') do
|
||||
= link_to(dossier_path(@procedure, dossier), class: 'big-link') do
|
||||
= render partial: 'status', locals: { dossier: dossier }
|
||||
%td.follow-col= render partial: 'dossier_actions', locals: { procedure: @procedure, dossier: dossier }
|
||||
- else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue