adding location hidden field in Calendar formType

This commit is contained in:
2021-10-15 13:13:00 +02:00
parent 4677fadf6f
commit 0e18a3ada9
3 changed files with 27 additions and 6 deletions

View File

@@ -38,7 +38,10 @@
{{ form_row(form.calendarRange) }}
{% endif %}
.. location
{%- if form.location is defined -%}
{{ form_row(form.location) }}
<div id="location"></div>
{% endif %}
{%- if form.comment is defined -%}
{{ form_row(form.comment) }}
@@ -56,7 +59,7 @@
<ul class="record_actions sticky-form-buttons">
<li class="cancel">
<a
<a
class="btn btn-cancel"
{%- if context == 'user' -%}
href="{{ chill_return_path_or('chill_calendar_calendar_list', { 'user_id': user.id } )}}"

View File

@@ -34,7 +34,10 @@
{{ form_row(form.endDate) }}
{% endif %}
.. location
{%- if form.location is defined -%}
{{ form_row(form.location) }}
<div id="location"></div>
{% endif %}
{%- if form.comment is defined -%}
{{ form_row(form.comment) }}
@@ -48,9 +51,9 @@
<ul class="record_actions sticky-form-buttons">
<li class="cancel">
<a
<a
class="btn btn-cancel"
{%- if context == 'person' -%}
{%- 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 } )}}"