fix misc in activity (WIP)

This commit is contained in:
2021-06-08 16:55:29 +02:00
parent a947634f30
commit 0aa909f060
14 changed files with 225 additions and 55 deletions

View File

@@ -6,11 +6,11 @@
{% block content %}
<div id="activity"></div> {# <=== vue component #}
{% include 'ChillActivityBundle:Activity:new.html.twig' %}
{% include 'ChillActivityBundle:Activity:new.html.twig' with {'context': 'accompanyingCourse'} %}
{% endblock %}
{% block js %}
<script src="{{ asset('build/async_upload.js') }}" type="text/javascript"></script>
{{ encore_entry_script_tags('async_upload') }}
<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 }}');