push
This commit is contained in:
parent
937656c5d1
commit
70df3fbea7
@ -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:
|
||||
|
||||
@ -6,3 +6,6 @@
|
||||
vertical-align: middle;
|
||||
padding-left: -1em;
|
||||
}
|
||||
td{
|
||||
background-color: lawngreen;
|
||||
}
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user