Update templates/register.html
Browse files- templates/register.html +39 -54
templates/register.html
CHANGED
|
@@ -1,73 +1,58 @@
|
|
| 1 |
{% extends "base.html" %}
|
| 2 |
|
| 3 |
{% block content %}
|
| 4 |
-
<div class="max-w-
|
| 5 |
-
<h2 class="text-2xl font-bold text-center mb-6">Join Carwala
|
| 6 |
|
| 7 |
<form method="POST" action="{{ url_for('register') }}">
|
| 8 |
-
<div class="
|
| 9 |
-
<
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
<
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
</
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
<
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
<
|
| 38 |
-
|
| 39 |
-
<select id="role" name="role" required
|
| 40 |
-
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500">
|
| 41 |
-
<option value="">Select your role</option>
|
| 42 |
-
<option value="buyer">Buy Cars</option>
|
| 43 |
-
<option value="seller">Sell Cars</option>
|
| 44 |
-
</select>
|
| 45 |
-
</div>
|
| 46 |
-
|
| 47 |
-
<div class="mb-4 md:col-span-2">
|
| 48 |
-
<label class="block text-gray-700 mb-2" for="address">Address</label>
|
| 49 |
-
<textarea id="address" name="address" required
|
| 50 |
-
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500"
|
| 51 |
-
placeholder="Enter your complete address" rows="3"></textarea>
|
| 52 |
-
</div>
|
| 53 |
</div>
|
| 54 |
|
| 55 |
<div class="mb-6">
|
| 56 |
-
<
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
</div>
|
| 60 |
</div>
|
| 61 |
|
| 62 |
<button type="submit"
|
| 63 |
-
class="w-full bg-blue-600 text-white py-
|
| 64 |
-
|
| 65 |
</button>
|
| 66 |
</form>
|
| 67 |
|
| 68 |
<div class="mt-6 text-center">
|
| 69 |
<p class="text-gray-600">Already have an account?
|
| 70 |
-
<a href="{{ url_for('login') }}" class="text-blue-600 hover:underline
|
| 71 |
</p>
|
| 72 |
</div>
|
| 73 |
|
|
|
|
| 1 |
{% extends "base.html" %}
|
| 2 |
|
| 3 |
{% block content %}
|
| 4 |
+
<div class="max-w-md mx-auto bg-white rounded-lg shadow-lg p-8">
|
| 5 |
+
<h2 class="text-2xl font-bold text-center mb-6">Join Carwala</h2>
|
| 6 |
|
| 7 |
<form method="POST" action="{{ url_for('register') }}">
|
| 8 |
+
<div class="mb-4">
|
| 9 |
+
<label class="block text-gray-700 mb-2" for="name">Full Name</label>
|
| 10 |
+
<input type="text" id="name" name="name" required
|
| 11 |
+
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500">
|
| 12 |
+
</div>
|
| 13 |
+
|
| 14 |
+
<div class="mb-4">
|
| 15 |
+
<label class="block text-gray-700 mb-2" for="email">Email</label>
|
| 16 |
+
<input type="email" id="email" name="email" required
|
| 17 |
+
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500">
|
| 18 |
+
</div>
|
| 19 |
+
|
| 20 |
+
<div class="mb-4">
|
| 21 |
+
<label class="block text-gray-700 mb-2" for="password">Password</label>
|
| 22 |
+
<input type="password" id="password" name="password" required
|
| 23 |
+
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500">
|
| 24 |
+
</div>
|
| 25 |
+
|
| 26 |
+
<div class="mb-4">
|
| 27 |
+
<label class="block text-gray-700 mb-2" for="role">I want to:</label>
|
| 28 |
+
<select id="role" name="role" required
|
| 29 |
+
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500">
|
| 30 |
+
<option value="buyer">Buy Cars</option>
|
| 31 |
+
<option value="seller">Sell Cars</option>
|
| 32 |
+
</select>
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
<div class="mb-4">
|
| 36 |
+
<label class="block text-gray-700 mb-2" for="address">Address</label>
|
| 37 |
+
<textarea id="address" name="address" required
|
| 38 |
+
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500"></textarea>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
</div>
|
| 40 |
|
| 41 |
<div class="mb-6">
|
| 42 |
+
<label class="block text-gray-700 mb-2" for="phone">Phone Number</label>
|
| 43 |
+
<input type="tel" id="phone" name="phone" required
|
| 44 |
+
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500">
|
|
|
|
| 45 |
</div>
|
| 46 |
|
| 47 |
<button type="submit"
|
| 48 |
+
class="w-full bg-blue-600 text-white py-2 rounded-md hover:bg-blue-700 transition duration-300">
|
| 49 |
+
Register
|
| 50 |
</button>
|
| 51 |
</form>
|
| 52 |
|
| 53 |
<div class="mt-6 text-center">
|
| 54 |
<p class="text-gray-600">Already have an account?
|
| 55 |
+
<a href="{{ url_for('login') }}" class="text-blue-600 hover:underline">Login here</a>
|
| 56 |
</p>
|
| 57 |
</div>
|
| 58 |
|