mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 12:12:53 -06:00
This commit is contained in:
parent
6b9b5c4184
commit
408550d3c7
@ -30,20 +30,24 @@
|
|||||||
<button type="button" data-bs-toggle="modal" title="{% trans "Configure Table" %}" data-bs-target="#{{ table_modal }}" class="btn">
|
<button type="button" data-bs-toggle="modal" title="{% trans "Configure Table" %}" data-bs-target="#{{ table_modal }}" class="btn">
|
||||||
<i class="mdi mdi-cog"></i> {% trans "Configure Table" %}
|
<i class="mdi mdi-cog"></i> {% trans "Configure Table" %}
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
|
{% if table.config_params or table_configs %}
|
||||||
<span class="visually-hidden">Toggle Dropdown</span>
|
<button type="button" class="btn dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
</button>
|
<span class="visually-hidden">{% trans "Toggle Dropdown" %}</span>
|
||||||
<div class="dropdown-menu">
|
</button>
|
||||||
{% if table.config_params %}
|
<div class="dropdown-menu">
|
||||||
<a class="dropdown-item" href="{% url 'extras:tableconfig_add' %}?{{ table.config_params }}&return_url={{ request.path }}" id="table_save_link">Save</a>
|
{% if table.config_params %}
|
||||||
{% endif %}
|
<a class="dropdown-item" href="{% url 'extras:tableconfig_add' %}?{{ table.config_params }}&return_url={{ request.path }}" id="table_save_link">Save</a>
|
||||||
{% if table_configs %}
|
{% endif %}
|
||||||
<hr class="dropdown-divider">
|
{% if table.config_params and table_configs %}
|
||||||
{% for config in table_configs %}
|
<hr class="dropdown-divider">
|
||||||
<a class="dropdown-item" href="?tableconfig_id={{ config.pk }}">{{ config }}</a>
|
{% endif %}
|
||||||
{% endfor %}
|
{% if table_configs %}
|
||||||
{% endif %}
|
{% for config in table_configs %}
|
||||||
</div>
|
<a class="dropdown-item" href="?tableconfig_id={{ config.pk }}">{{ config }}</a>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user