mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
template extends person layout, fix syntax
This commit is contained in:
parent
7665181d44
commit
7ee91afae2
@ -28,7 +28,7 @@ Then, render the pagination using the dedicated twig function.
|
|||||||
|
|
||||||
.. code-block:: html+twig
|
.. code-block:: html+twig
|
||||||
|
|
||||||
{% extends "ChillPersonBundle::layout.html.twig" %}
|
{% extends "@ChillPerson/Person/layout.html.twig" %}
|
||||||
|
|
||||||
{% block title 'Item list'|trans %}
|
{% block title 'Item list'|trans %}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ It proposes a new block :
|
|||||||
|
|
||||||
* where to display the admin content
|
* where to display the admin content
|
||||||
|
|
||||||
ChillPersonBundle::layout.html.twig
|
@ChillPersonBundle/Person/layout.html.twig
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
||||||
This layout extend `ChillMainBundle::layoutWithVerticalMenu.html.twig` add the person details in the block `top_banner`, set the menu `person` as the vertical menu.
|
This layout extend `ChillMainBundle::layoutWithVerticalMenu.html.twig` add the person details in the block `top_banner`, set the menu `person` as the vertical menu.
|
||||||
|
@ -547,7 +547,7 @@ class SingleTaskController extends AbstractController
|
|||||||
$viewParams['tasks_count'] = $tasks_count;
|
$viewParams['tasks_count'] = $tasks_count;
|
||||||
|
|
||||||
if ($viewParams['person'] !== null){
|
if ($viewParams['person'] !== null){
|
||||||
$viewParams['layout'] = 'ChillPersonBundle::layout.html.twig';
|
$viewParams['layout'] = '@ChillPerson/Person/layout.html.twig';
|
||||||
} else {
|
} else {
|
||||||
$viewParams['layout'] = '@ChillMain/layout.html.twig';
|
$viewParams['layout'] = '@ChillMain/layout.html.twig';
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#}
|
#}
|
||||||
|
|
||||||
{% extends layout %}
|
{% extends '@ChillPerson/Person/layout.html.twig' %}
|
||||||
|
|
||||||
{% set activeRouteKey = 'chill_task_single_task_new' %}
|
{% set activeRouteKey = 'chill_task_single_task_new' %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user