Rafraîchit automatiquement pendant l'envoi du mail

This commit is contained in:
Tom Hubrecht 2021-08-20 12:12:15 +02:00
parent 2396c163bd
commit b55d398bf8

View file

@ -3,6 +3,11 @@
{% block extra_head %}
{# Pendant l'envoi on rafraîchit automatiquement #}
{% if election.sent_mail is None %}
<meta http-equiv="refresh" content="20">
{% endif %}
<script>
{% if not election.sent_mail %}
document.addEventListener('DOMContentLoaded', () => {
@ -117,7 +122,8 @@
<hr>
<div class="columns is-centered">
<div class="column is-two-thirds">
<div class="column is-narrow">
<div class="table-container">
<table class="table is-fullwidth is-bordered is-striped has-text-centered">
<thead>
<tr>
@ -149,6 +155,7 @@
</tbody>
</table>
</div>
</div>
</div>
{% endif %}