Skip to content

Commit 6dc5605

Browse files
yash-pal1jeremystretch
authored andcommitted
added device button under platform view pre-populated role field instead of platform field
1 parent 5cb1a6b commit 6dc5605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/templates/dcim/platform.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

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

0 commit comments

Comments
 (0)