Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -221,52 +221,52 @@ async def static_page():
|
|
| 221 |
<div class="grid">
|
| 222 |
<div class="field full">
|
| 223 |
<label for="name">Full Legal Name <span class="required-star">*</span></label>
|
| 224 |
-
<input id="name" type="text" placeholder="e.g. John Doe">
|
| 225 |
</div>
|
| 226 |
|
| 227 |
<div class="field">
|
| 228 |
<label for="registration_number">Registration Number</label>
|
| 229 |
-
<input id="registration_number" type="text">
|
| 230 |
</div>
|
| 231 |
|
| 232 |
<div class="field">
|
| 233 |
<label for="phone_number">Phone Number</label>
|
| 234 |
-
<input id="phone_number" type="text" placeholder="(555) 000-0000">
|
| 235 |
</div>
|
| 236 |
|
| 237 |
<div class="field full">
|
| 238 |
<label for="address">Mailing Address</label>
|
| 239 |
-
<input id="address" type="text">
|
| 240 |
</div>
|
| 241 |
|
| 242 |
<div class="field">
|
| 243 |
<label for="aadhar">Aadhar / ID Number</label>
|
| 244 |
-
<input id="aadhar" type="text">
|
| 245 |
</div>
|
| 246 |
|
| 247 |
<div class="field">
|
| 248 |
<label for="parentage">Parentage / Lineage</label>
|
| 249 |
-
<input id="parentage" type="text">
|
| 250 |
</div>
|
| 251 |
|
| 252 |
<div class="field">
|
| 253 |
<label for="total_ponies">Total Quantity of Ponies</label>
|
| 254 |
-
<input type="number" id="total_ponies">
|
| 255 |
</div>
|
| 256 |
|
| 257 |
<div class="field">
|
| 258 |
<label for="stand">Assigned Stand</label>
|
| 259 |
-
<input id="stand" type="text">
|
| 260 |
</div>
|
| 261 |
|
| 262 |
<div class="field checkbox-group">
|
| 263 |
-
<input type="checkbox" id="license">
|
| 264 |
-
<label for="license" style="margin-bottom:0">
|
| 265 |
</div>
|
| 266 |
|
| 267 |
<div class="field checkbox-group">
|
| 268 |
-
<input type="checkbox" id="renewal">
|
| 269 |
-
<label for="renewal" style="margin-bottom:0">
|
| 270 |
</div>
|
| 271 |
</div>
|
| 272 |
|
|
@@ -293,11 +293,7 @@ async def static_page():
|
|
| 293 |
};
|
| 294 |
|
| 295 |
// Basic validation check
|
| 296 |
-
|
| 297 |
-
alert("Official Error: Full Name is a required field.");
|
| 298 |
-
return;
|
| 299 |
-
}
|
| 300 |
-
|
| 301 |
try {
|
| 302 |
const res = await fetch('/dataingestion', {
|
| 303 |
method: 'POST',
|
|
|
|
| 221 |
<div class="grid">
|
| 222 |
<div class="field full">
|
| 223 |
<label for="name">Full Legal Name <span class="required-star">*</span></label>
|
| 224 |
+
<input id="name" type="text" placeholder="e.g. John Doe" required>
|
| 225 |
</div>
|
| 226 |
|
| 227 |
<div class="field">
|
| 228 |
<label for="registration_number">Registration Number</label>
|
| 229 |
+
<input id="registration_number" type="text" required>
|
| 230 |
</div>
|
| 231 |
|
| 232 |
<div class="field">
|
| 233 |
<label for="phone_number">Phone Number</label>
|
| 234 |
+
<input id="phone_number" type="text" placeholder="(555) 000-0000" required>
|
| 235 |
</div>
|
| 236 |
|
| 237 |
<div class="field full">
|
| 238 |
<label for="address">Mailing Address</label>
|
| 239 |
+
<input id="address" type="text" required>
|
| 240 |
</div>
|
| 241 |
|
| 242 |
<div class="field">
|
| 243 |
<label for="aadhar">Aadhar / ID Number</label>
|
| 244 |
+
<input id="aadhar" type="text" required>
|
| 245 |
</div>
|
| 246 |
|
| 247 |
<div class="field">
|
| 248 |
<label for="parentage">Parentage / Lineage</label>
|
| 249 |
+
<input id="parentage" type="text" required>
|
| 250 |
</div>
|
| 251 |
|
| 252 |
<div class="field">
|
| 253 |
<label for="total_ponies">Total Quantity of Ponies</label>
|
| 254 |
+
<input type="number" id="total_ponies" required>
|
| 255 |
</div>
|
| 256 |
|
| 257 |
<div class="field">
|
| 258 |
<label for="stand">Assigned Stand</label>
|
| 259 |
+
<input id="stand" type="text" required>
|
| 260 |
</div>
|
| 261 |
|
| 262 |
<div class="field checkbox-group">
|
| 263 |
+
<input type="checkbox" id="license" required>
|
| 264 |
+
<label for="license" style="margin-bottom:0">License Held</label>
|
| 265 |
</div>
|
| 266 |
|
| 267 |
<div class="field checkbox-group">
|
| 268 |
+
<input type="checkbox" id="renewal" required>
|
| 269 |
+
<label for="renewal" style="margin-bottom:0">Applied for Renewal</label>
|
| 270 |
</div>
|
| 271 |
</div>
|
| 272 |
|
|
|
|
| 293 |
};
|
| 294 |
|
| 295 |
// Basic validation check
|
| 296 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 297 |
try {
|
| 298 |
const res = await fetch('/dataingestion', {
|
| 299 |
method: 'POST',
|