Refactor to new bundle style (Symfony v6)

This commit is contained in:
Tim
2023-02-21 00:44:28 +01:00
parent a2fe3584be
commit 7040fd5ea7
14 changed files with 76 additions and 107 deletions

View File

@ -0,0 +1,9 @@
{% extends '@ArdentParameter/layout.html.twig' %}
{% block par_user_content %}
<h2>Parameter categories</h2><br>
{% for category in categories %}
<a class="btn-primary btn" href="{{ path('parameter_bundle_parameters', {category:category}) }}">{{ category }}</a><br><br>
{% endfor %}
{% endblock %}

View File

@ -0,0 +1 @@
{# Add extra content on the bottom of the form #}

8
templates/form.html.twig Normal file
View File

@ -0,0 +1,8 @@
{% extends '@ArdentParameter/layout.html.twig' %}
{% block par_user_content %}
<a class="btn-primary btn" href="{{ path('parameter_bundle_parameters', {category:'categories'}) }}">Back</a> <br><br>
{{ form(parameter_form) }}
{% include '@ArdentParameter/form.extra.html.twig' %}
{% endblock %}

View File

@ -0,0 +1,2 @@
{% block par_user_content %}
{% endblock %}