2022-02-10 21:17:22 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% import 'bootstrap/wtf.html' as wtf %}
|
|
|
|
|
|
|
|
{% block styles %}
|
|
|
|
{{super()}}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<h1>Importation contacts</h1>
|
|
|
|
<br>
|
|
|
|
<div>
|
|
|
|
<a href="{{ url_for('entreprises.get_import_contacts_file_sample') }}">Obtenir la feuille excel à remplir</a>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4">
|
2022-02-28 18:57:05 +01:00
|
|
|
<p>
|
|
|
|
(*) champs requis
|
|
|
|
</p>
|
2022-02-10 21:17:22 +01:00
|
|
|
{{ wtf.quick_form(form, novalidate=True) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if not contacts_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>nom</td><td>text</td><td>nom du contact</td></tr>
|
|
|
|
<tr><td>prenom</td><td>text</td><td>prenom du contact</td></tr>
|
|
|
|
<tr><td>telephone</td><td>text</td><td>telephone du contact</td></tr>
|
|
|
|
<tr><td>mail</td><td>text</td><td>mail du contact</td></tr>
|
|
|
|
<tr><td>poste</td><td>text</td><td>poste du contact</td></tr>
|
|
|
|
<tr><td>service</td><td>text</td><td>service dans lequel travaille le contact</td></tr>
|
2022-02-22 21:52:32 +01:00
|
|
|
<tr><td>entreprise_siret</td><td>integer</td><td>SIRET de l'entreprise</td></tr>
|
2022-02-10 21:17:22 +01:00
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if contacts_import %}
|
|
|
|
<br><div>Importation de {{ contacts_import|length }} contact(s)</div>
|
|
|
|
{% for contact in contacts_import %}
|
|
|
|
<div class="contact">
|
|
|
|
<div>
|
|
|
|
Nom : {{ contact.nom }}<br>
|
|
|
|
Prénom : {{ contact.prenom }}<br>
|
|
|
|
{% if contact.telephone %}
|
|
|
|
Téléphone : {{ contact.telephone }}<br>
|
|
|
|
{% endif %}
|
|
|
|
{% if contact.mail %}
|
|
|
|
Mail : {{ contact.mail }}<br>
|
|
|
|
{% endif %}
|
|
|
|
{% if contact.poste %}
|
|
|
|
Poste : {{ contact.poste }}<br>
|
|
|
|
{% endif %}
|
|
|
|
{% if contact.service %}
|
|
|
|
Service : {{ contact.service }}<br>
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ url_for('entreprises.fiche_entreprise', id=contact.entreprise_id )}}">lien vers l'entreprise</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|