blob: 2a8c5c916c81d4c47179acba8aa1a67fd8035a68 [file] [log] [blame]
pranav nachnekar7b9e3092019-08-28 16:57:37 +05301{% extends "templates/web.html" %}
2
3{% block title %}{{ _("Book Appointment") }}{% endblock %}
4
5{% block page_content %}
6<style>
7 .time-slot {
8 margin: 0 0;
9 border: 0.5px solid #cccccc;
10 min-height: 100px;
11 }
12
13 .time-slot:hover {
14 background: #ddd;
15 }
16
17 .time-slot.unavailable {
18 background: #bbb;
19
20 color: #777777
21 }
22
23 input[type="radio"] {
24 visibility: hidden;
25 display: none;
26 }
27
28 .time-slot.selected {
29 color: white;
30 background: #5e64ff;
31 }
32</style>
33<div class="container">
34 <div class="text-center mb-5">
35 {% if is_holiday %}
36 <h3> This day is a holiday</h3>
37 {% else %}
38 <h3>Pick A Time Slot</h3>
39 <h4>Selected date is {{ date }}</h4>
40 </div>
41 <!-- Start of main content-->
42
43 <div class="mt-3 justify-content-center">
44 <div class="row">
pranav nachnekardbd72ea2019-08-29 16:56:19 +053045 {% for timeslot in timeslots %}
46 <div class="col-md time-slot {% if timeslot.unavailable %}unavailable{% endif %}" id="{{ timeslot.time.time() }}">{{ timeslot.time.time().strftime('%H : %M') }}</div>
47 {% endfor %}
pranav nachnekar7b9e3092019-08-28 16:57:37 +053048 </div>
49 <div class="row justify-content-center">
50 <div class="col-md-4 align-self-center">
51 <button class="form-control mt-5 btn btn-dark" onclick="next()">
52 Next
53 </button>
54 </div>
55 </div>
56 {% endif %}
57 </div>
58</div>
59<!-- End of main content -->
60{% endblock %}