feat: Reorganizing views

This commit is contained in:
2025-01-08 18:10:26 -05:00
parent f5dbd7e121
commit e414afd95b
20 changed files with 55 additions and 61 deletions

View File

@@ -0,0 +1,40 @@
#extend("htmx-form", htmxForm):
#export("formBody"):
<input type="text"
id="username"
name="username"
placeholder="Username"
autofocus
required
>
<br>
#if(context.showEmailInput):
<input type="email"
id="email"
name="email"
placeholder="Email"
required
>
<br>
#endif
<input type="password"
id="password"
name="password"
placeholder="Password"
autofocus
required
>
<br>
#if(context.showConfirmPassword):
<input type="password"
id="confirmPassword"
name="confirmPassword"
placeholder="Confirm Password"
autofocus
required
>
<br>
#endif
<input type="submit" value="#(context.buttonLabel)">
#endexport
#endextend