feat: prefilter the B side of a cable by tenant group, tenant and site

Add three optional filter fields above the B-side termination selection.
They are never saved on the cable and can be cleared, so cabling across
tenant or site boundaries stays possible. Defaults come from the A side
or the global tenant filter.

Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5 committed 2026-09-23 11:27:03 +02:00
1 parent ca1e38a1da
commit ad4085a2db
6 files changed
+386 -3

No files matched your search

@@ -33,6 +33,15 @@
<h2 class="col-9 offset-3">{% trans "B Side" %}</h2>
</div>
{% render_field form.b_terminations_type %}
{% if form.utilities_b_tenant_group %}
{% render_field form.utilities_b_tenant_group %}
{% endif %}
{% if form.utilities_b_tenant %}
{% render_field form.utilities_b_tenant %}
{% endif %}
{% if form.utilities_b_site %}
{% render_field form.utilities_b_site %}
{% endif %}
{% if 'termination_b_device' in form.fields %}
{% render_field form.termination_b_device %}
{% endif %}