mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
Update path to twig template with new syntax
This commit is contained in:
@@ -578,13 +578,12 @@ class CRUDController extends AbstractController
|
||||
/**
|
||||
* Customize template parameters.
|
||||
*
|
||||
* @param mixed $entity
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function generateTemplateParameter(
|
||||
string $action,
|
||||
$entity,
|
||||
mixed $entity,
|
||||
Request $request,
|
||||
array $defaultTemplateParameters = []
|
||||
) {
|
||||
|
@@ -63,24 +63,24 @@ abstract class AbstractWidgetsCompilerPass implements CompilerPassInterface
|
||||
/**
|
||||
* the key to use to identify widget for a given place.
|
||||
*/
|
||||
public const WIDGET_CONFIG_ALIAS = 'widget_alias';
|
||||
final public const WIDGET_CONFIG_ALIAS = 'widget_alias';
|
||||
|
||||
/**
|
||||
* the key to use to order widget for a given place.
|
||||
*/
|
||||
public const WIDGET_CONFIG_ORDER = 'order';
|
||||
final public const WIDGET_CONFIG_ORDER = 'order';
|
||||
|
||||
/**
|
||||
* The service which will manage the widgets.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const WIDGET_MANAGER = 'chill.main.twig.widget';
|
||||
final public const WIDGET_MANAGER = 'chill.main.twig.widget';
|
||||
|
||||
/**
|
||||
* the method wich register the widget into give service.
|
||||
*/
|
||||
public const WIDGET_MANAGER_METHOD_REGISTER = 'addWidget';
|
||||
final public const WIDGET_MANAGER_METHOD_REGISTER = 'addWidget';
|
||||
|
||||
/**
|
||||
* the key used to collect the alias in the service definition's tag.
|
||||
@@ -89,21 +89,21 @@ abstract class AbstractWidgetsCompilerPass implements CompilerPassInterface
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const WIDGET_SERVICE_TAG_ALIAS = 'alias';
|
||||
final public const WIDGET_SERVICE_TAG_ALIAS = 'alias';
|
||||
|
||||
/**
|
||||
* the value of the `name` key in service definitions's tag.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const WIDGET_SERVICE_TAG_NAME = 'chill_widget';
|
||||
final public const WIDGET_SERVICE_TAG_NAME = 'chill_widget';
|
||||
|
||||
/**
|
||||
* the key used to collect the authorized place in the service definition's tag.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const WIDGET_SERVICE_TAG_PLACES = 'place';
|
||||
final public const WIDGET_SERVICE_TAG_PLACES = 'place';
|
||||
|
||||
/**
|
||||
* cache of ordering by place.
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
<div class="flex-table accordion accordion-flush" id="notification-fold">
|
||||
{% for notification in notifications %}
|
||||
{% include 'ChillMainBundle:Notification:_list_item.html.twig' with {
|
||||
{% include '@ChillMain/Notification/_list_item.html.twig' with {
|
||||
'full_content': true,
|
||||
'fold_item': true,
|
||||
'action_button': true,
|
||||
|
@@ -49,7 +49,7 @@
|
||||
<div class="flex-table accordion accordion-flush" id="notification-fold">
|
||||
{% for data in datas %}
|
||||
{% set notification = data.notification %}
|
||||
{% include 'ChillMainBundle:Notification:_list_item.html.twig' with {
|
||||
{% include '@ChillMain/Notification/_list_item.html.twig' with {
|
||||
'fold_item': true,
|
||||
'notification_cc': data.template_data.notificationCc is defined ? data.template_data.notificationCc : false
|
||||
} %}
|
||||
|
@@ -20,7 +20,7 @@
|
||||
<h1>{{ 'notification.Notification'|trans }}</h1>
|
||||
|
||||
<div class="flex-table">
|
||||
{% include 'ChillMainBundle:Notification:_list_item.html.twig' with {
|
||||
{% include '@ChillMain/Notification/_list_item.html.twig' with {
|
||||
'data': {
|
||||
'template': handler.getTemplate(notification),
|
||||
'template_data': handler.getTemplateData(notification)
|
||||
@@ -32,7 +32,7 @@
|
||||
} %}
|
||||
</div>
|
||||
|
||||
{% include 'ChillMainBundle:Notification:_item_comments.html.twig' %}
|
||||
{% include '@ChillMain/Notification/_item_comments.html.twig' %}
|
||||
|
||||
<ul class="record_actions sticky-form-buttons">
|
||||
<li class="cancel">
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% extends 'ChillMainBundle::layout.html.twig' %}
|
||||
{% extends '@ChillMain/layout.html.twig' %}
|
||||
|
||||
{% block title %}{{ 'Edit my current location'|trans }}{% endblock %}
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{% extends 'ChillMainBundle::layout.html.twig' %}
|
||||
{% extends '@ChillMain/layout.html.twig' %}
|
||||
|
||||
{% import '@ChillMain/Workflow/macro_breadcrumb.html.twig' as macro %}
|
||||
|
||||
|
@@ -44,7 +44,7 @@ class MenuTwig extends AbstractExtension implements ContainerAwareInterface
|
||||
*
|
||||
* Expected params :
|
||||
* - args: the arguments to build the path (i.e: if pattern is /something/{bar}, args must contain {'bar': 'foo'}
|
||||
* - layout: the layout. Absolute path needed (i.e.: ChillXyzBundle:section:foo.html.twig)
|
||||
* - layout: the layout. Absolute path needed (i.e.: @ChillXyz/section/foo.html.twig)
|
||||
* - activeRouteKey : the key active, will render the menu differently.
|
||||
*
|
||||
* @deprecated link: see https://redmine.champs-libres.coop/issues/179 for more informations
|
||||
|
@@ -92,7 +92,7 @@ interface TimelineProviderInterface
|
||||
*
|
||||
* ```
|
||||
* array(
|
||||
* 'template' => 'ChillMyBundle:timeline:template.html.twig',
|
||||
* 'template' => '@ChillMy/timeline/template.html.twig',
|
||||
* 'template_data' => array(
|
||||
* 'accompanyingPeriod' => $entity,
|
||||
* 'person' => $args['person']
|
||||
|
Reference in New Issue
Block a user