mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-20 01:04:23 +00:00
16 lines
612 B
Twig
16 lines
612 B
Twig
{% extends '@ChillPerson/AccompanyingCourse/layout.html.twig' %}
|
|
|
|
{% block title %}{%- if 'DRAFT' == accompanyingCourse.step -%}{{ 'New accompanying course'|trans }}{%- else -%}{{ 'Edit Accompanying Course'|trans }}{%- endif -%}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id="accompanying-course"></div> {# <== insert accompanyingCourse vue component #}
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
<script type="text/javascript">
|
|
window.accompanyingCourseId = {{ accompanyingCourse.id|e('js') }};
|
|
window.vueRootComponent = 'app';
|
|
</script>
|
|
{{ encore_entry_script_tags('vue_accourse') }}
|
|
{% endblock %}
|