feat: Updates to employee detail views.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
hx-target="#employee_#(id)"
|
||||
hx-swap="outerHTML"
|
||||
>
|
||||
<img src="images/toggle-on.svg" alt="Active">
|
||||
<img src="/images/toggle-on.svg" alt="Active">
|
||||
</a>
|
||||
#else:
|
||||
<a class="toggle"
|
||||
@@ -15,37 +15,19 @@
|
||||
hx-target="#employee_#(id)"
|
||||
hx-swap="outerHTML"
|
||||
>
|
||||
<img src="images/toggle-off.svg" alt="Active">
|
||||
<img src="/images/toggle-off.svg" alt="Active">
|
||||
</a>
|
||||
#endif
|
||||
</td>
|
||||
<td style="width: 50px;">
|
||||
<button hx-get="/employees/#(id)"
|
||||
hx-target="#employee-detail"
|
||||
hx-swap="outerHTML swap:0.5s"
|
||||
hx-push-url="true"
|
||||
hx-swap="outerHTML swap:1s"
|
||||
hx-push-url="false"
|
||||
hx-disabled-elt="this"
|
||||
class="btn btn-detail"
|
||||
>
|
||||
›
|
||||
</button>
|
||||
</td>
|
||||
|
||||
<!-- <td style="width: 100px;"> -->
|
||||
<!-- <a class="btn btn-delete" -->
|
||||
<!-- href="javascript:void(0)" -->
|
||||
<!-- hx-delete="/employees/#(id)" -->
|
||||
<!-- hx-target="#employee-table" -->
|
||||
<!-- hx-swap="outerHTML" -->
|
||||
<!-- hx-confirm="Are you sure you want to delete this employee?" -->
|
||||
<!-- > -->
|
||||
<!-- #extend("img/trash-can") -->
|
||||
<!-- </a> -->
|
||||
<!-- <a class="btn btn-edit" hx-get="/employees/#(id)" -->
|
||||
<!-- hx-target="#employee-form" -->
|
||||
<!-- hx-on::after-request=" if(event.detail.successful) toggleContent('form')" -->
|
||||
<!-- > -->
|
||||
<!-- #extend("img/pencil") -->
|
||||
<!-- </a> -->
|
||||
<!-- </td> -->
|
||||
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user