Kaynağa Gözat

netbox-community/netbox#7668: Add 'View Elevations' button to location detail page

Rhys Barrie 4 yıl önce
ebeveyn
işleme
24d6941cc4
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. 6 0
      netbox/templates/dcim/location.html

+ 6 - 0
netbox/templates/dcim/location.html

@@ -9,6 +9,12 @@
   {% endfor %}
 {% endblock %}
 
+{% block extra_controls %}
+  <a href="{% url 'dcim:rack_elevation_list' %}?site_id={{ object.site.pk }}&location_id={{ object.pk }}" class="btn btn-sm btn-primary" role="button">
+    <i class="mdi mdi-server" aria-hidden="true"></i>&nbsp;View Elevations
+  </a>
+{% endblock %}
+
 {% block content %}
 <div class="row mb-3">
 	<div class="col col-md-6">