From 38f60cf582f98e818abd97029eab9d6b41fda33d Mon Sep 17 00:00:00 2001 From: Onja Date: Wed, 11 Oct 2023 11:34:40 +0300 Subject: [PATCH] Refactor the form on the index page to include a help image and improve the layout of the form fields --- src/routes/index.js | 43 ++++++++++++++++++++------------------- src/views/pages/index.hbs | 20 +++++++++++++++--- 2 files changed, 39 insertions(+), 24 deletions(-) diff --git a/src/routes/index.js b/src/routes/index.js index cabe811..357f747 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -27,23 +27,13 @@ router.get('/', async function(req, res, next) { 'typeavis_lib', 'familleavis', 'familleavis_lib', - 'numerodepartement', - 'departement_nom_officiel', - 'region_code', - 'region_nom_officiel', 'tribunal', 'commercant', 'ville', 'registre', - 'cp', 'pdf_parution_subfolder', 'ispdf_unitaire', - 'listepersonnes.personne.typePersonne', 'listepersonnes.personne.administration', - 'listepersonnes.personne.denomination', - 'listepersonnes.personne.formeJuridique', - 'listepersonnes.personne.numeroImmatriculation.codeRCS', - 'listepersonnes.personne.numeroImmatriculation.numeroIdentification', 'listepersonnes.personne.numeroImmatriculation.nomGreffeImmat', 'listepersonnes.personne.capital.devise', 'listepersonnes.personne.capital.montantCapital', @@ -54,25 +44,14 @@ router.get('/', async function(req, res, next) { 'listepersonnes.personne.adresseSiegeSocial.numeroVoie', 'listepersonnes.personne.adresseSiegeSocial.nomVoie', 'listepersonnes.personne.adresseSiegeSocial.complGeographique', - 'listepersonnes.personne.nom', - 'listepersonnes.personne.nomCommercial', - 'listepersonnes.personne.prenom', 'listeetablissements.etablissement.qualiteEtablissement', - 'listeetablissements.etablissement.adresse.ville', 'listeetablissements.etablissement.adresse.codePostal', 'listeetablissements.etablissement.adresse.pays', 'listeetablissements.etablissement.adresse.typeVoie', 'listeetablissements.etablissement.adresse.numeroVoie', 'listeetablissements.etablissement.adresse.nomVoie', - 'listeetablissements.etablissement.adresse.complGeographique', - 'listeetablissements.etablissement.activite', - 'listeetablissements.etablissement.origineFonds', 'jugement', - 'acte.descriptif', - 'acte.dateCommencementActivite', - 'acte.vente.publiciteLegale.date', 'acte.vente.publiciteLegale.titre', - 'acte.vente.categorieVente', 'acte.vente.opposition', 'modificationsgenerales', 'radiationaurcs', @@ -92,6 +71,28 @@ router.get('/', async function(req, res, next) { 'parutionavisprecedent.dateParution', 'parutionavisprecedent.numeroParution', 'parutionavisprecedent.numeroAnnonce', + ], + selected: [ + 'region_code', + 'region_nom_officiel', + 'numerodepartement', + 'departement_nom_officiel', + 'cp', + 'listepersonnes.personne.typePersonne', + 'listepersonnes.personne.formeJuridique', + 'listepersonnes.personne.denomination', + 'listepersonnes.personne.numeroImmatriculation.codeRCS', + 'listepersonnes.personne.numeroImmatriculation.numeroIdentification', + 'listepersonnes.personne.nom', + 'listepersonnes.personne.nomCommercial', + 'listepersonnes.personne.prenom', + 'listeetablissements.etablissement.activite', + 'listeetablissements.etablissement.adresse.complGeographique', + 'listeetablissements.etablissement.adresse.ville', + 'acte.dateCommencementActivite', + 'acte.vente.publiciteLegale.date', + 'acte.descriptif', + 'acte.vente.categorieVente', ] } } diff --git a/src/views/pages/index.hbs b/src/views/pages/index.hbs index 8a332d8..e7851af 100644 --- a/src/views/pages/index.hbs +++ b/src/views/pages/index.hbs @@ -10,9 +10,16 @@
-
- +
+ help +
+
+
+ +
+ Inserer dans le champs ci-dessus l'url du fichier CSV bodacc à télécharger +
@@ -34,7 +41,14 @@
    - + {{#each form.columns.selected}} +
  • + +
  • + {{/each}}