feat: Begins a generic htmx form context and template, integrates user form, begins views for vendor and purchase orders.

This commit is contained in:
2025-01-08 14:02:50 -05:00
parent 3557227430
commit 2b6e92a5c6
18 changed files with 493 additions and 93 deletions

View File

@@ -1,10 +1,5 @@
<form class="user-form"
id="user-form"
hx-post="#(htmxTargetUrl)"
hx-target="#(htmxTarget)"
hx-push-url="#(htmxPushUrl)"
>
<label for="username">Username</label>
#extend("htmx-form", htmxForm):
#export("formBody"):
<input type="text"
id="username"
name="username"
@@ -13,7 +8,15 @@
required
>
<br>
<label for="password">Password</label>
#if(context.showEmailInput):
<input type="email"
id="email"
name="email"
placeholder="Email"
required
>
<br>
#endif
<input type="password"
id="password"
name="password"
@@ -22,8 +25,7 @@
required
>
<br>
#if(showConfirmPassword):
<label for="confirmPassword">Password</label>
#if(context.showConfirmPassword):
<input type="password"
id="confirmPassword"
name="confirmPassword"
@@ -33,5 +35,6 @@
>
<br>
#endif
<input type="submit" value="#(buttonLabel)">
</form>
<input type="submit" value="#(context.buttonLabel)">
#endexport
#endextend