mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-20 02:06:42 -06:00
Closes #9379: Redirect to virtual chassis view after adding a member device
This commit is contained in:
parent
f03c5037c4
commit
a9ec1a7b4e
@ -8,6 +8,7 @@
|
|||||||
* [#8922](https://github.com/netbox-community/netbox/issues/8922) - Add service list to IP address view
|
* [#8922](https://github.com/netbox-community/netbox/issues/8922) - Add service list to IP address view
|
||||||
* [#9098](https://github.com/netbox-community/netbox/issues/9098) - Add "other" types for power ports/outlets, pass-through ports
|
* [#9098](https://github.com/netbox-community/netbox/issues/9098) - Add "other" types for power ports/outlets, pass-through ports
|
||||||
* [#9239](https://github.com/netbox-community/netbox/issues/9239) - Enable filtering by contact group for all models which support contact assignment
|
* [#9239](https://github.com/netbox-community/netbox/issues/9239) - Enable filtering by contact group for all models which support contact assignment
|
||||||
|
* [#9379](https://github.com/netbox-community/netbox/issues/9379) - Redirect to virtual chassis view after adding a member device
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
@ -15,74 +15,70 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col col-md-4">
|
<div class="col col-md-4">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">
|
<h5 class="card-header">Virtual Chassis</h5>
|
||||||
Virtual Chassis
|
<div class="card-body">
|
||||||
</h5>
|
<table class="table table-hover attr-table">
|
||||||
<div class="card-body">
|
<tr>
|
||||||
<table class="table table-hover attr-table">
|
<th scope="row">Domain</th>
|
||||||
<tr>
|
<td>{{ object.domain|placeholder }}</td>
|
||||||
<th scope="row">Domain</th>
|
</tr>
|
||||||
<td>{{ object.domain|placeholder }}</td>
|
<tr>
|
||||||
</tr>
|
<th scope="row">Master</th>
|
||||||
<tr>
|
<td>{{ object.master|linkify }}</td>
|
||||||
<th scope="row">Master</th>
|
</tr>
|
||||||
<td>{{ object.master|linkify }}</td>
|
</table>
|
||||||
</tr>
|
</div>
|
||||||
</table>
|
</div>
|
||||||
</div>
|
{% include 'inc/panels/custom_fields.html' %}
|
||||||
</div>
|
{% include 'inc/panels/tags.html' %}
|
||||||
{% include 'inc/panels/custom_fields.html' %}
|
{% plugin_left_page object %}
|
||||||
{% include 'inc/panels/tags.html' %}
|
|
||||||
{% plugin_left_page object %}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-md-8">
|
<div class="col col-md-8">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">
|
<h5 class="card-header">Members</h5>
|
||||||
Members
|
<div class="card-body">
|
||||||
</h5>
|
<table class="table table-hover attr-table">
|
||||||
<div class="card-body">
|
<tr>
|
||||||
<table class="table table-hover attr-table">
|
<th>Device</th>
|
||||||
<tr>
|
<th>Position</th>
|
||||||
<th>Device</th>
|
<th>Master</th>
|
||||||
<th>Position</th>
|
<th>Priority</th>
|
||||||
<th>Master</th>
|
</tr>
|
||||||
<th>Priority</th>
|
{% for vc_member in members %}
|
||||||
</tr>
|
<tr{% if vc_member == device %} class="info"{% endif %}>
|
||||||
{% for vc_member in members %}
|
<td>
|
||||||
<tr{% if vc_member == device %} class="info"{% endif %}>
|
{{ vc_member|linkify }}
|
||||||
<td>
|
</td>
|
||||||
{{ vc_member|linkify }}
|
<td>
|
||||||
</td>
|
{% badge vc_member.vc_position show_empty=True %}
|
||||||
<td>
|
</td>
|
||||||
{% badge vc_member.vc_position show_empty=True %}
|
<td>
|
||||||
</td>
|
{% if object.master == vc_member %}
|
||||||
<td>
|
{% checkmark True %}
|
||||||
{% if object.master == vc_member %}
|
{% endif %}
|
||||||
{% checkmark True %}
|
</td>
|
||||||
{% endif %}
|
<td>
|
||||||
</td>
|
{{ vc_member.vc_priority|placeholder }}
|
||||||
<td>
|
</td>
|
||||||
{{ vc_member.vc_priority|placeholder }}
|
</tr>
|
||||||
</td>
|
{% endfor %}
|
||||||
</tr>
|
</table>
|
||||||
{% endfor %}
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
{% if perms.dcim.change_virtualchassis %}
|
|
||||||
<div class="card-footer text-end noprint">
|
|
||||||
<a href="{% url 'dcim:virtualchassis_add_member' pk=object.pk %}?site={{ object.master.site.pk }}&rack={{ object.master.rack.pk }}" class="btn btn-primary btn-sm">
|
|
||||||
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add Member
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
{% plugin_right_page object %}
|
{% if perms.dcim.change_virtualchassis %}
|
||||||
|
<div class="card-footer text-end noprint">
|
||||||
|
<a href="{% url 'dcim:virtualchassis_add_member' pk=object.pk %}?site={{ object.master.site.pk }}&rack={{ object.master.rack.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-primary btn-sm">
|
||||||
|
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add Member
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% plugin_right_page object %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col col-md-12">
|
<div class="col col-md-12">
|
||||||
{% plugin_full_width_page object %}
|
{% plugin_full_width_page object %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user