Align identite headers to dossier champs headers

This commit is contained in:
Mathieu Magnin 2018-03-14 11:00:48 +01:00
parent ac068861f5
commit 96b1c83537
2 changed files with 26 additions and 24 deletions

View file

@ -1,47 +1,49 @@
- entreprise = entreprise.decorate - entreprise = entreprise.decorate
- etablissement = entreprise.etablissement - etablissement = entreprise.etablissement
%h4= entreprise.raison_sociale_or_name
%table.table.vertical %table.table.vertical.dossier-champs
%tbody %tbody
%tr %tr
%th SIRET : %th.libelle Dénomination :
%td= entreprise.raison_sociale_or_name
%tr
%th.libelle SIRET :
%td= entreprise.siret_siege_social %td= entreprise.siret_siege_social
%tr %tr
%th Forme juridique : %th.libelle Forme juridique :
%td= sanitize(entreprise.forme_juridique) %td= sanitize(entreprise.forme_juridique)
- if etablissement.present? - if etablissement.present?
%tr %tr
%th Libellé NAF : %th.libelle Libellé NAF :
%td= etablissement.libelle_naf %td= etablissement.libelle_naf
%tr %tr
%th Code NAF : %th.libelle Code NAF :
%td= etablissement.naf %td= etablissement.naf
%tr %tr
%th Date de création : %th.libelle Date de création :
%td= Time.at(entreprise.date_creation).localtime.strftime("%d/%m/%Y") %td= Time.at(entreprise.date_creation).localtime.strftime("%d/%m/%Y")
%tr %tr
%th Effectif de l'organisation : %th.libelle Effectif de l'organisation :
%td= entreprise.effectif %td= entreprise.effectif
%tr %tr
%th Code effectif : %th.libelle Code effectif :
%td= entreprise.code_effectif_entreprise %td= entreprise.code_effectif_entreprise
%tr %tr
%th Numéro de TVA intracommunautaire : %th.libelle Numéro de TVA intracommunautaire :
%td= entreprise.numero_tva_intracommunautaire %td= entreprise.numero_tva_intracommunautaire
- if etablissement.present? - if etablissement.present?
%tr %tr
%th Adresse : %th.libelle Adresse :
%td %td
- etablissement.adresse.split("\n").each do |line| - etablissement.adresse.split("\n").each do |line|
= line = line
%br %br
%tr %tr
%th Capital social : %th.libelle Capital social :
%td= entreprise.pretty_capital_social %td= entreprise.pretty_capital_social
- if etablissement.present? - if etablissement.present?
%tr %tr
%th Exercices : %th.libelle Exercices :
%td %td
- etablissement.exercices.each_with_index do |exercice, index| - etablissement.exercices.each_with_index do |exercice, index|
= "#{exercice.date_fin_exercice.year} : " = "#{exercice.date_fin_exercice.year} : "
@ -49,20 +51,20 @@
%br %br
- if entreprise.rna_information.present? - if entreprise.rna_information.present?
%tr %tr
%th Numéro RNA : %th.libelle Numéro RNA :
%td= entreprise.rna_information.association_id %td= entreprise.rna_information.association_id
%tr %tr
%th Titre : %th.libelle Titre :
%td= entreprise.rna_information.titre %td= entreprise.rna_information.titre
%tr %tr
%th Objet : %th.libelle Objet :
%td= entreprise.rna_information.objet %td= entreprise.rna_information.objet
%tr %tr
%th Date de création : %th.libelle Date de création :
%td= entreprise.rna_information.date_creation&.strftime("%d/%m/%Y") %td= entreprise.rna_information.date_creation&.strftime("%d/%m/%Y")
%tr %tr
%th Date de publication : %th.libelle Date de publication :
%td= entreprise.rna_information.date_publication&.strftime("%d/%m/%Y") %td= entreprise.rna_information.date_publication&.strftime("%d/%m/%Y")
%tr %tr
%th Date de déclaration : %th.libelle Date de déclaration :
%td= entreprise.rna_information.date_declaration&.strftime("%d/%m/%Y") %td= entreprise.rna_information.date_declaration&.strftime("%d/%m/%Y")

View file

@ -1,15 +1,15 @@
%table.table.vertical %table.table.vertical.dossier-champs
%tbody %tbody
%tr %tr
%th Civilité : %th.libelle Civilité :
%td= individual.gender %td= individual.gender
%tr %tr
%th Prénom : %th.libelle Prénom :
%td= individual.prenom %td= individual.prenom
%tr %tr
%th Nom : %th.libelle Nom :
%td= individual.nom %td= individual.nom
- if individual.birthdate.present? - if individual.birthdate.present?
%tr %tr
%th Date de naissance : %th.libelle Date de naissance :
%td= Date.parse(individual.birthdate).strftime("%d/%m/%Y") %td= Date.parse(individual.birthdate).strftime("%d/%m/%Y")