-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
220 lines (201 loc) · 8.04 KB
/
home.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../../../favicon.ico">
<title>Home</title>
<!-- Bootstrap core CSS -->
<link href="dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample08" aria-controls="navbarsExample08" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-md-center" id="navbarsExample08">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Home<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="properties.html">Properties</a>
</li>
<li class="nav-item">
<a class="nav-link" href="transfer.html">Transfer</a>
</li>
<li class="nav-item">
<a class="nav-link" href="search.html">Search</a>
</li>
<li class="nav-item">
<a class="nav-link" id="logout">Logout</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<div class="py-5 text-center">
<h2>Home</h2>
<p class="lead">Fill below details to add a Property under your name.</p>
</div>
<div class="row">
<div class="col-md-2">
</div>
<div class="col-md-8">
<h4 class="mb-3">Property</h4>
<form class="needs-validation" novalidate>
<div class="row">
<div class="col-md-4 mb-3">
<label for="firstName">Khata Number</label>
<input type="number" class="form-control" id="khataNo" placeholder="eg. 1" value="" required>
<div class="invalid-feedback">
Valid Khata Number is required.
</div>
</div>
<div class="col-md-4 mb-3">
<label for="firstName">Khewat Number</label>
<input type="number" class="form-control" id="khewatNo" placeholder="eg. 20" value="" required>
<div class="invalid-feedback">
Valid Khewat Number is required.
</div>
</div>
<div class="col-md-4 mb-3">
<label for="firstName">Plot Number</label>
<input type="number" class="form-control" id="plotNo" placeholder="eg. 20" value="" required>
<div class="invalid-feedback">
Valid Plot Number is required.
</div>
</div>
</div>
<div class="mb-3">
<label for="address">Full Address</label>
<input type="text" class="form-control" id="address" placeholder="eg. 1234 Main St" required>
<div class="invalid-feedback">
Please enter your full address.
</div>
</div>
<div class="row">
<div class="col-md-4 mb-3">
<label for="state">State</label>
<select class="custom-select d-block w-100" id="state" required>
<option value="">Choose...</option>
</select>
<div class="invalid-feedback">
Please provide a valid state.
</div>
</div>
<div class="col-md-4 mb-3">
<label for="zip">Zip</label>
<input type="text" class="form-control" id="zip" placeholder="" required>
<div class="invalid-feedback">
Zip code required.
</div>
</div>
<div class="col-md-4 mb-3">
<label for="area">Area</label>
<input type="text" class="form-control" id="area" placeholder="eg. Janipur" required>
<div class="invalid-feedback">
Area required.
</div>
</div>
<div class="col-md-3 mb-3">
<label for="area">Land Size</label>
<input type="text" class="form-control" id="size" placeholder="eg 10000 sq ft" required>
<div class="invalid-feedback">
Size required.
</div>
</div>
</div>
<hr class="mb-4">
<button class="btn btn-primary btn-lg btn-block" type="submit" id="addProperty">Add Property</button>
</form>
</div>
</div>
<footer class="my-5 pt-5 text-muted text-center text-small">
<p class="mb-1">© 2018</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="#">Privacy</a></li>
<li class="list-inline-item"><a href="#">Terms</a></li>
<li class="list-inline-item"><a href="#">Support</a></li>
</ul>
</footer>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="dist/js/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="dist/js/jquery.min.js"><\/script>')</script>
<script src="dist/js/vendor/popper.min.js"></script>
<script src="dist/js/bootstrap.min.js"></script>
<script src="assets/js/vendor/holder.min.js"></script>
<script src="dist/js/web3.min.js"></script>
<script src="dist/js/app.js"></script>
<script>
// Example starter JavaScript for disabling form submissions if there are invalid fields
(function() {
'use strict';
window.addEventListener('load', function() {
if (!sessionStorage.aadhar) {
console.log("Unauthenticated");
location.href = "login.html";
}
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.getElementsByClassName('needs-validation');
// Loop over them and prevent submission
var validation = Array.prototype.filter.call(forms, function(form) {
form.addEventListener('submit', function(event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
var states = {
"AP":"Andhra Pradesh",
"AR":"Arunachal Pradesh",
"AS":"Assam",
"BR":"Bihar",
"CG":"Chhattisgarh",
"Chandigarh":"Chandigarh",
"DN":"Dadra and Nagar Haveli",
"DD":"Daman and Diu",
"DL":"Delhi",
"GA":"Goa",
"GJ":"Gujarat",
"HR":"Haryana",
"HP":"Himachal Pradesh",
"JK":"Jammu and Kashmir",
"JH":"Jharkhand",
"KA":"Karnataka",
"KL":"Kerala",
"MP":"Madhya Pradesh",
"MH":"Maharashtra",
"MN":"Manipur",
"ML":"Meghalaya",
"MZ":"Mizoram",
"NL":"Nagaland",
"OR":"Orissa",
"PB":"Punjab",
"PY":"Pondicherry",
"RJ":"Rajasthan",
"SK":"Sikkim",
"TN":"Tamil Nadu",
"TR":"Tripura",
"UP":"Uttar Pradesh",
"UK":"Uttarakhand",
"WB":"West Bengal"
};
var options = Object.keys(states).map((stateCode) => {
// console.log('State code', stateCode);
return `<option value=${stateCode}>${states[stateCode]}</option>`
});
// console.log(options);
$("#state").append(options);
}, false);
})();
</script>
</body>
</html>