2023-09-27 20:20:09 +02:00
|
|
|
|
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block left_pannel %}override{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{%if not current_user.is_authenticated %}
|
|
|
|
<button class="unselected" onclick="location.href = '/login';">login</button>
|
|
|
|
{% else %}
|
2023-09-28 15:03:08 +02:00
|
|
|
<script>data = JSON.parse('{{configs|tojson}}'); </script>
|
2023-09-27 20:20:09 +02:00
|
|
|
|
2023-09-28 15:03:08 +02:00
|
|
|
<script>
|
|
|
|
|
|
|
|
function change_override(value, data) {
|
|
|
|
for (let i = 1; i < 6; i++) {
|
|
|
|
document.getElementById("compte_"+ i).innerHTML = data[parseInt(value)]['accounts'][i]["mail"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<form method="post" action="/override/" height="90%">
|
|
|
|
<select onchange="change_override(this.value, data)" name="config">
|
|
|
|
{% for i in configs %}
|
|
|
|
<option id="{{configs[i]['name']}}" value="{{i}}">{{configs[i]['name']}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
<table height="90%" class="lines">
|
2023-09-27 20:20:09 +02:00
|
|
|
<tr>
|
2023-09-28 15:03:08 +02:00
|
|
|
<td width="30%">name</td>
|
|
|
|
<td width="14%">Unban</td>
|
|
|
|
<td width="14%">tout</td>
|
|
|
|
<td width="14%">pc</td>
|
|
|
|
<td width="14%">mobile</td>
|
|
|
|
<td width="14%">log points</td>
|
2023-09-27 20:20:09 +02:00
|
|
|
</tr>
|
2023-09-30 18:16:47 +02:00
|
|
|
{% for i in range(0,5) %}
|
2023-09-28 15:03:08 +02:00
|
|
|
<tr heigh="15%">
|
|
|
|
<td id="compte_{{i}}"></td>
|
2023-09-30 16:29:50 +02:00
|
|
|
<td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="unban"></td>
|
|
|
|
<td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="tout"></td>
|
2023-09-30 17:23:37 +02:00
|
|
|
<td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="daily"></td>
|
2023-09-30 16:29:50 +02:00
|
|
|
<td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="pc"></td>
|
|
|
|
<td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="mobile"></td>
|
2023-09-27 20:20:09 +02:00
|
|
|
</tr>
|
2023-09-28 15:03:08 +02:00
|
|
|
{% endfor %}
|
|
|
|
|
2023-09-27 20:20:09 +02:00
|
|
|
</table>
|
2023-09-28 15:03:08 +02:00
|
|
|
|
|
|
|
<input type="submit" name="VNC" id="submit" value="Start" class="confirm" style="width:60%;"/>
|
|
|
|
</form>
|
2023-09-27 20:20:09 +02:00
|
|
|
{% endif %}
|
|
|
|
{%endblock %}
|