mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-23 10:44:24 +00:00
25 lines
945 B
Twig
25 lines
945 B
Twig
{% extends "@ChillPerson/layout.html.twig" %}
|
|
|
|
{% set activeRouteKey = 'chill_activity_activity_new' %}
|
|
|
|
{% block title 'Activity creation' |trans %}
|
|
|
|
{% block personcontent %}
|
|
{% include 'ChillActivityBundle:Activity:new.html.twig' %}
|
|
<div id="activity"></div> {# <=== vue component #}
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
<script src="{{ asset('build/async_upload.js') }}" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
chill.displayAlertWhenLeavingUnsubmittedForm('form[name="{{ form.vars.form.vars.name }}"]', '{{ "You are going to leave a page with unsubmitted data. Are you sure you want to leave ?"|trans }}');
|
|
window.activity = {{ activity_json|e('js') }};
|
|
</script>
|
|
{{ encore_entry_script_tags('vue_activity') }}
|
|
{% endblock %}
|
|
|
|
{% block css %}
|
|
<link rel="stylesheet" href="{{ asset('build/async_upload.css') }}"/>
|
|
{{ encore_entry_link_tags('vue_activity') }}
|
|
{% endblock %}
|