063
This commit is contained in:
parent
27e8e5db73
commit
4e8692df0c
@ -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]
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user