mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 05:28:16 -06:00
Add buttons for add & import to navigation menu
This commit is contained in:
parent
b4a5e194e4
commit
68e9c140c7
@ -23,10 +23,19 @@
|
|||||||
<span>{{ group.label }}</span>
|
<span>{{ group.label }}</span>
|
||||||
</div>
|
</div>
|
||||||
{% for item, buttons in items %}
|
{% for item, buttons in items %}
|
||||||
<a class="dropdown-item ps-3" href="{% url item.link %}">
|
<div class="dropdown-item d-flex justify-content-between ps-3">
|
||||||
{{ item.link_text }}
|
<a href="{% url item.link %}" class="d-inline-flex flex-fill">{{ item.link_text }}</a>
|
||||||
|
{% if buttons %}
|
||||||
|
<div class="btn-group ms-1">
|
||||||
|
{% for button in buttons %}
|
||||||
|
<a href="{% url button.link %}" class="btn btn-sm btn-{{ button.color }} lh-2" title="{{ button.title }}">
|
||||||
|
<i class="{{ button.icon_class }}"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user