MonScoDocEssai/app/templates/entreprises/contacts.html

52 lines
2.0 KiB
HTML
Raw Normal View History

2021-12-29 14:41:33 +01:00
{# -*- mode: jinja-html -*- #}
2021-12-23 23:21:47 +01:00
{% extends 'base.html' %}
{% block app_content %}
{% if logs %}
<div class="container">
<h3>Dernières opérations</h3>
<ul>
{% for log in logs %}
<li><span style="margin-right: 10px;">{{ log.date.strftime('%d %b %Hh%M') }}</span><span>{{ log.text|safe }} par {{ log.authenticated_user|get_nomcomplet }}</span></li>
{% endfor %}
</ul>
</div>
{% endif %}
<div class="container">
<h1>Liste des contacts</h1>
{% if contacts %}
<div class="table-responsive">
<table class="table table-bordered table-hover">
<tr>
<th>Nom</th>
<th>Prenom</th>
<th>Telephone</th>
<th>Mail</th>
2021-12-29 19:40:57 +01:00
<th>Poste</th>
<th>Service</th>
2021-12-23 23:21:47 +01:00
<th>Entreprise</th>
</tr>
{% for contact in contacts %}
<tr class="table-row active">
<th>{{ contact[0].nom }}</th>
<th>{{ contact[0].prenom }}</th>
<th>{{ contact[0].telephone }}</th>
<th>{{ contact[0].mail }}</th>
2021-12-29 19:40:57 +01:00
<th>{{ contact[0].poste}}</th>
<th>{{ contact[0].service}}</th>
2021-12-23 23:21:47 +01:00
<th><a href="{{ url_for('entreprises.fiche_entreprise', id=contact[1].id) }}">{{ contact[1].nom }}</a></th>
</tr>
{% endfor %}
</table>
{% else %}
<div>Aucun contact présent dans la base</div>
</div>
{% endif %}
2021-12-27 11:48:58 +01:00
<div>
{% if contacts %}
<a class="btn btn-default" href="{{ url_for('entreprises.export_contacts') }}">Exporter la liste des contacts</a>
2021-12-29 19:40:57 +01:00
<a class="btn btn-default" href="{{ url_for('entreprises.export_contacts_bis') }}">Exporter la liste des contacts avec leur entreprise</a>
2021-12-27 11:48:58 +01:00
{% endif %}
</div>
2021-12-23 23:21:47 +01:00
</div>
{% endblock %}