This commit is contained in:
Aritra Banik 2024-03-09 13:29:31 +05:30
parent 27e8e5db73
commit 4e8692df0c
3 changed files with 2 additions and 3 deletions

BIN
src/a3

Binary file not shown.

View File

@ -145,6 +145,7 @@ import
ctx.redirect("/cart")
"/checkout" -> get:
echo "get"
var
db = newDatabase()
@ -192,6 +193,7 @@ import
compileTemplateFile(getScriptDir() / "a3a" / "checkout.nimja")
"/checkout" -> post:
echo "post"
var
db = newDatabase()
cart: seq[Cart]

View File

@ -90,7 +90,6 @@
<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>
{# <label class="text-danger">{{countryError}}</label> #}
<select id="c_country" class="form-control" name="c_country">
<option value="1">Select a country</option>
<option value="2">bangladesh</option>
@ -180,7 +179,6 @@
hx-swap="outerHTML"
>
<label for="c_email_address" class="text-black">Email Address <span class="text-danger">*</span></label>
{# <label class="text-danger">{{emailError}}</label> #}
<input type="text" class="form-control" id="c_email_address"
hx-post="/validation/email"
name="c_email_address"
@ -192,7 +190,6 @@
hx-swap="outerHTML"
>
<label for="c_phone" class="text-black">Phone <span class="text-danger">*</span></label>
{# <label class="text-danger">{{phoneError}}</label> #}
<input type="text" class="form-control" id="c_phone"
hx-post="/validation/phone"
name="c_phone"