{% load form_helpers %} {% comment %} Cable connection form — A always left, B always right, using HTML table for real rowspan. {% endcomment %} {% with conns=form.get_connection_fields %} {% if conns %}
| Side A | Side B |
|---|---|
1 %} rowspan="{{ row.a_rowspan }}"{% endif %} class="align-top border-end p-3">
{% with a=row.a %}
{% if conns.cable_type.is_breakout %}
A{{ a.connector }}{% if a.lanes > 1 %} {{ a.lanes }} lanes{% endif %}{% endif %}
{% render_field a.type_field %}
{% endwith %}
{% render_field a.parent_field %}
{% render_field a.term_field %}
|
{% endif %}
{% if row.b_rowspan > 0 %}
1 %} rowspan="{{ row.b_rowspan }}"{% endif %} class="align-top p-3">
{% with b=row.b %}
{% if conns.cable_type.is_breakout %}
B{{ b.connector }}{% if b.lanes > 1 %} {{ b.lanes }} lanes{% endif %}{% endif %}
{% render_field b.type_field %}
{% endwith %}
{% render_field b.parent_field %}
{% render_field b.term_field %}
|
{% endif %}