{% extends 'htmx_modal.html.twig' %}
{% block title %}Vorschau{% endblock %}
{% block content %}
{% if not previewable %}
Für die Vorschau bitte zuerst Motiv, Von, Für und Gutscheinwert angeben.
{% else %}
{% set previewUrl = path('app_voucher_preview_pdf', { v: previewVersion }) %}
{# BusPro renders the PDF on demand, which takes a few seconds #}
{% include '_partials/_spinner.html.twig' with { class: 'w-24 h-24' } %}
Die Vorschau wird erstellt …