mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -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>
|
||||||
@ -16,4 +17,4 @@
|
|||||||
<a class="btn btn-outline-primary" href="{% url 'dcim-api:rack-elevation' pk=object.pk %}?face={{face}}&render=svg{% if extra_params %}&{{ extra_params }}{% endif %}" hx-boost="false">
|
<a class="btn btn-outline-primary" href="{% url 'dcim-api:rack-elevation' pk=object.pk %}?face={{face}}&render=svg{% if extra_params %}&{{ extra_params }}{% endif %}" hx-boost="false">
|
||||||
<i class="mdi mdi-file-download"></i> {% trans "Download SVG" %}
|
<i class="mdi mdi-file-download"></i> {% trans "Download SVG" %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user