Implement floating drilldown modals

This commit is contained in:
2022-08-28 20:26:15 +01:00
parent 2ce3c11da2
commit f7cda73ddf
12 changed files with 470 additions and 99 deletions

View File

@@ -88,6 +88,8 @@
</div>
<div id="modals-here">
</div>
<div id="items-here">
</div>
<script>
var grid = GridStack.init({
cellHeight: 20,

View File

@@ -294,6 +294,18 @@
<i class="fa-solid fa-album"></i>
</span>
</a>
<a
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-post="{% url 'modal_drilldown' type='window' %}"
hx-vals='{"net": "{{ row.cells.net }}", "nick": "{{ row.cells.nick }}", "channel": "{{ row.cells.channel }}"}'
hx-target="#items-here"
hx-swap="afterend"
hx-trigger="click"
class="has-text-black">
<span class="icon" data-tooltip="Open drilldown panel">
<i class="fa-solid fa-album"></i>
</span>
</a>
{% endif %}
</div>
{% if row.cells.num_chans != '—' %}