2022-01-26 18:42:48 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
|
|
|
{% 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 %}
|
2022-01-31 18:22:54 +01:00
|
|
|
|
2022-01-26 18:42:48 +01:00
|
|
|
<div class="container">
|
|
|
|
<h1>Liste des entreprises à valider</h1>
|
|
|
|
{% if entreprises %}
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-bordered table-hover">
|
|
|
|
<tr>
|
|
|
|
<th>SIRET</th>
|
|
|
|
<th>Nom</th>
|
|
|
|
<th>Adresse</th>
|
|
|
|
<th>Code postal</th>
|
|
|
|
<th>Ville</th>
|
|
|
|
<th>Pays</th>
|
|
|
|
<th>Action</th>
|
|
|
|
</tr>
|
|
|
|
{% for entreprise in entreprises %}
|
|
|
|
<tr class="table-row active">
|
|
|
|
<th><a href="{{ url_for('entreprises.fiche_entreprise_validation', id=entreprise.id) }}">{{ entreprise.siret }}</a></th>
|
|
|
|
<th>{{ entreprise.nom }}</th>
|
|
|
|
<th>{{ entreprise.adresse }}</th>
|
|
|
|
<th>{{ entreprise.codepostal }}</th>
|
|
|
|
<th>{{ entreprise.ville }}</th>
|
|
|
|
<th>{{ entreprise.pays }}</th>
|
|
|
|
<th>
|
2022-02-01 18:35:48 +01:00
|
|
|
<a class="btn btn-success" href="{{ url_for('entreprises.validate_entreprise', id=entreprise.id) }}">Valider</a>
|
2022-01-26 18:42:48 +01:00
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% else %}
|
|
|
|
<div>Aucune entreprise à valider</div>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|