feat: Moves employee views to their own controller, updates css, and employee table view.

This commit is contained in:
2025-01-07 17:07:37 -05:00
parent 08a0a8e1a3
commit 6eb723a7cf
11 changed files with 215 additions and 81 deletions

View File

@@ -1,22 +1,10 @@
<div id="home-conent" class="container">
<div id="home-content" class="container" #if(oob): hx-swap-oob="outerHTML" #endif>
<div class="container">
<h1>Employees</h1>
<br>
<p>Employees are who purchase orders can be generated for.</p>
<br>
</div>
<form class="employee-form"
hx-post="/employees"
hx-target="#employee-table"
hx-swap="outerHTML"
>
<label for="firstName">First Name</label>
<input type="text" id="firstName" name="firstName" placeholder="First Name" autofocus required>
<br>
<label for="lastName">Last Name</label>
<input type="text" id="lastName" name="lastName" placeholder="Last Name" required>
<br>
<input type="submit" value="Create">
</form>
#extend("employee-form", form)
#extend("employee-table")
</div>