2023-01-30 22:25:17 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
|
|
|
{% extends 'base.j2' %}
|
2023-11-15 20:38:51 +01:00
|
|
|
{% import 'wtf.j2' as wtf %}
|
2023-01-30 22:25:17 +01:00
|
|
|
|
|
|
|
{% block styles %}
|
|
|
|
{{super()}}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<div class="container">
|
|
|
|
<ul class="breadcrumbs">
|
|
|
|
<li class="breadcrumbs_item">
|
|
|
|
<a href="{{ url_for('entreprises.index') }}" class="breadcrumbs_link">Entreprises</a>
|
|
|
|
</li>
|
|
|
|
<li class="breadcrumbs_item">
|
|
|
|
<a href="" class="breadcrumbs_link breadcrumbs_link-active">Importation données</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<h1>{{ title }}</h1>
|
|
|
|
<br>
|
|
|
|
<div>
|
|
|
|
<a href="{{ url_for('entreprises.import_donnees_get_file_sample') }}">Obtenir la feuille excel à remplir</a>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4">
|
|
|
|
<p>
|
|
|
|
(*) champs requis
|
|
|
|
</p>
|
|
|
|
{{ wtf.quick_form(form, novalidate=True) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if not entreprises_import and not sites_import and not correspondants_import %}
|
|
|
|
<div>Feuille Entreprises</div>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td><b>Attribut</b></td>
|
|
|
|
<td><b>Type</b></td>
|
|
|
|
<td><b>Description</b></td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tr>
|
|
|
|
<td>siret (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>siret de l'entreprise</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>nom_entreprise (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>nom de l'entreprise</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>adresse (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>adresse de l'entreprise</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>ville (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>ville de l'entreprise</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>code_postal (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>code postal de l'entreprise</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>pays</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>pays de l'entreprise</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<div>Feuille Sites</div>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td><b>Attribut</b></td>
|
|
|
|
<td><b>Type</b></td>
|
|
|
|
<td><b>Description</b></td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tr>
|
|
|
|
<td>siret_entreprise (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>siret de l'entreprise</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>id_site (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>id du site (ne rien remplir pour créer un site)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>nom_site (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>nom du site</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>adresse (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>adresse du site</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>ville (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>ville du site</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>code_postal (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>code postal du site</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>pays (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>pays du site</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
<div>Feuille Correspondants (à utiliser pour les modifications)</div>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td><b>Attribut</b></td>
|
|
|
|
<td><b>Type</b></td>
|
|
|
|
<td><b>Description</b></td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tr>
|
|
|
|
<td>civilite (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>civilite du correspondant (H ou F)</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>nom (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>nom du correspondant</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>prenom (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>prenom du correspondant</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>telephone (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>telephone du correspondant</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>mail (*)</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>mail du correspondant</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>poste</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>poste du correspondant</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>service</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>service dans lequel travaille le correspondant</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>origine</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>origine du correspondant</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>notes</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>notes sur le correspondant</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>nom_site</td>
|
|
|
|
<td>text</td>
|
|
|
|
<td>nom du site lié au correspondant</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if entreprises_import %}
|
|
|
|
<br>
|
|
|
|
<div>Importation de {{ entreprises_import|length }} entreprise(s)</div>
|
|
|
|
{% for entreprise in entreprises_import %}
|
|
|
|
<div class="entreprise">
|
|
|
|
<div>
|
|
|
|
SIRET : {{ entreprise.siret }}<br>
|
|
|
|
Nom : {{ entreprise.nom }}<br>
|
|
|
|
Adresse : {{ entreprise.adresse }}<br>
|
|
|
|
Code postal : {{ entreprise.codepostal }}<br>
|
|
|
|
Ville : {{ entreprise.ville }}<br>
|
|
|
|
Pays : {{ entreprise.pays }}<br>
|
2023-11-15 20:38:51 +01:00
|
|
|
<a href="{{ url_for('entreprises.fiche_entreprise', entreprise_id=entreprise.id) }}"
|
2023-08-26 11:03:55 +02:00
|
|
|
rel="noopener noreferrer" target="_blank"
|
|
|
|
>Fiche entreprise</a>
|
2023-01-30 22:25:17 +01:00
|
|
|
</div>
|
|
|
|
{% for site in entreprise.sites %}
|
|
|
|
<div class="site">
|
|
|
|
Nom : {{ site.nom }}<br>
|
|
|
|
Adresse : {{ site.adresse }}<br>
|
|
|
|
Code postal : {{ site.codepostal }}<br>
|
|
|
|
Ville : {{ site.ville }}<br>
|
|
|
|
Pays : {{ site.pays }}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if sites_import %}
|
|
|
|
<br>
|
|
|
|
<div>Importation de {{ sites_import|length }} site(s)</div>
|
|
|
|
{% for site in sites_import %}
|
|
|
|
<div class="site">
|
|
|
|
Nom : {{ site.nom }}<br>
|
|
|
|
Adresse : {{ site.adresse }}<br>
|
|
|
|
Code postal : {{ site.codepostal }}<br>
|
|
|
|
Ville : {{ site.ville }}<br>
|
|
|
|
Pays : {{ site.pays }}<br>
|
2023-11-15 20:38:51 +01:00
|
|
|
<a href="{{ url_for('entreprises.fiche_entreprise', entreprise_id=site.entreprise_id)
|
2023-08-26 11:03:55 +02:00
|
|
|
}}" rel="noopener noreferrer" target="_blank"
|
|
|
|
>Fiche entreprise</a>
|
2023-01-30 22:25:17 +01:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if correspondants_import %}
|
|
|
|
<br>
|
|
|
|
<div>Importation de {{ correspondants_import|length }} correspondant(s)</div>
|
|
|
|
{% for correspondant in correspondants_import %}
|
|
|
|
<div class="correspondant">
|
|
|
|
<div>
|
|
|
|
Civilité : {{ correspondant.civilite|get_civilité }}<br>
|
|
|
|
Nom : {{ correspondant.nom }}<br>
|
|
|
|
Prénom : {{ correspondant.prenom }}<br>
|
|
|
|
{% if correspondant.telephone %}
|
|
|
|
Téléphone : {{ correspondant.telephone }}<br>
|
|
|
|
{% endif %}
|
|
|
|
{% if correspondant.mail %}
|
|
|
|
Mail : {{ correspondant.mail }}<br>
|
|
|
|
{% endif %}
|
|
|
|
{% if correspondant.poste %}
|
|
|
|
Poste : {{ correspondant.poste }}<br>
|
|
|
|
{% endif %}
|
|
|
|
{% if correspondant.service %}
|
|
|
|
Service : {{ correspondant.service }}<br>
|
|
|
|
{% endif %}
|
|
|
|
{% if correspondant.origine %}
|
|
|
|
Origine : {{ correspondant.origine }}<br>
|
|
|
|
{% endif %}
|
|
|
|
{% if correspondant.notes %}
|
|
|
|
Notes : {{ correspondant.notes }}<br>
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ url_for('entreprises.fiche_entreprise', entreprise_id=correspondant.site.entreprise.id) }}"
|
2023-08-26 11:03:55 +02:00
|
|
|
target="_blank" rel="noopener noreferrer">Fiche entreprise</a>
|
2023-01-30 22:25:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
2023-11-15 20:38:51 +01:00
|
|
|
{% endblock %}
|