MsRewards/Flask/templates/vnc_get.html

51 lines
1.7 KiB
HTML
Raw Normal View History

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-28 15:03:08 +02:00
{% for i in range(1,6) %}
<tr heigh="15%">
<td id="compte_{{i}}"></td>
<td><input type="checkbox" id="compte_{{i}}" value="unban"></td>
<td><input type="checkbox" id="compte_{{i}}" value="tout"></td>
<td><input type="checkbox" id="compte_{{i}}" value="pc"></td>
<td><input type="checkbox" id="compte_{{i}}" value="mobile"></td>
<td><input type="checkbox" id="compte_{{i}}" value="log_points"></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 %}