2
0
Эх сурвалжийг харах

added device button under platform view pre-populated role field instead of platform field

yash-pal1 2 жил өмнө
parent
commit
6dc560596d

+ 1 - 1
netbox/templates/dcim/platform.html

@@ -13,7 +13,7 @@
 
 
 {% block extra_controls %}
 {% block extra_controls %}
   {% if perms.dcim.add_device %}
   {% if perms.dcim.add_device %}
-    <a href="{% url 'dcim:device_add' %}?role={{ object.pk }}" class="btn btn-sm btn-primary">
+    <a href="{% url 'dcim:device_add' %}?platform={{ object.pk }}" class="btn btn-sm btn-primary">
       <span class="mdi mdi-plus-thick" aria-hidden="true"></span> {% trans "Add Device" %}
       <span class="mdi mdi-plus-thick" aria-hidden="true"></span> {% trans "Add Device" %}
     </a>
     </a>
   {% endif %}
   {% endif %}