mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-20 17:24:25 +00:00
* vue css and js loaded from layout.html.twig * rename 'show' template to 'edit' template * overwrite js block for 'edit' template (load all component, not only banner)
29 lines
874 B
Twig
29 lines
874 B
Twig
{% extends "ChillMainBundle::layoutWithVerticalMenu.html.twig" %}
|
|
|
|
{% block top_banner %}
|
|
{{ include('ChillPersonBundle:AccompanyingCourse:banner.html.twig', { title: block('title') }) }}
|
|
{% endblock %}
|
|
|
|
{% block layout_wvm_content %}
|
|
{% block content %}{% endblock %}
|
|
{% endblock %}
|
|
|
|
{% block vertical_menu_content %}
|
|
{{ chill_menu('accompanyingCourse', {
|
|
'layout': 'ChillPersonBundle:AccompanyingCourse:menu.html.twig',
|
|
'args' : { 'accompanyingCourse': accompanyingCourse }
|
|
}) }}
|
|
{% endblock %}
|
|
|
|
{% block css %}
|
|
{{ encore_entry_link_tags('accompanying_course') }}
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
<script type="text/javascript">
|
|
window.accompanyingCourseId = {{ accompanyingCourse.id|e('js') }};
|
|
window.vueRootComponent = 'banner';
|
|
</script>
|
|
{{ encore_entry_script_tags('accompanying_course') }}
|
|
{% endblock %}
|