Compare commits
No commits in common. "aaae780530df0b8e83c06706861587afca8f5f22" and "6ad24a92a781c1a03a3eaa7f47e0c9bc47868ad9" have entirely different histories.
aaae780530
...
6ad24a92a7
39
app.py
39
app.py
|
@ -44,6 +44,45 @@ def orario():
|
|||
def calendario():
|
||||
logging.info("A user went up: Calendario")
|
||||
return render_template('html/calendario.html')
|
||||
|
||||
# Da sistemare
|
||||
@app.route('/api', methods = ['GET', 'POST'])
|
||||
def api():
|
||||
logging.info("A user went up: API")
|
||||
if(request.method == 'GET'):
|
||||
data = "hello world"
|
||||
return jsonify({'data': data})
|
||||
|
||||
@app.route('/login', methods = ['GET', 'POST'])
|
||||
def login():
|
||||
#Create login with Mongodb
|
||||
logging.info("A user went up: Login")
|
||||
message = 'Please login to your account'
|
||||
if "email" in session:
|
||||
return redirect(url_for("logged_in"))
|
||||
|
||||
if request.method == "POST":
|
||||
email = request.form.get("email")
|
||||
password = request.form.get("password")
|
||||
|
||||
|
||||
email_found = records.find_one({"email": email})
|
||||
if email_found:
|
||||
email_val = email_found['email']
|
||||
passwordcheck = email_found['password']
|
||||
|
||||
if bcrypt.checkpw(password.encode('utf-8'), passwordcheck):
|
||||
session["email"] = email_val
|
||||
return redirect(url_for('logged_in'))
|
||||
else:
|
||||
if "email" in session:
|
||||
return redirect(url_for("logged_in"))
|
||||
message = 'Wrong password'
|
||||
return render_template('login.html', message=message)
|
||||
else:
|
||||
message = 'Email not found'
|
||||
return render_template('login.html', message=message)
|
||||
return render_template('login.html', message=message)
|
||||
|
||||
if __name__ == '__main__':
|
||||
logging.info("Web server started!")
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
.styled-table {
|
||||
border-collapse: collapse;
|
||||
margin: 25px 0;
|
||||
font-size: 0.9em;
|
||||
font-family: sans-serif;
|
||||
min-width: 400px;
|
||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.styled-table thead tr {
|
||||
background-color: #009879;
|
||||
color: #ffffff;
|
||||
text-align: left;
|
||||
}
|
||||
.styled-table th,
|
||||
.styled-table td {
|
||||
padding: 12px 15px;
|
||||
}
|
||||
|
||||
.styled-table tbody tr {
|
||||
border-bottom: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.styled-table tbody tr:nth-of-type(even) {
|
||||
background-color: #f3f3f3;
|
||||
}
|
||||
|
||||
.styled-table tbody tr:last-of-type {
|
||||
border-bottom: 2px solid #009879;
|
||||
}
|
||||
|
||||
.styled-table tbody tr.active-row {
|
||||
font-weight: bold;
|
||||
color: #009879;
|
||||
}
|
|
@ -1,260 +1,252 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" type="text/css" href="{{url_for('.static', filename='css/index.css')}}">
|
||||
{% endblock %}
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<table class="styled-table">
|
||||
<tr>
|
||||
<th scope="col">Lunedì</th>
|
||||
<th scope="col">Martedì</th>
|
||||
<th scope="col">Mercoledì</th>
|
||||
<th scope="col">Giovedì</th>
|
||||
<th scope="col">Venerdì</th>
|
||||
<th scope="col">Sabato</th>
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][0]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][0]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][0]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][0]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][0]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][0]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][0]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][0]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][0]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][0]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][0]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][0]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][0]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][0]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][0]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][0]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][0]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][0]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][1]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][1]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][1]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][1]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][1]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][1]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][1]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][1]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][1]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][1]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][1]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][1]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][1]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][1]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][1]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][1]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][1]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][1]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][2]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][2]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][2]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][2]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][2]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][2]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][2]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][2]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][2]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][2]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][2]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][2]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][2]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][2]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][2]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][2]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][2]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][2]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][3]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][3]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][3]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][3]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][3]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][3]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][3]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][3]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][3]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][3]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][3]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][3]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][3]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][3]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][3]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][3]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][3]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][3]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][4]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][4]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][4]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][4]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][4]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][4]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][4]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][4]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][4]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][4]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][4]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][4]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][4]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][4]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][4]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][4]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][4]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][4]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][5]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][5]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][5]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][5]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][5]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][5]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][5]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][5]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][5]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][5]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][5]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][5]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][5]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][5]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][5]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][5]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][5]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][5]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][6]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][6]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][6]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][6]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][6]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][6]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][6]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][6]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][6]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][6]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][6]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][6]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][6]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][6]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][6]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][6]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][6]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][6]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][7]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][7]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][7]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][7]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][7]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][7]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][7]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][7]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][7]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][7]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][7]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][7]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][7]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][7]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][7]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][7]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][7]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][7]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
<table>
|
||||
<tr>
|
||||
<th scope="col">Lunedì</th>
|
||||
<th scope="col">Martedì</th>
|
||||
<th scope="col">Mercoledì</th>
|
||||
<th scope="col">Giovedì</th>
|
||||
<th scope="col">Venerdì</th>
|
||||
<th scope="col">Sabato</th>
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][0]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][0]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][0]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][0]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][0]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][0]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][0]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][0]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][0]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][0]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][0]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][0]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][0]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][0]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][0]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][0]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][0]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][0]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][1]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][1]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][1]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][1]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][1]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][1]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][1]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][1]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][1]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][1]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][1]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][1]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][1]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][1]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][1]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][1]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][1]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][1]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][2]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][2]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][2]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][2]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][2]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][2]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][2]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][2]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][2]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][2]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][2]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][2]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][2]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][2]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][2]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][2]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][2]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][2]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][3]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][3]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][3]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][3]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][3]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][3]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][3]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][3]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][3]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][3]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][3]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][3]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][3]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][3]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][3]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][3]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][3]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][3]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][4]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][4]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][4]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][4]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][4]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][4]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][4]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][4]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][4]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][4]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][4]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][4]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][4]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][4]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][4]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][4]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][4]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][4]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][5]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][5]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][5]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][5]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][5]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][5]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][5]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][5]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][5]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][5]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][5]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][5]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][5]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][5]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][5]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][5]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][5]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][5]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][6]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][6]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][6]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][6]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][6]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][6]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][6]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][6]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][6]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][6]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][6]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][6]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][6]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][6]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][6]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][6]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][6]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][6]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][7]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][7]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][7]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][7]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][7]['Subject'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][7]['Subject'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][7]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][7]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][7]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][7]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][7]['Teacher'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][7]['Teacher'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
{% for i in data %}
|
||||
<td>{{ i['School Subject']['Monday'][7]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Tuesday'][7]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Wednesday'][7]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Thursday'][7]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Friday'][7]['Room'] }}</td>
|
||||
<td>{{ i['School Subject']['Saturday'][7]['Room'] }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue