feat: Begins a generic htmx form context and template, integrates user form, begins views for vendor and purchase orders.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user