This commit is contained in:
Aritra Banik
2024-02-25 12:33:06 +05:30
parent 430bcbc0ca
commit 50e671d132
3 changed files with 38 additions and 4 deletions

View File

@@ -89,4 +89,21 @@ proc sendZip*(zip: string, input: Validity): string =
value="{zip}"
>
</div>
"""
proc sendEmail*(email: string, input: Validity): string =
result = fmt"""
<div
class="col-md-12"
hx-target="this"
hx-swap="outerHTML"
>
<label for="c_email" class="text-black">Email <span class="text-danger">*</span></label>
<label class="{input.class}">{input.message}</label>
<input type="text" class="form-control" id="c_email_address"
hx-post="/validation/email"
name="c_email_address"
value="{email}"
>
</div>
"""