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: for booking in bookings:
sdate = booking.start_date sdate = booking.start_date
edate = booking.end_date edate = booking.end_date
stime = booking.start_time.hour() stime = booking.start_time.hour
etime = booking.end_time.hour()+1 etime = booking.end_time.hour+1
if edate != sdate: if edate != sdate:
break break
else: else:

View File

@ -5,4 +5,7 @@
line-height: 3.5em; line-height: 3.5em;
vertical-align: middle; vertical-align: middle;
padding-left: -1em; padding-left: -1em;
}
td{
background-color: lawngreen;
} }

View File

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