{% extends '@EasyAdmin/page/content.html.twig' %} {% block page_title %} eBay Aspects importieren — {{ articleType.name }} {% endblock %} {% block main %} {# ── Category search / picker ─────────────────────────────────────── #}
eBay-Kategorie
{% if categoryId %} ID: {{ categoryId }} {% endif %}
{% if not categoryId %}
Kategorie wählen, um eBay-Aspekte zu laden.
{% endif %}
{% if categoryId %} {# ── Existing mappings table ──────────────────────────────────────── #} {% if existingMappings|length > 0 %}
Aktive Mappings {{ existingMappings|length }}
{% for mapping in existingMappings %} {% endfor %}
eBay-Aspekt (Ziel) Quelle Pflicht?
{{ mapping.ebayAspectName }} {{ mapping.sourceLabel }} {% if mapping.required %} Ja {% else %} {% endif %}
{% endif %} {# ── Summary bar ──────────────────────────────────────────────────── #}
{{ counts.required }} Required {{ counts.recommended }} Recommended {{ counts.optional }} Optional Auto-matched {{ rows|filter(r => r.action == 'match')|length }} · Create {{ rows|filter(r => r.action == 'create')|length }} · Skip {{ rows|filter(r => r.action == 'skip')|length }}
Abbrechen
{# ── Aspect import form ───────────────────────────────────────────── #}
{% for i, row in rows %} {% set aspect = row.aspect %} {% endfor %}
eBay Aspect Tier eBay-Werte Aktion Attribut / Name + Typ Pflicht?
{{ aspect.name }} {% if row.alreadyAssigned %} {% endif %} {% if aspect.required %} Required {% elseif aspect.usage == 'RECOMMENDED' %} Recommended {% else %} Optional {% endif %} {% if aspect.values %} {{ aspect.values|slice(0, 6)|join(', ') }}{% if aspect.values|length > 6 %} (+{{ aspect.values|length - 6 }}){% endif %} {% else %} Freitext {% endif %}
Abbrechen
{% else %}
Kategorie oben suchen und auswählen, um die eBay-Aspekte zu laden.
{% endif %} {% endblock %}