{% extends "layout.html.twig" %} {% block content %} {% set params = { columns: { name: "Csoportnév", school: "Iskola", projectName: "Program", headCount: "Létszám", averageAge: "Korosztály", parentConsent: "Szülői nyilatkozat", bookingDate: "Időpont", subscribeDates: "Várólistás időpontok", attendees: "Résztvevők", edit: "Szerkesztés", remove: "Törlés", }, rows: appointments, pagination: pagination, } %} {% embed "embed/table_page.html.twig" with params %} {% block page_title %}

Foglalásaim

{% endblock %} {% block grid_body %} {% if appointments|length > 0 or form.vars['submitted'] %}
Új foglalás hozzáadása
{# Mind#} {# {% for choice in form.projectName.vars.choices %}#} {# #} {# {{ choice.label|trans }}#} {# #} {# {% endfor %}#}
{% endif %} {{ parent() }} {% endblock %} {% block empty %} {% if form.vars['submitted'] %}
Nincs találat
{% else %}
Új foglalás hozzáadása
{% endif %} {% endblock empty %} {% block cell_name %} {{ row.name }} {% endblock %} {% block cell_projectName %} {{ ("project." ~ row.projectName)|trans }}
{{ row.tourType }} {% endblock %} {% block cell_school %} {{ row.schoolName }} {% if row.schoolAddress is not empty %}
{{ "%s %s %s %s"|format(row.schoolAddress.county, row.schoolAddress.postCode, row.schoolAddress.city, row.schoolAddress.street) }} {% else %}
{{ row.legacySchoolAddress }} {% endif %} {% endblock %} {% block cell_supportPackage %} {% if row.supportPackage is not empty %} {{ row.supportPackage.code }}
{{ row.supportPackage.companyName }} {% else %} - {% endif %} {% endblock %} {% block cell_headCount %} {{ row.attendeesCount }} / {{ row.headCount }} {% if row.attendeesCount >= row.headCount %} {% else %} {% endif %}
{% if row.attendeeDeadline is not null and row.attendeesCount < row.headCount %} {% if row.attendeeDeadline.day != 0 %} {{ row.attendeeDeadline.day }} napod van feltölteni {% else %} <1 napja van feltölteni. {% endif %} {% endif %} {% endblock %} {% block cell_averageAge %} {{ ('age.' ~ value)|trans }} {% endblock %} {% block cell_parentConsent %} {{ row.parentConsentCount }} / {{ row.headCount }} {% if row.parentConsentCount >= row.headCount %} {% else %} {% endif %}
{% if row.parentConsentDeadline is not null and row.attendeesCount >= row.headCount and row.parentConsentCount < row.headCount %} {% if row.parentConsentDeadline.day != 0 %} {{ row.parentConsentDeadline.day }} napja van feltölteni. {% else %} <1 napja van feltölteni. {% endif %} {% endif %} {% endblock %} {% block cell_bookingDate %} {% if row.bookingDate is not empty %} {{ row.bookingDate.date }} {% if row.canModify and row.inCurrentSeason %} {% if row.tourTypeEntity.active %} {% else %} {% endif %} {% endif %} {% if row.attendeesCount >= row.headCount and row.parentConsentCount >= row.headCount %} {% endif %} {% elseif row.inCurrentSeason and row.tourTypeEntity.active %} {% if row.validAppointmentHeadcount and row.filledAttendees %} Időpont foglalás {% else %} {% endif %} {% else %} N/A {% endif %} {% endblock %} {% block cell_subscribeDates %} {% for subscribeDate in row.subscribeDates %} {{ subscribeDate.date }}
{% else %} - {% endfor %} {% endblock %} {% block cell_attendees %} Résztvevők {% endblock %} {% block cell_edit %} {% endblock %} {% block cell_remove %} {% if row.canModify %} {% endif %} {% endblock %} {% endembed %} {% include "appointment/invalid_appointment_modal.html.twig" %} {% endblock %}