{% extends 'base.html' %}
{% block content %}
<div class="toolbar">
  <div>
    <h1>{{ t('settings.import_export', 'Import / Export') }}</h1>
    <p class="muted">{{ t('settings.import_export_help', 'Assets als Excel-Datei exportieren oder aus einer Excel-Datei importieren.') }}</p>
  </div>
</div>

<div class="settings-action-grid">
  <section class="panel">
    <h2>{{ t('assets.import', 'Import') }}</h2>
    <p>{{ t('settings.import_help', 'Vorhandene Assets über die Asset-ID aktualisieren und neue Assets ohne Asset-ID anlegen.') }}</p>
    <div class="form-actions">
      <a class="button" href="/assets/import">{{ t('assets.import_open', 'Import öffnen') }}</a>
      <a class="button button-secondary" href="/assets/import/template.xlsx">{{ t('assets.import_template', 'Importvorlage herunterladen') }}</a>
    </div>
  </section>

  <section class="panel">
    <h2>{{ t('assets.export', 'Export') }}</h2>
    <p>{{ t('settings.export_help', 'Den aktuellen Assetbestand mit Asset-ID und allen exportierbaren Feldern herunterladen.') }}</p>
    <div class="form-actions">
      <a class="button" href="/export/assets.xlsx">{{ t('assets.export_download', 'Assets als Excel herunterladen') }}</a>
    </div>
  </section>
</div>
{% endblock %}
