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