2022-02-07 18:39:32 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% import 'bootstrap/wtf.html' as wtf %}
|
|
|
|
|
|
|
|
{% block styles %}
|
|
|
|
{{super()}}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block app_content %}
|
2022-02-08 16:40:32 +01:00
|
|
|
<h1>Importation entreprises</h1>
|
2022-02-07 18:39:32 +01:00
|
|
|
<br>
|
|
|
|
<div>
|
|
|
|
<a href="{{ url_for('entreprises.get_import_entreprises_file_sample') }}">Obtenir la feuille excel à remplir</a>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4">
|
|
|
|
{{ wtf.quick_form(form, novalidate=True) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-08 19:13:45 +01:00
|
|
|
|
2022-02-10 21:17:22 +01:00
|
|
|
{% if not entreprises_import %}
|
|
|
|
<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>
|
2022-02-22 21:52:32 +01:00
|
|
|
<tr><td>nom_entreprise</td><td>text</td><td>nom de l'entreprise</td></tr>
|
2022-02-10 21:17:22 +01:00
|
|
|
<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>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-02-08 19:13:45 +01:00
|
|
|
{% if entreprises_import %}
|
2022-02-09 20:09:14 +01:00
|
|
|
<br><div>Importation de {{ entreprises_import|length }} entreprise(s)</div>
|
2022-02-08 19:13:45 +01:00
|
|
|
{% 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 }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2022-02-07 18:39:32 +01:00
|
|
|
{% endblock %}
|