This commit is contained in:
piair
2023-06-18 17:40:59 +02:00
parent b201c68aa9
commit 08b593eeb9
11 changed files with 146 additions and 100 deletions

View File

@ -9,7 +9,7 @@
</tr>
<tr>
<td>
<button class="unselected" onclick="location.href = '/accounts';">accounts</button>
<button class="unselected" onclick="location.href = '/config';">config</button>
</td>
</tr>
<tr>
@ -39,14 +39,30 @@
{%if not current_user.is_authenticated %}
<button class="unselected" onclick="location.href = '/login';">login</button>
{% else %}
{% else %}
<h1>Not Implemented, watch terminal</h1>
<form method="post" action="/override/">
<input type="submit" name="data" value="Run bot" class="button"/>
<table>
{% for i in data %}
<tr>
<td>{{data[i]['name']}}</td>
<td>
<input type="time" id="{{i}}" name="time{{i}}" value="{{data[i]['time']}}">
</td>
<td>
<input type="checkbox" id="switch{{i}}" name="switch{{i}}" {{ "checked" if data[i]['enabled'] == True else "" }}/>
<label for="switch{{i}}">
Toggle
</label>
</td>
</tr>
{% endfor %}
</table>
<input type="submit" name="data" value="Update" class="button"/>
</form>
{% endif %}