42 lines
1.4 KiB
Twig
42 lines
1.4 KiB
Twig
{{ form_start(form, { 'attr': { 'id': 'email-text-form' } }) }}
|
|
<div class="flex flex-col space-y-4 pb-8">
|
|
{{ form_row(form.subject) }}
|
|
{{ form_row(form.headline) }}
|
|
{{ form_row(form.body) }}
|
|
|
|
<div class="bg-gray-100 rounded-md p-4 text-sm">
|
|
<div class="font-bold pb-2">
|
|
Verfügbare Platzhalter
|
|
</div>
|
|
<ul class="space-y-1">
|
|
{% for name, description in definition.placeholders %}
|
|
<li>
|
|
<code class="font-bold">{{ '{' ~ name ~ '}' }}</code> – {{ description }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
<div class="pt-2">
|
|
Platzhalter ohne Wert werden als <code class="font-bold">-</code> ausgegeben.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="flex items-center space-x-2">
|
|
<button type="submit" class="btn">
|
|
Speichern
|
|
</button>
|
|
<a href="{{ path('app_admin_system_email_text_index') }}" class="btn btn--secondary">
|
|
Abbrechen
|
|
</a>
|
|
{% if emailText.id is not null %}
|
|
<button type="button"
|
|
class="btn btn--secondary text-red-500"
|
|
hx-get="{{ path('app_admin_system_email_text_reset', { 'key': definition.key.value }) }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
Auf Standard zurücksetzen
|
|
</button>
|
|
{% endif %}
|
|
</div>
|
|
{{ form_rest(form) }}
|
|
{{ form_end(form) }}
|