forked from ScoDoc/ScoDoc
59 lines
2.3 KiB
HTML
59 lines
2.3 KiB
HTML
|
{# -*- 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">
|
||
|
{{ 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>
|
||
|
<tr><td>entreprise_id</td><td>integer</td><td>l'id de l'entreprise</td></tr>
|
||
|
</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 %}
|