From e7e0cfd2379b7a8ff0eaa03979116b98038ec1ce Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Fri, 17 Apr 2020 11:27:49 +0200 Subject: [PATCH] =?UTF-8?q?Dob=C5=99ichovice:=20Dal=C5=A1=C3=AD=20p=C5=99i?= =?UTF-8?q?zp=C5=AFsobov=C3=A1n=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/main.html | 12 ++++-------- app/zoom.py | 4 ---- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/app/templates/main.html b/app/templates/main.html index aa0d79e..3539863 100644 --- a/app/templates/main.html +++ b/app/templates/main.html @@ -6,20 +6,16 @@ </head> <body> <h1>Zoom ZŠ Dobřichovice</h1> - <p id=intro>This table summarizes meetings scheduled in our Zoom accounts. Use standard Zoom interface - to create and modify reservations. Please keep in mind that there is a slight delay between Zoom - and this table. Please report all bugs to Martin Mareš.</p> <form id=f method=GET action="?"> - <label for=date>Date:</label> + <label for=date>Datum:</label> <input id=date type=date name=date step=1 value="{{ g.date }}"> <button type=button onclick="document.getElementById('date').stepDown(); document.getElementById('f').requestSubmit()">←</button> <button type=button onclick="document.getElementById('date').stepUp(); document.getElementById('f').requestSubmit()">→</button> <select name=hours> - <option value=0{{ " selected" if g.hours==0 else "" }}>Study hours</option> - <option value=1{{ " selected" if g.hours==1 else "" }}>Working hours</option> - <option value=2{{ " selected" if g.hours==2 else "" }}>Whole day</option> + <option value=1{{ " selected" if g.hours==0 else "" }}>Školní hodiny</option> + <option value=2{{ " selected" if g.hours==1 else "" }}>Celý den</option> </select> - <input type=submit name=submit value="Submit"> + <input type=submit name=submit value="Odeslat"> </form> <h2>Schedule for {{ g.dow }} {{ g.date }}</h2> diff --git a/app/zoom.py b/app/zoom.py index 86cf5b2..858a6c3 100644 --- a/app/zoom.py +++ b/app/zoom.py @@ -88,10 +88,6 @@ def main_page(): g.hours = 0 if g.hours == 0: - slot_size = 100*60 - first_slot = 9*3600 - num_slots = 10 - elif g.hours == 1: slot_size = 3600 first_slot = 8*3600 num_slots = 16 -- GitLab