Rafraîchit automatiquement pendant l'envoi du mail
This commit is contained in:
parent
2396c163bd
commit
b55d398bf8
1 changed files with 37 additions and 30 deletions
|
@ -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,37 +122,39 @@
|
|||
<hr>
|
||||
|
||||
<div class="columns is-centered">
|
||||
<div class="column is-two-thirds">
|
||||
<table class="table is-fullwidth is-bordered is-striped has-text-centered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans "Login" %}</th>
|
||||
<th>{% trans "Nom" %}</th>
|
||||
<th>{% trans "Email" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<div class="column is-narrow">
|
||||
<div class="table-container">
|
||||
<table class="table is-fullwidth is-bordered is-striped has-text-centered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans "Login" %}</th>
|
||||
<th>{% trans "Nom" %}</th>
|
||||
<th>{% trans "Email" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for v in voters %}
|
||||
<tr>
|
||||
<td>{{ v.base_username }}</td>
|
||||
<td>{{ v.full_name }}</td>
|
||||
<td>
|
||||
{{ v.email }}
|
||||
{% if v.has_valid_email %}
|
||||
<span class="icon has-text-success is-pulled-right">
|
||||
<i class="fas fa-check"></i>
|
||||
</span>
|
||||
{% elif v.has_valid_email is False %}
|
||||
<span class="icon has-text-danger is-pulled-right">
|
||||
<i class="fas fa-times"></i>
|
||||
</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<tbody>
|
||||
{% for v in voters %}
|
||||
<tr>
|
||||
<td>{{ v.base_username }}</td>
|
||||
<td>{{ v.full_name }}</td>
|
||||
<td>
|
||||
{{ v.email }}
|
||||
{% if v.has_valid_email %}
|
||||
<span class="icon has-text-success is-pulled-right">
|
||||
<i class="fas fa-check"></i>
|
||||
</span>
|
||||
{% elif v.has_valid_email is False %}
|
||||
<span class="icon has-text-danger is-pulled-right">
|
||||
<i class="fas fa-times"></i>
|
||||
</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue