Skip to content

Commit

Permalink
added device button under platform view pre-populated role field inst…
Browse files Browse the repository at this point in the history
…ead of platform field
  • Loading branch information
yash-pal1 committed Sep 27, 2023
1 parent 786f0cc commit c88b396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/templates/dcim/platform.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

{% block extra_controls %}
{% 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" %}
</a>
{% endif %}
Expand Down

0 comments on commit c88b396

Please sign in to comment.