-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaddProperty.html
94 lines (84 loc) · 2.4 KB
/
addProperty.html
1
2
3
4
5
6
7
8
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lenden</title>
<link rel="stylesheet" href="./CSS/addProperty.css" />
</head>
<body>
<form
id="propertyForm"
action="/addProperty"
method="post"
enctype="multipart/form-data"
>
<input
type="text"
id="property-name"
name="propertyName"
placeholder="Enter Property Name"
required
/>
<input
type="text"
id="property-area"
name="propertyArea"
placeholder="Enter Property area in square feet"
required
/>
<input
type="text"
name="price"
id="price"
placeholder="Property Price in Rupees (₹) "
oninput="validateInput(this)"
required
/>
<p id="errorMessage" style="color: red; display: none">
Please enter only numbers.
</p>
<input
type="text"
name="address"
id="address"
placeholder="Enter Property Address"
required
/>
<div class="dropdown">
<select id="Property-type" name="propertyType" required>
<option value="" disabled selected>Select Property Type</option>
<option value="House">House</option>
<option value="Flat">Flat</option>
<option value="Row House">Row House</option>
<option value="Shop">Shop</option>
<option value="WareHouse">WareHouse</option>
<option value="Office">Office</option>
</select>
</div>
<div class="dropdown">
<select id="states" name="propertyState" required>
<option value="" disabled selected>Select a state</option>
</select>
</div>
<input type="text" name="city" id="city" placeholder="City" required />
<input
type="text"
name="description"
id="description"
placeholder="Property Description"
/>
<label for="property-img" class="file-label">Property Image: </label>
<input
type="file"
name="propertyImg"
id="property-img"
class="file-input"
onchange="displayFilePath()"
/>
<p id="file-path"></p>
<input type="submit" id="add" value="Add Property" />
</form>
<script src="./addProperty.js"></script>
</body>
</html>