{% load i18n %} {# One tray's diff card, shared by the Pending Work tab and the apply confirmation. Pass show_plan=True to add the per-pair plan column (Pending Work aggregates several plans). The unassigned bucket (tray.is_unassigned) renders as a warning, not a normal tray. #}
{% if tray.is_unassigned %} {{ tray.tray_name }} {% trans "(splices on tubes not assigned to any tray)" %} {% else %} {{ tray.tray_name }} {% endif %} {% if tray.add %} +{{ tray.add|length }} {% endif %} {% if tray.remove %} -{{ tray.remove|length }} {% endif %} {% if tray.unchanged %} {{ tray.unchanged|length }} {% trans "kept" %} {% endif %}
{% if show_plan %}{% endif %} {% for pair in tray.add %} {% if show_plan %}{% endif %} {% endfor %} {% for pair in tray.remove %} {% if show_plan %}{% endif %} {% endfor %} {% for pair in tray.unchanged %} {% if show_plan %}{% endif %} {% endfor %}
{% trans "Action" %} {% trans "Fiber A" %} {% trans "Fiber B" %}{% trans "Plan" %}
{% trans "Add" %} {{ pair.name_a }} ↔ {{ pair.name_b }}{{ pair.plan_name }}
{% trans "Remove" %} {{ pair.name_a }} ↔ {{ pair.name_b }}{{ pair.plan_name }}
{% trans "Keep" %} {{ pair.name_a }} ↔ {{ pair.name_b }}{{ pair.plan_name }}