accompanyingCourse, household and person use uniq menu template

This commit is contained in:
Mathieu Jaumotte 2021-07-12 10:23:23 +02:00
parent f4f747d8d1
commit 17ff80c39c
5 changed files with 3 additions and 20 deletions

View File

@ -10,7 +10,7 @@
{% block vertical_menu_content %} {% block vertical_menu_content %}
{{ chill_menu('accompanyingCourse', { {{ chill_menu('accompanyingCourse', {
'layout': 'ChillPersonBundle:AccompanyingCourse:menu.html.twig', 'layout': '@ChillPerson/menu.html.twig',
'args' : { 'accompanyingCourse': accompanyingCourse } 'args' : { 'accompanyingCourse': accompanyingCourse }
}) }} }) }}
{% endblock %} {% endblock %}

View File

@ -1,9 +0,0 @@
<div class="list-group vertical-menu menu-accompanying-course">
{% for menu in menus %}
<a class="list-group-item list-group-item-action"
href="{{ menu.uri }}">
{{ menu.label|upper }}
</a>
{% endfor %}
</div>

View File

@ -10,7 +10,7 @@
{% block vertical_menu_content %} {% block vertical_menu_content %}
{{ chill_menu('household', { {{ chill_menu('household', {
'layout': '@ChillPerson/Household/menu.html.twig', 'layout': '@ChillPerson/menu.html.twig',
'args' : { 'household': household } 'args' : { 'household': household }
}) }} }) }}
{% endblock %} {% endblock %}

View File

@ -1,8 +0,0 @@
<div class="list-group vertical-menu menu-household">
{% for menu in menus %}
<a class="list-group-item list-group-item-action"
href="{{ menu.uri }}">
{{ menu.label|upper }}
</a>
{% endfor %}
</div>

View File

@ -1,5 +1,5 @@
{# {#
* Copyright (C) 2014, Champs Libres Cooperative SCRLFS, <http://www.champs-libres.coop> * Copyright (C) 2014-2021, Champs Libres Cooperative SCRLFS, <http://www.champs-libres.coop>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as * it under the terms of the GNU Affero General Public License as