MsRewards-Reborn/Flask/templates/schedule.html

35 lines
933 B
HTML
Raw Normal View History

2023-06-17 16:52:47 +02:00
{% extends "base.html" %}
2023-09-20 13:13:41 +02:00
{% block left_pannel %}schedule{% endblock %}
2023-06-17 16:52:47 +02:00
{% 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-10-04 18:40:49 +02:00
<form method="post" action="/schedule/">
2023-06-18 17:40:59 +02:00
<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-09-28 15:03:08 +02:00
<input type="checkbox" class="toogle" 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 %}