arshtech commited on
Commit
be02f2d
Β·
verified Β·
1 Parent(s): 89cdca7

Update templates/appointment.html

Browse files
Files changed (1) hide show
  1. templates/appointment.html +18 -36
templates/appointment.html CHANGED
@@ -2,81 +2,63 @@
2
 
3
  {% block content %}
4
  <div class="max-w-2xl mx-auto bg-white rounded-lg shadow-lg p-8">
5
- <h2 class="text-2xl font-bold text-center mb-6">Book Test Drive - {{ car.name }}</h2>
6
 
7
- <!-- Car Details -->
8
- <div class="mb-6 p-4 bg-blue-50 rounded-lg">
9
- <h3 class="font-bold text-lg text-blue-600 mb-2">Car Details:</h3>
10
- <p><strong>Model:</strong> {{ car.name }}</p>
11
- <p><strong>Year:</strong> {{ car.year }}</p>
12
- <p><strong>Price:</strong> {{ car.price|format_price }}</p>
13
- <p><strong>Description:</strong> {{ car.description }}</p>
14
  </div>
15
 
16
  <form method="POST" action="{{ url_for('book_appointment', car_id=car._id) }}">
17
  <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
18
  <div>
19
- <label class="block text-gray-700 mb-2" for="name">Your Full Name</label>
20
  <input type="text" id="name" name="name" required
21
- class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500"
22
- placeholder="Enter your full name">
23
  </div>
24
 
25
  <div>
26
- <label class="block text-gray-700 mb-2" for="email">Email Address</label>
27
  <input type="email" id="email" name="email" required
28
- class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500"
29
- placeholder="Enter your email">
30
  </div>
31
 
32
  <div class="md:col-span-2">
33
- <label class="block text-gray-700 mb-2" for="address">Complete Address</label>
34
  <textarea id="address" name="address" required
35
- class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500"
36
- placeholder="Enter your complete address for verification"
37
- rows="3"></textarea>
38
  </div>
39
 
40
  <div>
41
- <label class="block text-gray-700 mb-2" for="phone">Mobile Number</label>
42
  <input type="tel" id="phone" name="phone" required
43
- class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500"
44
- placeholder="Enter 10-digit mobile number">
45
  </div>
46
 
47
  <div>
48
  <label class="block text-gray-700 mb-2" for="preferred_date">Preferred Date</label>
49
  <input type="date" id="preferred_date" name="preferred_date" required
50
- class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500">
51
  </div>
52
 
53
  <div>
54
  <label class="block text-gray-700 mb-2" for="preferred_time">Preferred Time</label>
55
  <input type="time" id="preferred_time" name="preferred_time" required
56
- class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500">
57
  </div>
58
  </div>
59
 
60
- <div class="mt-6 bg-yellow-50 p-4 rounded-lg">
61
- <h4 class="font-bold text-yellow-800 mb-2">πŸ“‹ Important Notes:</h4>
62
- <ul class="text-yellow-700 text-sm list-disc list-inside">
63
- <li>Please carry your driving license for the test drive</li>
64
- <li>Seller will contact you to confirm the appointment</li>
65
- <li>Test drive will be conducted at a mutually convenient location</li>
66
- <li>You can reschedule by contacting the seller directly</li>
67
- </ul>
68
- </div>
69
-
70
  <div class="mt-6">
71
  <button type="submit"
72
- class="w-full bg-green-600 text-white py-3 rounded-md hover:bg-green-700 transition duration-300 font-semibold text-lg">
73
- πŸš— Book Test Drive
74
  </button>
75
  </div>
76
  </form>
77
 
78
  <div class="mt-4 text-center">
79
- <a href="{{ url_for('index') }}" class="text-blue-600 hover:underline">← Back to Cars Listing</a>
80
  </div>
81
  </div>
82
  {% endblock %}
 
2
 
3
  {% block content %}
4
  <div class="max-w-2xl mx-auto bg-white rounded-lg shadow-lg p-8">
5
+ <h2 class="text-2xl font-bold text-center mb-6">Book Appointment for {{ car.name }}</h2>
6
 
7
+ <div class="mb-6 p-4 bg-gray-100 rounded-lg">
8
+ <h3 class="font-bold">Car Details:</h3>
9
+ <p>Year: {{ car.year }}</p>
10
+ <p>Price: ${{ car.price }}</p>
 
 
 
11
  </div>
12
 
13
  <form method="POST" action="{{ url_for('book_appointment', car_id=car._id) }}">
14
  <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
15
  <div>
16
+ <label class="block text-gray-700 mb-2" for="name">Your Name</label>
17
  <input type="text" id="name" name="name" required
18
+ class="w-full px-3 py-2 border border-gray-300 rounded-md">
 
19
  </div>
20
 
21
  <div>
22
+ <label class="block text-gray-700 mb-2" for="email">Email</label>
23
  <input type="email" id="email" name="email" required
24
+ class="w-full px-3 py-2 border border-gray-300 rounded-md">
 
25
  </div>
26
 
27
  <div class="md:col-span-2">
28
+ <label class="block text-gray-700 mb-2" for="address">Address</label>
29
  <textarea id="address" name="address" required
30
+ class="w-full px-3 py-2 border border-gray-300 rounded-md"></textarea>
 
 
31
  </div>
32
 
33
  <div>
34
+ <label class="block text-gray-700 mb-2" for="phone">Phone Number</label>
35
  <input type="tel" id="phone" name="phone" required
36
+ class="w-full px-3 py-2 border border-gray-300 rounded-md">
 
37
  </div>
38
 
39
  <div>
40
  <label class="block text-gray-700 mb-2" for="preferred_date">Preferred Date</label>
41
  <input type="date" id="preferred_date" name="preferred_date" required
42
+ class="w-full px-3 py-2 border border-gray-300 rounded-md">
43
  </div>
44
 
45
  <div>
46
  <label class="block text-gray-700 mb-2" for="preferred_time">Preferred Time</label>
47
  <input type="time" id="preferred_time" name="preferred_time" required
48
+ class="w-full px-3 py-2 border border-gray-300 rounded-md">
49
  </div>
50
  </div>
51
 
 
 
 
 
 
 
 
 
 
 
52
  <div class="mt-6">
53
  <button type="submit"
54
+ class="w-full bg-blue-600 text-white py-2 rounded-md hover:bg-blue-700">
55
+ Book Appointment
56
  </button>
57
  </div>
58
  </form>
59
 
60
  <div class="mt-4 text-center">
61
+ <a href="{{ url_for('index') }}" class="text-blue-600 hover:underline">← Back to Cars</a>
62
  </div>
63
  </div>
64
  {% endblock %}