| 123456789101112131415161718192021222324252627282930313233343536 |
- <td class="actions">
- <button class="action stats">
- {{> icons/chart}}
- </button>
- <button
- class="action edit"
- hx-trigger="click queue:none"
- hx-ext="path-params"
- hx-get="/link/edit/{id}"
- hx-vals='{"id":"{{id}}"}'
- hx-swap="beforeend"
- hx-target="next tr.edit"
- hx-indicator="next tr.edit"
- hx-on::before-request="
- const tr = event.detail.target;
- tr.classList.add('show');
- if (tr.querySelector('.content')) {
- event.preventDefault();
- tr.classList.remove('show');
- tr.removeChild(tr.querySelector('.content'));
- }
- "
- >
- {{> icons/pencil}}
- </button>
- <button
- class="action delete"
- hx-on:click='openDialog("link-dialog")'
- hx-get="/confirm-link-delete"
- hx-target="#link-dialog .content-wrapper"
- hx-indicator="#link-dialog"
- hx-vals='{"id":"{{id}}"}'
- >
- {{> icons/trash}}
- </button>
- </td>
|