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

@@ -26,8 +26,8 @@
</a>
#endif
</td>
<td style="width: 30px;">
<a class="btn-delete"
<td style="width: 100px;">
<a class="btn btn-delete"
hx-delete="/employees/#(employee.id)"
hx-target="#employee-table"
hx-swap="outerHTML"
@@ -35,6 +35,11 @@
>
<img src="images/trash-can.svg" alt="Delete">
</a>
<a class="btn btn-edit" hx-get="/employees/#(employee.id)"
hx-target="#employee-form"
>
<img src="images/pencil.svg", alt="Edit">
</a>
</td>
</tr>