Adapt HTML Template to add a Tenants Group link like the VLAN Groups when you’re within a Tenants Group. #4573

Closed
opened 2025-12-29 18:37:49 +01:00 by adam · 2 comments
Owner

Originally created by @Zwordi on GitHub (Feb 18, 2021).

Environment

  • Python version: Python 3.6.8
  • NetBox version: 2.10.3

Proposed Functionality

Add a link back to Tenants Groups as it’s the case for example within a VLAN Groups, you can go back by clicking on "VLAN Groups" easily.
image

Currently, when you are within a Tenants Group, you can’t go back to the list of Tenants groups the same way than VLAN Groups or Tenants.
image

Use Case

When you’re a Tenants Groups, and that you’re seing all the tenants of your Tenants groups, it would be nice to be able to go back to the list of the tenants groups the same way that the others object like VLAN Groups.

Database Changes

Don’t think that it would require a DB change rather a "small" HTML adaptation on the "netbox/templates/tenancy/tenant.html" template around this block:

<div class="row noprint">
        <div class="col-sm-8 col-md-9">
            <ol class="breadcrumb">
                <li><a href="{% url 'tenancy:tenant_list' %}">Tenants</a></li>
                {% if object.group %}
                    <li><a href="{% url 'tenancy:tenant_list' %}?group={{ object.group.slug }}">{{ object.group }}</a></li>
                {% endif %}
                <li>{{ object }}</li>
            </ol>
        </div>

As i’m not an HTML Gourou, i can’t say more about that except that i think that another loop could be made depending if we’re within a Tenants groups to have the href available to the ui.

Please let me know if you need other details.
Thanks

External Dependencies

  • none
Originally created by @Zwordi on GitHub (Feb 18, 2021). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for proposing specific new features or enhancements. If you have a general idea or question, please start a discussion instead: https://github.com/netbox-community/netbox/discussions NOTE: Due to an excessive backlog of feature requests, we are not currently accepting any proposals which significantly extend NetBox's feature scope. Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: Python 3.6.8 * NetBox version: 2.10.3 <!-- Describe in detail the new functionality you are proposing. Include any specific changes to work flows, data models, or the user interface. --> ### Proposed Functionality <!-- Convey an example use case for your proposed feature. Write from the perspective of a NetBox user who would benefit from the proposed functionality and describe how. ---> Add a link back to Tenants Groups as it’s the case for example within a VLAN Groups, you can go back by clicking on "VLAN Groups" easily. ![image](https://user-images.githubusercontent.com/8830303/108365410-793f8980-71f7-11eb-86bb-6ac2167466b4.png) Currently, when you are within a Tenants Group, you can’t go back to the list of Tenants groups the same way than VLAN Groups or Tenants. ![image](https://user-images.githubusercontent.com/8830303/108365662-bf94e880-71f7-11eb-88c1-b5ec80f22b97.png) ### Use Case When you’re a Tenants Groups, and that you’re seing all the tenants of your Tenants groups, it would be nice to be able to go back to the list of the tenants groups the same way that the others object like VLAN Groups. <!-- Note any changes to the database schema necessary to support the new feature. For example, does the proposal require adding a new model or field? (Not all new features require database changes.) ---> ### Database Changes Don’t think that it would require a DB change rather a "small" HTML adaptation on the "netbox/templates/tenancy/tenant.html" template around this block: ```html <div class="row noprint"> <div class="col-sm-8 col-md-9"> <ol class="breadcrumb"> <li><a href="{% url 'tenancy:tenant_list' %}">Tenants</a></li> {% if object.group %} <li><a href="{% url 'tenancy:tenant_list' %}?group={{ object.group.slug }}">{{ object.group }}</a></li> {% endif %} <li>{{ object }}</li> </ol> </div> ``` As i’m not an HTML Gourou, i can’t say more about that except that i think that another loop could be made depending if we’re within a Tenants groups to have the href available to the ui. Please let me know if you need other details. Thanks <!-- List any new dependencies on external libraries or services that this new feature would introduce. For example, does the proposal require the installation of a new Python package? (Not all new features introduce new dependencies.) --> ### External Dependencies - none
adam added the type: feature label 2025-12-29 18:37:49 +01:00
adam closed this issue 2025-12-29 18:37:50 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Apr 14, 2021):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Apr 14, 2021): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@jeremystretch commented on GitHub (Apr 14, 2021):

I believe this has been addressed in v2.11.

@jeremystretch commented on GitHub (Apr 14, 2021): I believe this has been addressed in v2.11.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4573