mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-19 10:08:44 -06:00
Add list view for device components (#3719)
* Initial Work on #3564 * #3564 - Fixup issue with filter on interface * #3564 - Fix PEP8 errors * #3564 - Finalize fields, readjust order, reduce repetition * #3564 - Update Changelog * #3564 - Fix extra space * #3564 - Change interface table ordering * #3564 - Minor cleanup * #3564 - Add Import Links * Fix PEP8
This commit is contained in:
committed by
Jeremy Stretch
parent
fe2c682dc3
commit
8cbd2f5c2d
@@ -183,6 +183,72 @@
|
||||
<li{% if not perms.dcim.view_interface %} class="disabled"{% endif %}>
|
||||
<a href="{% url 'dcim:interface_connections_list' %}">Interface Connections</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li class="dropdown-header">Device Components</li>
|
||||
<li{% if not perms.dcim.view_interface %} class="disabled"{% endif %}>
|
||||
{% if perms.dcim.add_interface %}
|
||||
<div class="buttons pull-right">
|
||||
<a href="{% url 'dcim:interface_import' %}" class="btn btn-xs btn-info" title="Import"><i class="fa fa-download"></i></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="{% url 'dcim:interface_list' %}">Interfaces</a>
|
||||
</li>
|
||||
<li{% if not perms.dcim.view_frontport %} class="disabled"{% endif %}>
|
||||
{% if perms.dcim.add_frontport %}
|
||||
<div class="buttons pull-right">
|
||||
<a href="{% url 'dcim:frontport_import' %}" class="btn btn-xs btn-info" title="Import"><i class="fa fa-download"></i></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="{% url 'dcim:frontport_list' %}">Front Ports</a>
|
||||
</li>
|
||||
<li{% if not perms.dcim.view_rearport %} class="disabled"{% endif %}>
|
||||
{% if perms.dcim.add_rearport %}
|
||||
<div class="buttons pull-right">
|
||||
<a href="{% url 'dcim:rearport_import' %}" class="btn btn-xs btn-info" title="Import"><i class="fa fa-download"></i></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="{% url 'dcim:rearport_list' %}">Rear Ports</a>
|
||||
</li>
|
||||
<li{% if not perms.dcim.view_consoleport %} class="disabled"{% endif %}>
|
||||
{% if perms.dcim.add_consoleport %}
|
||||
<div class="buttons pull-right">
|
||||
<a href="{% url 'dcim:consoleport_import' %}" class="btn btn-xs btn-info" title="Import"><i class="fa fa-download"></i></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="{% url 'dcim:consoleport_list' %}">Console Ports</a>
|
||||
</li>
|
||||
<li{% if not perms.dcim.view_consoleserverport %} class="disabled"{% endif %}>
|
||||
{% if perms.dcim.add_consoleserverport %}
|
||||
<div class="buttons pull-right">
|
||||
<a href="{% url 'dcim:consoleserverport_import' %}" class="btn btn-xs btn-info" title="Import"><i class="fa fa-download"></i></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="{% url 'dcim:consoleserverport_list' %}">Console Server Ports</a>
|
||||
</li>
|
||||
<li{% if not perms.dcim.view_powerport %} class="disabled"{% endif %}>
|
||||
{% if perms.dcim.add_powerport %}
|
||||
<div class="buttons pull-right">
|
||||
<a href="{% url 'dcim:powerport_import' %}" class="btn btn-xs btn-info" title="Import"><i class="fa fa-download"></i></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="{% url 'dcim:powerport_list' %}">Power Ports</a>
|
||||
</li>
|
||||
<li{% if not perms.dcim.view_poweroutlet %} class="disabled"{% endif %}>
|
||||
{% if perms.dcim.add_poweroutlet %}
|
||||
<div class="buttons pull-right">
|
||||
<a href="{% url 'dcim:poweroutlet_import' %}" class="btn btn-xs btn-info" title="Import"><i class="fa fa-download"></i></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="{% url 'dcim:poweroutlet_list' %}">Power Outlet</a>
|
||||
</li>
|
||||
<li{% if not perms.dcim.view_devicebay %} class="disabled"{% endif %}>
|
||||
{% if perms.dcim.add_devicebay %}
|
||||
<div class="buttons pull-right">
|
||||
<a href="{% url 'dcim:devicebay_import' %}" class="btn btn-xs btn-info" title="Import"><i class="fa fa-download"></i></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<a href="{% url 'dcim:devicebay_list' %}">Device Bays</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
|
||||
Reference in New Issue
Block a user