fixes in template with new route and forms

This commit is contained in:
2022-06-06 22:07:04 +02:00
parent fc7d2fcca3
commit 168aff81f4
8 changed files with 62 additions and 28 deletions

View File

@@ -9,8 +9,8 @@
{
'title' : 'Remove calendar item'|trans,
'confirm_question' : 'Are you sure you want to remove the calendar item?'|trans,
'cancel_route' : 'chill_calendar_calendar_list',
'cancel_parameters' : { 'accompanying_period_id' : accompanyingCourse.id, 'id' : calendar.id },
'cancel_route' : 'chill_calendar_calendar_list_by_period',
'cancel_parameters' : { 'id' : accompanyingCourse.id },
'form' : delete_form
} ) }}
{% endblock %}

View File

@@ -33,7 +33,6 @@
<div id="location"></div>
{% endif %}
{%- if form.startDate is defined -%}
{{ form_row(form.startDate) }}
{% endif %}

View File

@@ -3,6 +3,9 @@
{{ form_start(form) }}
{{ form_errors(form) }}
<div id="calendar"></div> {# <=== vue component #}
<div id="mainUser"></div> {# <=== vue component: mainUser #}
<h2 class="chill-red">{{ 'Concerned groups'|trans }}</h2>
@@ -27,6 +30,13 @@
<h2 class="chill-red">{{ 'Calendar data'|trans }}</h2>
<div id="schedule"></div>
{%- if form.location is defined -%}
{{ form_row(form.location) }}
<div id="location"></div>
{% endif %}
{%- if form.startDate is defined -%}
{{ form_row(form.startDate) }}
{% endif %}
@@ -35,11 +45,12 @@
{{ form_row(form.endDate) }}
{% endif %}
{%- if form.location is defined -%}
{{ form_row(form.location) }}
<div id="location"></div>
{%- if form.calendarRange is defined -%}
{{ form_row(form.calendarRange) }}
{% endif %}
<div id="fullCalendar"></div>
{%- if form.comment is defined -%}
{{ form_row(form.comment) }}
{% endif %}
@@ -52,7 +63,6 @@
{{ form_row(form.sendSMS) }}
{% endif %}
<div id="fullCalendar"></div>
<ul class="record_actions sticky-form-buttons">
<li class="cancel">
@@ -61,7 +71,7 @@
{%- if context == 'person' -%}
href="{{ chill_return_path_or('chill_calendar_calendar_list', { 'person_id': person.id } )}}"
{%- else -%}
href="{{ chill_return_path_or('chill_calendar_calendar_list', { 'accompanying_period_id': accompanyingCourse.id } )}}"
href="{{ chill_return_path_or('chill_calendar_calendar_list_by_period', { 'id': accompanyingCourse.id } )}}"
{%- endif -%}
>
{{ 'Cancel'|trans|chill_return_path_label }}