feat: improved layout, removed htmx-boost for simplicity

This commit is contained in:
Björn Fromme
2025-01-25 14:59:09 +01:00
parent 6730c243f6
commit f9e7f28b6b
19 changed files with 95 additions and 209 deletions
+26 -24
View File
@@ -1,24 +1,26 @@
{{ form_start(form) }}
{{ form_row(form.email) }}
<div class="flex flex-col lg:flex-row space-y-2 lg:space-y-0 lg:space-x-2 mt-4">
<button type="submit" class="button bg-button bg-button--secondary">
Passwort erneuern
</button>
<button type="button"
hx-get="{{ path('app_login') }}"
hx-target="#login-form"
hx-select="#login-form"
hx-swap="outerHTML"
class="button bg-button">
zum Login
</button>
<button type="button"
hx-get="{{ path('app_registration') }}"
hx-target="#myep"
hx-swap="outerHTML"
class="button bg-button">
registrieren
</button>
</div>
{{ form_rest(form) }}
{{ form_end(form) }}
{% extends 'layout.html.twig' %}
{% block content %}
<h1 class="mb-4">
Passwort vergessen
</h1>
{{ form_start(form, { 'attr': { 'data-action': 'loading#toggle' } }) }}
<div class="grid grid-cols-1 md:grid-cols-2 gap-x-4 mb-4">
{{ form_row(form.email) }}
</div>
<div class="flex flex-col lg:flex-row space-y-2 lg:space-y-0 lg:space-x-2 mt-4">
<button type="submit" class="button bg-button">
Passwort erneuern
</button>
<a href="{{ path('app_login') }}"
class="button bg-button bg-button--secondary">
zum Login
</a>
<a href="{{ path('app_registration') }}"
class="button bg-button bg-button--secondary">
registrieren
</a>
</div>
{{ form_rest(form) }}
{{ form_end(form) }}
{% endblock %}