043
This commit is contained in:
@@ -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>
|
||||
"""
|
||||
Reference in New Issue
Block a user