feat: assign VLANs to network connections
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
{% extends 'dcim/cable_edit.html' %}
|
||||
|
||||
{% block form %}
|
||||
{% include 'netbox_utilities/cable_edit_form.html' %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,12 @@
|
||||
{% load form_helpers %}
|
||||
|
||||
{% include 'dcim/htmx/cable_edit.html' %}
|
||||
|
||||
{% if form.utilities_vlans %}
|
||||
<div class="field-group mb-5">
|
||||
<div class="row">
|
||||
<h2 class="col-9 offset-3">VLANs der Verbindung</h2>
|
||||
</div>
|
||||
{% render_field form.utilities_vlans %}
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,12 @@
|
||||
<div class="card">
|
||||
<h2 class="card-header">VLANs der Verbindung</h2>
|
||||
<div class="card-body">
|
||||
{% if connection_vlans %}
|
||||
{% for vlan in connection_vlans %}
|
||||
<a href="{{ vlan.get_absolute_url }}" class="badge text-bg-primary me-1 mb-1">{{ vlan }}</a>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<span class="text-muted">Keine VLANs zugeordnet</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user