Reimplement compose and add tiling windows
This commit is contained in:
@@ -37,7 +37,9 @@
|
||||
class="button is-success is-light"
|
||||
hx-get="{% url 'message_accept_api' message_id=item.id %}"
|
||||
hx-swap="none"
|
||||
_="on htmx:afterRequest if event.detail.successful remove #queue-card-{{ item.id }} then trigger {{ context_object_name_singular }}Event on body end">
|
||||
data-queue-after="remove-card"
|
||||
data-queue-card-id="queue-card-{{ item.id }}"
|
||||
data-queue-refresh-event="{{ context_object_name_singular }}Event">
|
||||
<span class="icon is-small"><i class="fa-solid fa-check"></i></span>
|
||||
<span>Approve</span>
|
||||
</button>
|
||||
@@ -45,7 +47,9 @@
|
||||
class="button is-danger is-light"
|
||||
hx-get="{% url 'message_reject_api' message_id=item.id %}"
|
||||
hx-swap="none"
|
||||
_="on htmx:afterRequest if event.detail.successful remove #queue-card-{{ item.id }} then trigger {{ context_object_name_singular }}Event on body end">
|
||||
data-queue-after="remove-card"
|
||||
data-queue-card-id="queue-card-{{ item.id }}"
|
||||
data-queue-refresh-event="{{ context_object_name_singular }}Event">
|
||||
<span class="icon is-small"><i class="fa-solid fa-xmark"></i></span>
|
||||
<span>Reject</span>
|
||||
</button>
|
||||
@@ -65,7 +69,8 @@
|
||||
hx-trigger="click"
|
||||
hx-target="#queue-inline-editor-{{ item.id }}"
|
||||
hx-swap="innerHTML"
|
||||
_="on htmx:afterRequest if event.detail.successful set #queue-inline-editor-{{ item.id }}.style.display to 'block' end"
|
||||
data-queue-after="show-inline-editor"
|
||||
data-queue-editor-id="queue-inline-editor-{{ item.id }}"
|
||||
class="button is-light">
|
||||
<span class="icon is-small"><i class="fa-solid fa-pen"></i></span>
|
||||
<span>Edit</span>
|
||||
|
||||
Reference in New Issue
Block a user