{# ── CSV Import (reusable partial) ── TWO parts: 1. _csv_import_btn.html — inline button for the header (include manually in the header row) 2. This file — the expandable banner (include after the header) Requires context var: csv_import_stale (bool) #} {# Full expandable banner — hidden by default, JS auto-expands if stale #}
{% trans %}Import Addons CSV for customer names & historical orders{% endtrans %}
{% if csv_last_import %} {% set last_import_date = csv_last_import|localdt('%b %d, %Y') %} {% set last_import_ago = csv_last_import | timesince %}{% trans %}Last import: {{ last_import_date }}{% endtrans %} ({{ last_import_ago }}). {% trans %}We recommend uploading the latest CSV for up-to-date customer names and order data.{% endtrans %}
{% else %}{% trans %}No CSV imported yet. Upload the Addons CSV to enrich orders with customer names, websites, and historical data not available via API.{% endtrans %}
{% endif %}{{ _("Export from") }} {% trans %}Addons → Statistics{% endtrans %} {{ _("(semicolon-delimited CSV).") }}
{# Drop zone #}{{ _("Drop your CSV file here") }}
{% trans %}or click to browse{% endtrans %}
{{ _("Importing CSV...") }}
{{ _("Preparing...") }}
0%
{{ _("CSV import complete") }}
0
{{ _("new") }}
0
{{ _("updated") }}
0
{{ _("unchanged") }}
0
{{ _("skipped") }}
0
{{ _("profiles") }}
{{ _("CSV import failed") }}