Files
vapor-po/Resources/Views/users/form.leaf

41 lines
846 B
Plaintext

#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