mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 12:12:53 -06:00
rework to prevent dup loading
This commit is contained in:
parent
ffacced2b1
commit
e73127b390
@ -1,14 +1,15 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
<div
|
<div style="margin-left: -30px">
|
||||||
hx-get="{% url 'dcim-api:rack-elevation' pk=object.pk %}?face={{ face }}&render=svg{% if extra_params %}&{{ extra_params }}{% endif %}"
|
<div
|
||||||
hx-trigger="intersect"
|
hx-get="{% url 'dcim-api:rack-elevation' pk=object.pk %}?face={{ face }}&render=svg{% if extra_params %}&{{ extra_params }}{% endif %}"
|
||||||
hx-swap="innerHTML"
|
hx-trigger="intersect"
|
||||||
aria-label="{% trans 'Rack elevation' %}"
|
hx-swap="outerHTML"
|
||||||
style="margin-left: -30px"
|
aria-label="{% trans 'Rack elevation' %}"
|
||||||
>
|
>
|
||||||
<div class="d-flex justify-content-center align-items-center" style="min-height: 200px; margin-left: 30px;">
|
<div class="d-flex justify-content-center align-items-center" style="min-height: 200px; margin-left: 30px;">
|
||||||
<div class="spinner-border" role="status">
|
<div class="spinner-border" role="status">
|
||||||
<span class="visually-hidden">Rack Loading...</span>
|
<span class="visually-hidden">Rack Loading...</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user