This commit is contained in:
Aritra Banik
2024-02-25 12:34:58 +05:30
parent 50e671d132
commit 6c6e47ae1e
3 changed files with 39 additions and 4 deletions
+17
View File
@@ -106,4 +106,21 @@ proc sendEmail*(email: string, input: Validity): string =
value="{email}"
>
</div>
"""
proc sendPhone*(phone: string, input: Validity): string =
result = fmt"""
<div
class="col-md-12"
hx-target="this"
hx-swap="outerHTML"
>
<label for="c_phone" class="text-black">Phone <span class="text-danger">*</span></label>
<label class="{input.class}">{input.message}</label>
<input type="text" class="form-control" id="c_phone"
hx-post="/validation/phone"
name="c_phone"
value="{phone}"
>
</div>
"""