{# Preview fragment for the cross-profile bean transfer widget. Renders per-kind counts + how many rows would be overwritten in the target. Wraps an "Apply" form so the user commits explicitly — nothing writes to disk on Preview. #} {% if error %}
Preview failed: {{ error }}
{% else %}

From {{ from_name }} → to {{ to_name }}{% if to_is_active %} (active){% endif %}

{% for kind in types %} {% endfor %}
TypeRows in sourceWould overwrite in target
{{ kind }} {{ counts.get(kind, 0) }} {{ will_overwrite.get(kind, 0) }}
{% for kind in types %} {% endfor %} {% if to_is_active %}Target is active — live bean managers refresh after apply.{% endif %}
{% endif %}