{% extends "layout.html.twig" %} {% block content %} {% embed "embed/page.html.twig" %} {% block page_title %}

Résztvevő szerkesztése

{% endblock %} {% block page_content %} {% import "macro.html.twig" as macro %} {{ form_start(form) }} {% set updateType = form.updateAnswer %}

Általános adatok

{{ form_row(form.name, {label: "Neve"}) }} {{ form_row(form.age, {label: "Életkora"}) }} {{ macro.showFormIfExist(updateType, "sport", {label: "Sport választás"}) }} {% if form.vars['project_name'] == 'ski' %} {{ macro.showFormIfExist(updateType, "skiLevel", {label: "Sítudás / Snowboard tudás"}) }} {% else %} {{ macro.showFormIfExist(updateType, "skiLevel", {label: "Sítudás"}) }} {% endif %} {{ macro.showFormIfExist(updateType, "bacon", {label: "Szeretne-e szalonnátsütni a végén?"}) }} {{ macro.showFormIfExist(updateType, "equipment", {label: "Amennyiben rendelkezik felszereléssel, kérjük jelöld be melyikekkel"}) }} {% if updateType.equipment is defined %} {{ form_row(updateType.equipment.children.0, {label_attr: {class: 'checkbox-custom'}}) }}
{{ form_row(updateType.equipment.children.1, {label_attr: {class: 'checkbox-custom'}}) }}
{{ form_row(updateType.equipment.children.2, {label_attr: {class: 'checkbox-custom'}}) }} {% if updateType.equipment.children.3 is defined %}
{{ form_row(updateType.equipment.children.3, {label_attr: {class: 'checkbox-custom'}}) }}
{{ form_row(updateType.equipment.children.4, {label_attr: {class: 'checkbox-custom'}}) }} {% endif %} {% endif %}

Méretek

{{ macro.showFormIfExist(updateType, "height", {label: "Magasság (cm)"}) }}
{{ macro.showFormIfExist(updateType, "weight", {label: "Testtömeg (kg)"}) }}
{{ macro.showFormIfExist(updateType, "hasSkate", {label: "Van korcsolyája?"}) }} {{ macro.showFormIfExist(updateType, "headSize", {label: "Fejméret"}) }}
{{ macro.showFormIfExist(updateType, "feetSize", {label: "Lábméret"}) }}
{% do updateType.setRendered() %}
Vissza
{{ form_end(form) }} {% endblock %} {% endembed %} {% endblock %}