Refactor to new bundle style (Symfony v6)
This commit is contained in:
9
templates/categories.html.twig
Normal file
9
templates/categories.html.twig
Normal 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 %}
|
1
templates/form.extra.html.twig
Normal file
1
templates/form.extra.html.twig
Normal file
@ -0,0 +1 @@
|
||||
{# Add extra content on the bottom of the form #}
|
8
templates/form.html.twig
Normal file
8
templates/form.html.twig
Normal 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 %}
|
2
templates/layout.html.twig
Normal file
2
templates/layout.html.twig
Normal file
@ -0,0 +1,2 @@
|
||||
{% block par_user_content %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user