23 lines
629 B
Plaintext
23 lines
629 B
Plaintext
#extend("htmx-form", htmxForm):
|
|
#export("formBody"):
|
|
<input type="text"
|
|
id="firstName"
|
|
name="firstName"
|
|
placeholder="First Name"
|
|
autofocus
|
|
required
|
|
#if(context.employee.firstName): value=#(context.employee.firstName) #endif
|
|
>
|
|
<br>
|
|
<input type="text"
|
|
id="lastName"
|
|
name="lastName"
|
|
placeholder="Last Name"
|
|
required
|
|
#if(context.employee.lastName): value=#(context.employee.lastName) #endif
|
|
>
|
|
<br>
|
|
<input type="submit" value=#if(context.employee.id): Update #else: Create #endif>
|
|
#endexport
|
|
#endextend
|