feat: Moves employee views to their own controller, updates css, and employee table view.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user