edition/partials/shop-top.hbs

45 lines
1.8 KiB
Handlebars
Raw Normal View History

2024-09-22 12:33:37 +00:00
2024-09-23 08:53:24 +00:00
<!--<div id="total-rose-ash-shop-ws">wss</div>
<div hx-ext="ws" ws-connect="shop-ws/ws-total"></div> -->
2024-09-23 08:17:10 +00:00
<div
2024-09-23 08:29:37 +00:00
hx-get="shop/totals/"
2024-09-23 08:19:17 +00:00
hx-trigger="load delay:1ms"
2024-09-23 17:57:37 +00:00
hx-on::config-request = "
event.detail.path = !(
new URLSearchParams(window.location.search
).get('order'))
? 'shop/totals/'
: 'shop/totals/?orderId=' + new URLSearchParams(window.location.search).get('order');
";
2024-09-23 08:17:10 +00:00
hx-swap="outerHTML"
></div>
2024-09-22 12:33:37 +00:00
<div
id="order-form-rose-ash-shop"
hx-get="order"
hx-trigger="load delay:1ms"
hx-on::config-request = "
event.detail.path = !(
new URLSearchParams(window.location.search
).get('order'))
2024-09-24 01:38:37 +00:00
? 'shop/order/'
: 'shop/order/?orderId=' + new URLSearchParams(window.location.search).get('order');
2024-09-22 12:33:37 +00:00
";
hx-swap="outerHTML"
>
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
<div
id="order-detail-rose-ash-shop"
hx-get="order"
hx-trigger="load delay:1ms"
2024-09-24 01:38:37 +00:00
hx-on::config-request="event.detail.path = new URLSearchParams(window.location.search).get('order') ? 'shop/order/' + new URLSearchParams(window.location.search).get('order')+ '/' : null; //6a919002-94eb-467d-a226-5dd05b7f44a3 '"
2024-09-22 12:33:37 +00:00
hx-on::confirm = " if (!new URLSearchParams(window.location.search).get('order')) { event.preventDefault(); }"
hx-swap="innerHTML"
>
</div>