pranav nachnekar | 2791054 | 2019-09-03 12:04:52 +0530 | [diff] [blame] | 1 | {% extends "templates/web.html" %} |
| 2 | |
| 3 | {% block title %}{{ _("Book Appointment") }}{% endblock %} |
| 4 | |
Pranav Nachanekar | 10711dd | 2019-09-09 15:41:20 +0530 | [diff] [blame] | 5 | {% block script %} |
Pranav Nachanekar | 110f4ea | 2019-09-09 17:04:25 +0530 | [diff] [blame] | 6 | <script src="assets/js/moment-bundle.min.js"></script> |
Pranav Nachnekar | 6aa7632 | 2019-12-10 16:05:28 +0000 | [diff] [blame] | 7 | <script src="book_appointment/index.js"></script> |
Pranav Nachanekar | 10711dd | 2019-09-09 15:41:20 +0530 | [diff] [blame] | 8 | {% endblock %} |
| 9 | |
pranav nachnekar | 2791054 | 2019-09-03 12:04:52 +0530 | [diff] [blame] | 10 | {% block page_content %} |
| 11 | <div class="container"> |
| 12 | <!-- title: Book an appointment --> |
Pranav Nachanekar | 10711dd | 2019-09-09 15:41:20 +0530 | [diff] [blame] | 13 | <div id="select-date-time"> |
0Pranav | 29c7d5f | 2019-10-15 16:43:18 +0530 | [diff] [blame] | 14 | <div class="text-center mt-5"> |
Ernesto Ruiz | e683ccc | 2022-09-26 07:59:13 -0600 | [diff] [blame] | 15 | <h3>{{ _("Book an appointment") }}</h3> |
| 16 | <p class="lead text-muted" id="lead-text">{{ _("Select the date and your timezone") }}</p> |
pranav nachnekar | 2791054 | 2019-09-03 12:04:52 +0530 | [diff] [blame] | 17 | </div> |
| 18 | <div class="row justify-content-center mt-3"> |
Pranav Nachanekar | 10711dd | 2019-09-09 15:41:20 +0530 | [diff] [blame] | 19 | <div class="col-md-6 align-self-center "> |
| 20 | <div class="row"> |
Pranav Nachanekar | 110f4ea | 2019-09-09 17:04:25 +0530 | [diff] [blame] | 21 | <input type="date" oninput="on_date_or_timezone_select()" name="appointment-date" |
| 22 | id="appointment-date" class="form-control mt-3 col-md m-3"> |
| 23 | <select name="appointment-timezone" oninput="on_date_or_timezone_select()" id="appointment-timezone" |
0Pranav | c72e1f8 | 2019-11-13 12:59:05 +0530 | [diff] [blame] | 24 | class="form-control m-3 col-md"> |
pranav nachnekar | 2791054 | 2019-09-03 12:04:52 +0530 | [diff] [blame] | 25 | </select> |
pranav nachnekar | 2791054 | 2019-09-03 12:04:52 +0530 | [diff] [blame] | 26 | </div> |
| 27 | </div> |
| 28 | </div> |
Pranav Nachanekar | 4856645 | 2019-10-03 12:45:42 +0530 | [diff] [blame] | 29 | <div class="mt-3" id="timeslot-container"> |
Pranav Nachanekar | 110f4ea | 2019-09-09 17:04:25 +0530 | [diff] [blame] | 30 | |
pranav nachnekar | 2791054 | 2019-09-03 12:04:52 +0530 | [diff] [blame] | 31 | </div> |
| 32 | <div class="row justify-content-center mt-3"> |
0Pranav | c31808f | 2019-11-13 16:47:51 +0530 | [diff] [blame] | 33 | <div class="col-md-4 mb-3"> |
Ernesto Ruiz | e683ccc | 2022-09-26 07:59:13 -0600 | [diff] [blame] | 34 | <button class="btn btn-primary form-control" id="next-button">{{ _("Next") }}</button> |
pranav nachnekar | 2791054 | 2019-09-03 12:04:52 +0530 | [diff] [blame] | 35 | </div> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
Pranav Nachanekar | 10711dd | 2019-09-09 15:41:20 +0530 | [diff] [blame] | 39 | <!--Enter Details--> |
0Pranav | ad01326 | 2019-10-15 16:45:37 +0530 | [diff] [blame] | 40 | <div id="enter-details" class="mb-5"> |
| 41 | <div class="text-center mt-5"> |
Ernesto Ruiz | e683ccc | 2022-09-26 07:59:13 -0600 | [diff] [blame] | 42 | <h3>{{ _("Add details") }}</h3> |
| 43 | <p class="lead text-muted">{{ _("Selected date is") }} <span class="date-span"></span> {{ _("at") }} <span class="time-span"> |
Pranav Nachanekar | 10711dd | 2019-09-09 15:41:20 +0530 | [diff] [blame] | 44 | </span></p> |
| 45 | </div> |
| 46 | <div class="row justify-content-center mt-3"> |
| 47 | <div class="col-md-4 align-items-center"> |
Pranav Nachanekar | c9cf5ae | 2019-09-24 12:08:37 +0530 | [diff] [blame] | 48 | <form id="customer-form" action='#'> |
Ernesto Ruiz | e683ccc | 2022-09-26 07:59:13 -0600 | [diff] [blame] | 49 | <input class="form-control mt-3" type="text" name="customer_name" id="customer_name" placeholder="{{ _('Your Name (required)') }}" required> |
Pranav Nachanekar | c9cf5ae | 2019-09-24 12:08:37 +0530 | [diff] [blame] | 50 | <input class="form-control mt-3" type="tel" name="customer_number" id="customer_number" placeholder="+910000000000"> |
| 51 | <input class="form-control mt-3" type="text" name="customer_skype" id="customer_skype" placeholder="Skype"> |
Ernesto Ruiz | e683ccc | 2022-09-26 07:59:13 -0600 | [diff] [blame] | 52 | <input class="form-control mt-3"type="email" name="customer_email" id="customer_email" placeholder="{{ _('Email Address (required)') }}" required> |
0Pranav | ad01326 | 2019-10-15 16:45:37 +0530 | [diff] [blame] | 53 | |
Pranav Nachanekar | 10711dd | 2019-09-09 15:41:20 +0530 | [diff] [blame] | 54 | <textarea class="form-control mt-3" name="customer_notes" id="customer_notes" cols="30" rows="10" |
Ernesto Ruiz | e683ccc | 2022-09-26 07:59:13 -0600 | [diff] [blame] | 55 | placeholder="{{ _('Notes') }}"></textarea> |
Pranav Nachanekar | c9cf5ae | 2019-09-24 12:08:37 +0530 | [diff] [blame] | 56 | </form> |
0Pranav | b1e9fb9 | 2019-11-13 15:32:56 +0530 | [diff] [blame] | 57 | <div class="row mt-3 " id="submit-button-area"> |
Ernesto Ruiz | e683ccc | 2022-09-26 07:59:13 -0600 | [diff] [blame] | 58 | <div class="col-md mt-3" style="grid-area: back;"><button class="btn btn-dark form-control" onclick="initialise_select_date()">{{ _("Go back") }}</button></div> |
| 59 | <div class="col-md mt-3" style="grid-area: submit;"><button class="btn btn-primary form-control " onclick="submit()" id="submit-button">{{ _("Submit") }}</button></div> |
Pranav Nachanekar | a322b15 | 2019-09-11 14:25:26 +0530 | [diff] [blame] | 60 | </div> |
Pranav Nachanekar | 10711dd | 2019-09-09 15:41:20 +0530 | [diff] [blame] | 61 | </div> |
| 62 | </div> |
| 63 | </div> |
| 64 | </div> |
pranav nachnekar | 2791054 | 2019-09-03 12:04:52 +0530 | [diff] [blame] | 65 | |
Ankush Menat | 4551d7d | 2021-08-19 13:41:10 +0530 | [diff] [blame] | 66 | {% endblock %} |