2023-06-17 16:52:47 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block left_pannel %}
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button class="selected" onclick="location.href = '/override';">override</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2023-06-18 17:40:59 +02:00
|
|
|
<button class="unselected" onclick="location.href = '/config';">config</button>
|
2023-06-17 16:52:47 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button class="unselected" onclick="location.href = '/discord';">discord</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button class="unselected" onclick="location.href = '/database';">database</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button class="unselected" onclick="location.href = '/proxy';">proxy</button>
|
|
|
|
</td>
|
2023-08-24 14:36:24 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button class="stats" onclick="location.href = '/grafana';">proxy</button>
|
|
|
|
</td>
|
2023-06-17 16:52:47 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button class="unselected" onclick="location.href = '/settings';">settings</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{%if not current_user.is_authenticated %}
|
|
|
|
<button class="unselected" onclick="location.href = '/login';">login</button>
|
2023-06-18 17:40:59 +02:00
|
|
|
{% else %}
|
2023-06-17 16:52:47 +02:00
|
|
|
|
2023-06-18 17:40:59 +02:00
|
|
|
<form method="post" action="/override/">
|
|
|
|
<table>
|
|
|
|
{% for i in data %}
|
|
|
|
<tr>
|
|
|
|
<td>{{data[i]['name']}}</td>
|
|
|
|
<td>
|
2023-06-18 18:32:06 +02:00
|
|
|
<input type="time" id="{{i}}" name="time{{i}}" value="{{data[i]['time']}}" required>
|
2023-06-18 17:40:59 +02:00
|
|
|
</td>
|
|
|
|
<td>
|
2023-06-18 18:32:06 +02:00
|
|
|
<input type="checkbox" id="switch{{i}}" name="switch{{i}}" {{ "checked" if data[i]['enabled'] == True else "" }} />
|
2023-06-18 17:40:59 +02:00
|
|
|
<label for="switch{{i}}">
|
|
|
|
Toggle
|
|
|
|
</label>
|
|
|
|
</td>
|
2023-06-17 16:52:47 +02:00
|
|
|
|
2023-06-18 17:40:59 +02:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2023-06-17 16:52:47 +02:00
|
|
|
|
2023-06-18 17:40:59 +02:00
|
|
|
</table>
|
|
|
|
|
2023-06-17 16:52:47 +02:00
|
|
|
|
2023-06-18 17:40:59 +02:00
|
|
|
<input type="submit" name="data" value="Update" class="button"/>
|
2023-06-17 16:52:47 +02:00
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{%endblock %}
|