This commit is contained in:
Aritra Banik
2024-02-25 03:10:24 +05:30
parent befdcd35df
commit a340a55142
3 changed files with 39 additions and 7 deletions

View File

@@ -55,4 +55,21 @@ proc sendAddress*(address: string, input: Validity): string =
value="{address}"
>
</div>
"""
proc sendState*(state: string, input: Validity): string =
result = fmt"""
<div
class="col-md-6"
hx-target="this"
hx-swap="outerHTML"
>
<label for="c_state" class="text-black">State <span class="text-danger">*</span></label>
<label class="{input.class}">{input.message}</label>
<input type="text" class="form-control" id="c_state"
hx-post="/validation/state"
name="c_state"
value="{state}"
>
</div>
"""