mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
31 lines
933 B
Twig
31 lines
933 B
Twig
{% extends "@ChillPerson/AccompanyingCourse/layout.html.twig" %}
|
|
|
|
{% set activeRouteKey = 'chill_activity_activity_new' %}
|
|
|
|
{% block title 'Activity creation' |trans %}
|
|
|
|
{% block content %}
|
|
<div class="activity-new">
|
|
|
|
<div id="activity"></div> {# <=== vue component #}
|
|
{% include 'ChillActivityBundle:Activity:new.html.twig' with {'context': 'accompanyingCourse'} %}
|
|
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
{{ parent() }}
|
|
{{ encore_entry_script_tags('mod_async_upload') }}
|
|
<script type="text/javascript">
|
|
window.activity = {{ activity_json|json_encode|raw }};
|
|
{% if default_location is not null %}window.default_location_id = {{ default_location.id }}{% endif %};
|
|
</script>
|
|
{{ encore_entry_script_tags('vue_activity') }}
|
|
{% endblock %}
|
|
|
|
{% block css %}
|
|
{{ parent() }}
|
|
{{ encore_entry_link_tags('mod_async_upload') }}
|
|
{{ encore_entry_link_tags('vue_activity') }}
|
|
{% endblock %}
|