Swap modals with innerHTML

This commit is contained in:
Mark Veidemanis 2022-10-29 14:24:09 +01:00
parent 31a77e88ad
commit 2a876a20ba
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
6 changed files with 7 additions and 1 deletions

View File

@ -79,6 +79,7 @@
hx-get="{% url 'account_info' type=type pk=item.id %}" hx-get="{% url 'account_info' type=type pk=item.id %}"
hx-trigger="click" hx-trigger="click"
hx-target="#{{ type }}s-here" hx-target="#{{ type }}s-here"
hx-swap="innerHTML"
class="button is-success"> class="button is-success">
<span class="icon-text"> <span class="icon-text">
<span class="icon"> <span class="icon">

View File

@ -25,7 +25,8 @@
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}' hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-get="{% url 'hook_update' type=type pk=item.hook.id %}" hx-get="{% url 'hook_update' type=type pk=item.hook.id %}"
hx-trigger="click" hx-trigger="click"
hx-target="#{{ type }}s-here">{{ item.hook.name }} hx-target="#{{ type }}s-here"
hx-swap="innerHTML">{{ item.hook.name }}
</a> </a>
</td> </td>
<td>{{ item.title }}</td> <td>{{ item.title }}</td>

View File

@ -69,6 +69,7 @@
hx-get="{% url 'callbacks' type=type pk=item.id %}" hx-get="{% url 'callbacks' type=type pk=item.id %}"
hx-trigger="click" hx-trigger="click"
hx-target="#{{ type }}s-here" hx-target="#{{ type }}s-here"
hx-swap="innerHTML"
class="button is-success"> class="button is-success">
<span class="icon-text"> <span class="icon-text">
<span class="icon"> <span class="icon">

View File

@ -67,6 +67,7 @@
hx-get="{% url 'position_action' type=type account_id=item.account_id asset_id=item.asset_id %}" hx-get="{% url 'position_action' type=type account_id=item.account_id asset_id=item.asset_id %}"
hx-trigger="click" hx-trigger="click"
hx-target="#{{ type }}s-here" hx-target="#{{ type }}s-here"
hx-swap="innerHTML"
class="button is-success"> class="button is-success">
<span class="icon-text"> <span class="icon-text">
<span class="icon"> <span class="icon">

View File

@ -81,6 +81,7 @@
hx-get="#" hx-get="#"
hx-trigger="click" hx-trigger="click"
hx-target="#{{ type }}s-here" hx-target="#{{ type }}s-here"
hx-swap="innerHTML"
class="button is-success"> class="button is-success">
<span class="icon-text"> <span class="icon-text">
<span class="icon"> <span class="icon">

View File

@ -74,6 +74,7 @@
hx-get="#" hx-get="#"
hx-trigger="click" hx-trigger="click"
hx-target="#{{ type }}s-here" hx-target="#{{ type }}s-here"
hx-swap="innerHTML"
class="button is-success"> class="button is-success">
<span class="icon-text"> <span class="icon-text">
<span class="icon"> <span class="icon">