pranav nachnekar | 7b9e309 | 2019-08-28 16:57:37 +0530 | [diff] [blame^] | 1 | {% 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"> |
| 45 | <div class="col-md time-slot unavailable" id="12pm">12 pm to 1 am</div> |
| 46 | <div class="col-md time-slot selected" id="1am">1 am to 2 am</div> |
| 47 | <div class="col-md time-slot" id="2am">2 am to 3 am</div> |
| 48 | <div class="col-md time-slot" id="3am">3 am to 4 am</div> |
| 49 | <div class="col-md time-slot" id="4am">4 am to 5 am</div> |
| 50 | <div class="col-md time-slot" id="5am">5 am to 6 am</div> |
| 51 | <div class="col-md time-slot" id="6am">6 am to 7 am</div> |
| 52 | <div class="col-md time-slot" id="7am">7 am to 8 am</div> |
| 53 | </div> |
| 54 | <div class="row"> |
| 55 | <div class=" col-md time-slot" id="8am">8 am to 9 am</div> |
| 56 | <div class=" col-md time-slot" id="9am">9 am to 10 am</div> |
| 57 | <div class=" col-md time-slot" id="10am">10 am to 11 am</div> |
| 58 | <div class=" col-md time-slot" id="11am">11 am to 12 am</div> |
| 59 | <div class=" col-md time-slot" id="12am">12 am to 1 pm</div> |
| 60 | <div class=" col-md time-slot" id="1pm">1 pm to 2 pm</div> |
| 61 | <div class=" col-md time-slot" id="2pm">2 pm to 3 pm</div> |
| 62 | <div class=" col-md time-slot" id="3pm">3 pm to 4pm</div> |
| 63 | </div> |
| 64 | <div class="row"> |
| 65 | <div class=" col-md time-slot" id="4pm">4pm to 5pm</div> |
| 66 | <div class=" col-md time-slot" id="5pm">5 pm to 6 pm</div> |
| 67 | <div class=" col-md time-slot" id="6pm">6 pm to 7 pm</div> |
| 68 | <div class=" col-md time-slot" id="7pm">7 pm to 8 pm</div> |
| 69 | <div class=" col-md time-slot" id="8pm">8 pm to 9 pm</div> |
| 70 | <div class=" col-md time-slot" id="9pm">9 pm to 10 pm</div> |
| 71 | <div class=" col-md time-slot" id="10pm">10 pm to 11 pm</div> |
| 72 | <div class=" col-md time-slot" id="11pm">11 pm to 12 pm</div> |
| 73 | </div> |
| 74 | <div class="row justify-content-center"> |
| 75 | <div class="col-md-4 align-self-center"> |
| 76 | <button class="form-control mt-5 btn btn-dark" onclick="next()"> |
| 77 | Next |
| 78 | </button> |
| 79 | </div> |
| 80 | </div> |
| 81 | {% endif %} |
| 82 | </div> |
| 83 | </div> |
| 84 | <!-- End of main content --> |
| 85 | {% endblock %} |