fix: incorrect and unnecessary template inheritance
This commit is contained in:
@@ -1,26 +1,5 @@
|
|||||||
{% extends 'layout.html.twig' %}
|
{% extends 'layout.html.twig' %}
|
||||||
|
|
||||||
{# Local form theme override for consistent fieldset rendering #}
|
|
||||||
{% use 'forms.html.twig' %}
|
|
||||||
|
|
||||||
{% block form_row %}
|
|
||||||
{%- if form.vars.expanded is defined and form.vars.expanded -%}
|
|
||||||
{# Expanded forms get fieldset wrapper #}
|
|
||||||
<fieldset class="mb-1">
|
|
||||||
<legend class="font-semibold mb-1">
|
|
||||||
{{- form.vars.label -}}
|
|
||||||
</legend>
|
|
||||||
{{- form_widget(form, {
|
|
||||||
'attr': attr|default({})
|
|
||||||
}) -}}
|
|
||||||
{{- form_errors(form) -}}
|
|
||||||
{{- form_help(form) -}}
|
|
||||||
</fieldset>
|
|
||||||
{%- else -%}
|
|
||||||
{{- parent() -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Neue Buchung</h1>
|
<h1>Neue Buchung</h1>
|
||||||
|
|
||||||
@@ -43,7 +22,7 @@
|
|||||||
{# Payment method selection with HTMX #}
|
{# Payment method selection with HTMX #}
|
||||||
<div id="form-payment"
|
<div id="form-payment"
|
||||||
hx-post="{{ path('app_booking_create_step_3_refresh') }}"
|
hx-post="{{ path('app_booking_create_step_3_refresh') }}"
|
||||||
hx-trigger="change from:input[type='radio']"
|
hx-trigger="change"
|
||||||
hx-target="#form-payment"
|
hx-target="#form-payment"
|
||||||
hx-select="#form-payment"
|
hx-select="#form-payment"
|
||||||
hx-swap="outerHTML">
|
hx-swap="outerHTML">
|
||||||
|
|||||||
Reference in New Issue
Block a user