{% extends 'generic/object.html' %} {% load helpers %} {% load i18n %} {% block title %}{{ object }} - {% trans "Module Bay Plan" %}{% endblock %} {% block extra_controls %}  {% trans "Sync" %} {% endblock extra_controls %} {% block content %}
{% trans "Module Bay Plan" %}
{% trans "Module rows" %} {{ payload.candidate_rows }}
{% trans "Bays already present" %} {{ payload.existing_bay_rows }}
{% trans "Missing bays" %} {% if payload.unique_missing_bays %} {{ payload.unique_missing_bays }} {% else %} 0 {% endif %}
{% trans "Rows whose device is not yet in NetBox" %} {{ payload.missing_device_rows }}

{% trans "Missing bays are created inside the sync branch before module rows are applied." %}

{% if module_bay_plan_rows %}
{% trans "Planned Bays" %}
    {% for row in module_bay_plan_rows|slice:":25" %}
  • {{ row.device }} / {{ row.name }}
  • {% endfor %}
{% endif %}
{% trans "Devices Not Yet in NetBox" %}
{% if missing_device_names %}

{% trans "These devices have module rows but are not in NetBox yet. The sync resolves device ordering before module creation." %}

    {% for name in missing_device_names|slice:":25" %}
  • {{ name }}
  • {% endfor %}
{% else %}

{% trans "All module-row devices exist in NetBox." %}

{% endif %}
{% endblock content %}