mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-13 02:58:17 -06:00
#3564 - Add Import Links
This commit is contained in:
parent
ad4f3f6f6b
commit
16fcc47314
@ -186,27 +186,67 @@
|
|||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li class="dropdown-header">Device Components</li>
|
<li class="dropdown-header">Device Components</li>
|
||||||
<li{% if not perms.dcim.view_interface %} class="disabled"{% endif %}>
|
<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>
|
<a href="{% url 'dcim:interface_list' %}">Interfaces</a>
|
||||||
</li>
|
</li>
|
||||||
<li{% if not perms.dcim.view_frontport %} class="disabled"{% endif %}>
|
<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>
|
<a href="{% url 'dcim:frontport_list' %}">Front Ports</a>
|
||||||
</li>
|
</li>
|
||||||
<li{% if not perms.dcim.view_rearport %} class="disabled"{% endif %}>
|
<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>
|
<a href="{% url 'dcim:rearport_list' %}">Rear Ports</a>
|
||||||
</li>
|
</li>
|
||||||
<li{% if not perms.dcim.view_consoleport %} class="disabled"{% endif %}>
|
<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>
|
<a href="{% url 'dcim:consoleport_list' %}">Console Ports</a>
|
||||||
</li>
|
</li>
|
||||||
<li{% if not perms.dcim.view_consoleport %} class="disabled"{% endif %}>
|
<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>
|
<a href="{% url 'dcim:consoleserverport_list' %}">Console Server Ports</a>
|
||||||
</li>
|
</li>
|
||||||
<li{% if not perms.dcim.view_powerport %} class="disabled"{% endif %}>
|
<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>
|
<a href="{% url 'dcim:powerport_list' %}">Power Ports</a>
|
||||||
</li>
|
</li>
|
||||||
<li{% if not perms.dcim.view_poweroutlet %} class="disabled"{% endif %}>
|
<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>
|
<a href="{% url 'dcim:poweroutlet_list' %}">Power Outlet</a>
|
||||||
</li>
|
</li>
|
||||||
<li{% if not perms.dcim.view_devicebay %} class="disabled"{% endif %}>
|
<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>
|
<a href="{% url 'dcim:devicebay_list' %}">Device Bays</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user