This commit is contained in:
Tobias Haegele 2018-06-09 05:14:49 +02:00
parent 937656c5d1
commit 70df3fbea7
3 changed files with 6 additions and 3 deletions

View File

@ -24,8 +24,8 @@ def booking(request):
for booking in bookings:
sdate = booking.start_date
edate = booking.end_date
stime = booking.start_time.hour()
etime = booking.end_time.hour()+1
stime = booking.start_time.hour
etime = booking.end_time.hour+1
if edate != sdate:
break
else:

View File

@ -6,3 +6,6 @@
vertical-align: middle;
padding-left: -1em;
}
td{
background-color: lawngreen;
}

View File

@ -1,7 +1,7 @@
{% extends 'base.jinja' %}
{% block content %}
{% for day in multd%}
$("#"+day[0]+"-"+day[1]).css("background-color", "red");
$("#"+day[0] + day[1]-1 + "-" + day[1]).css("background-color", "red");
{% endfor %}
<table class="table table-hover table-light">
<thead>