{% extends "@ChillPerson/Person/layout.html.twig" %}

{% set activeRouteKey = 'chill_calendar_calendar_list' %}

{% block title  'chill_calendar.cancel_calendar_item'|trans %}

{% block content %}

    <div class="flex-table list-records context-person">
        {{ include('@ChillCalendar/Calendar/_list.html.twig', {context: 'person', show_record_actions: false}) }}
    </div>

    {{ form_start(form) }}

    {{ form_row(form.cancelReason) }}

    <ul class="record_actions sticky-form-buttons">
        <li class="cancel">
            <a
                class="btn btn-cancel"
                href="{{ chill_return_path_or('chill_calendar_calendar_list', { 'id': person.id } )}}"
            >
                {{ 'Cancel'|trans|chill_return_path_label }}
            </a>
        </li>
        <li>
            {{ form_widget(form.submit, { 'attr' : { 'class': 'btn btn-save' }, 'label': 'Save' } ) }}
        </li>
    </ul>

    {{ form_end(form) }}

{% endblock %}
