You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1013 B
30 lines
1013 B
{% extends 'admin_template.html' %}{% block 'contenu' %} |
|
<table class="table table-striped"> |
|
<thead> |
|
<tr> |
|
<th scope="col"></th>{% for i in nb_challenges %} |
|
<th scope="col">Challenge {{i}}</th>{% endfor %} |
|
</tr> |
|
</thead> |
|
<tbody>{% for data in liste_equipe_challenges %} |
|
<tr> |
|
<td><strong>{{data.equipe.nom}}</strong><br/><u>Code :</u> {{data.equipe.code}}{{data.temps_equipe|safe}}</td>{% for affichage in data.liste_affichage %} |
|
<td class='{{affichage.class}}'>{{affichage.text|safe}}</td>{% endfor %} |
|
</tr>{% endfor %} |
|
</tbody> |
|
</table> |
|
<div class="w-25 p-3 d-flex flex-row align-items-center"> |
|
Réactualisation : <input id="refresh" type="number" onchange="updateRefresh()" class="form-control" value="60"> secondes |
|
</div> |
|
<script> |
|
const refreshElement = document.getElementById("refresh") |
|
setInterval("refresh()", refreshElement.value*1000) |
|
|
|
function updateRefresh(){ |
|
setInterval("refresh()", refreshElement.value*1000); |
|
} |
|
|
|
function refresh(){ |
|
location.reload(); |
|
} |
|
</script>{% endblock %}
|
|
|