rename syntax for ChillMain twig template calls

This commit is contained in:
Tchama 2020-07-30 14:25:28 +02:00
parent 6a2b94b4c2
commit 09a2cea83b
6 changed files with 8 additions and 6 deletions

View File

@ -16,7 +16,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 "ChillMainBundle::Admin/layoutWithVerticalMenu.html.twig" %} {% extends "@ChillMain/Admin/layoutWithVerticalMenu.html.twig" %}
{% block vertical_menu_content %} {% block vertical_menu_content %}
{{ chill_menu('admin_person') }} {{ chill_menu('admin_person') }}

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU Affero General Public License * You should have received a copy of the GNU Affero General Public License
* 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 "ChillMainBundle::layout.html.twig" %} {% extends "@ChillMain/layout.html.twig" %}
{% block title %}{{ 'Add a person'|trans }}{% endblock title %} {% block title %}{{ 'Add a person'|trans }}{% endblock title %}

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU Affero General Public License * You should have received a copy of the GNU Affero General Public License
* 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 "ChillMainBundle::layout.html.twig" %} {% extends "@ChillMain/layout.html.twig" %}
{% block title %}{{ 'Alreay existing person'|trans }}{% endblock title %} {% block title %}{{ 'Alreay existing person'|trans }}{% endblock title %}

View File

@ -21,7 +21,7 @@
layout. layout.
#} #}
{% extends "ChillMainBundle::layoutWithVerticalMenu.html.twig" %} {% extends "@ChillMain/layoutWithVerticalMenu.html.twig" %}

View File

@ -9,6 +9,7 @@
namespace Chill\PersonBundle\Widget; namespace Chill\PersonBundle\Widget;
use Chill\MainBundle\Templating\Widget\WidgetInterface; use Chill\MainBundle\Templating\Widget\WidgetInterface;
use Twig\Environment;
/** /**
@ -19,7 +20,7 @@ use Chill\MainBundle\Templating\Widget\WidgetInterface;
class AddAPersonWidget implements WidgetInterface class AddAPersonWidget implements WidgetInterface
{ {
public function render( public function render(
\Twig_Environment $env, Environment $env,
$place, $place,
array $context, array $context,
array $config) { array $config) {

View File

@ -30,6 +30,7 @@ use Chill\PersonBundle\Security\Authorization\PersonVoter;
use Symfony\Component\Security\Core\Role\Role; use Symfony\Component\Security\Core\Role\Role;
use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManager;
use Chill\CustomFieldsBundle\Entity\CustomField; use Chill\CustomFieldsBundle\Entity\CustomField;
use Twig\Environment;
/** /**
* add a widget with person list. * add a widget with person list.
@ -93,7 +94,7 @@ class PersonListWidget implements WidgetInterface
* @param array $config * @param array $config
* @return string * @return string
*/ */
public function render(\Twig_Environment $env, $place, array $context, array $config) public function render(Environment $env, $place, array $context, array $config)
{ {
$numberOfItems = $config['number_of_items'] ?? 20; $numberOfItems = $config['number_of_items'] ?? 20;