This commit is contained in:
Aritra Banik 2024-03-07 00:21:06 +05:30
parent f3315ce859
commit 5860a0b517
3 changed files with 3 additions and 1 deletions

BIN
src/a3

Binary file not shown.

View File

@ -268,6 +268,8 @@ import
val.name = b
val.message = ""
val.mark = ""
if form[a] == "1":
val.mark = "is-invalid"
validity[a] = val
if productName == "":

View File

@ -152,7 +152,7 @@ proc sendCheckOut*(val: Table[string, Validity], total: string): string =
<div class="p-3 p-lg-5 border">
<div class="form-group">
<label for="c_country" class="text-black">Country <span class="text-danger">*</span></label>
<select id="c_country" class="form-control" name="c_country">
<select id="c_country" class="form-control {val["c_country"].mark}" name="c_country">
<option value="1">Select a country</option>
<option value="2">bangladesh</option>
<option value="3">Algeria</option>