feat: Reorganizing views
This commit is contained in:
40
Resources/Views/users/form.leaf
Normal file
40
Resources/Views/users/form.leaf
Normal 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
|
||||
Reference in New Issue
Block a user