1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Introduce InventoryItemCreateView to bring inventory items up to par with other components

This commit is contained in:
Jeremy Stretch
2020-02-06 10:59:13 -05:00
parent 2296cdc222
commit c1c8b5e816
6 changed files with 58 additions and 12 deletions

View File

@@ -54,7 +54,7 @@
</table>
{% if perms.dcim.add_inventoryitem %}
<div class="panel-footer text-right noprint">
<a href="{% url 'dcim:inventoryitem_add' device=device.pk %}" class="btn btn-primary btn-xs">
<a href="{% url 'dcim:inventoryitem_add' %}?device={{ device.pk }}&return_url={% url 'dcim:device_inventory' pk=device.pk %}" class="btn btn-primary btn-xs">
<span class="fa fa-plus" aria-hidden="true"></span> Add Inventory Item
</a>
</div>