{% macro list_menu(children) %} {% for child in children %} <li><a href="{{ child.uri }}">{{ child.label|trans({}, 'left_menu') }}</a></li> {% endfor %}{% endmacro %}{% from _self import list_menu %}{% set currentCity = app.request.get('city') %}{% if item.Districts is defined and currentCity is not null %} <div> <a href="{{ item.Districts.uri }}" class="btn btn-primary"> {% trans with {'%ofCity%': currentCity.name|trans({}, 'left_menu')|geo_name('genitive')} from 'left_menu' %}Районы %ofCity%{% endtrans %} </a> </div>{% endif %}<ul class="list-unstyled"> {{ list_menu(item.Base) }}</ul>{% if item.Additionally is defined %} <p><strong>{% trans with {} from 'left_menu' %}Дополнительно{% endtrans %}</strong></p> <ul class="list-unstyled"> {{ list_menu(item.Additionally) }} </ul>{% endif %}{% if item.Elite is defined %} <p><strong>{% trans with {} from 'left_menu' %}Элитные{% endtrans %}</strong></p> <ul class="list-unstyled"> {{ list_menu(item.Elite) }} </ul>{% endif %}<p><strong>{% trans with {} from 'left_menu' %}Цена{% endtrans %}</strong></p><ul class="list-unstyled"> {{ list_menu(item.Price) }}</ul>{% if item.Gender is defined %} <p><strong>{% trans with {} from 'left_menu' %}Пол{% endtrans %}</strong></p> <ul class="list-unstyled"> {{ list_menu(item.Gender) }} </ul>{% endif %}<p><strong>{% trans with {} from 'left_menu' %}Возраст{% endtrans %}</strong></p><ul class="list-unstyled"> {{ list_menu(item.Age) }}</ul>{% if item.Height is defined %} <p><strong>{% trans with {} from 'left_menu' %}Рост{% endtrans %}</strong></p> <ul class="list-unstyled"> {{ list_menu(item.Height) }} </ul>{% endif %}<p><strong>{% trans with {} from 'left_menu' %}Цвет волос{% endtrans %}</strong></p><ul class="list-unstyled"> {{ list_menu(item.HairColor) }}</ul><p><strong>{% trans with {} from 'left_menu' %}Телосложение{% endtrans %}</strong></p><ul class="list-unstyled"> {{ list_menu(item.BodyType) }}</ul>{% if item.BreastType is defined %} <p><strong>{% trans with {} from 'left_menu' %}Тип груди{% endtrans %}</strong></p> <ul class="list-unstyled"> {{ list_menu(item.BreastType) }} </ul>{% endif %}{% if item.Place is defined %} <p><strong>{% trans with {} from 'left_menu' %}Место{% endtrans %}</strong></p> <ul class="list-unstyled"> {{ list_menu(item.Place) }} </ul>{% endif %}{% if item.PrivateHaircut is defined %} <p><strong>{% trans with {} from 'left_menu' %}Интимная стрижка{% endtrans %}</strong></p> <ul class="list-unstyled"> {{ list_menu(item.PrivateHaircut) }} </ul>{% endif %}<p><strong>{% trans with {} from 'left_menu' %}Национальность{% endtrans %}</strong></p><ul class="list-unstyled"> {{ list_menu(item.Nationality) }}</ul>{% for serviceGroupItem in item.Services.children %} <p><strong>{{ serviceGroupItem.label|trans({}, 'service_groups') }}</strong></p> <ul class="list-unstyled"> {% for serviceItem in serviceGroupItem.children %} {#<li> #}{# Вариант для чекбоксов #}{# <a href="#" data-param="services" data-value="{{ serviceItem.extras['service_id'] }}" rel="nofollow"> <i></i> {{ serviceItem.label }} </a> </li>#} <li> {# Вариант для ссылок #} {% if currentCity is not null %} <a href="{{ path('profile_list.list_by_provided_service', {'city': currentCity.uriIdentity, 'service': serviceItem.extras['service_uri_identity']}) }}">{{ serviceItem.label }}</a> {% endif %} </li> {% endfor %} </ul>{% endfor %}