feat: working on detail views.
This commit is contained in:
@@ -19,22 +19,33 @@
|
||||
</a>
|
||||
#endif
|
||||
</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 style="width: 50px;">
|
||||
<button hx-get="/employees/#(id)"
|
||||
hx-target="#employee-detail"
|
||||
hx-swap="outerHTML swap:0.5s"
|
||||
hx-push-url="true"
|
||||
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