templates/ProfileList/list.profiles.html.twig line 1

Open in your IDE?
  1. {% if null != profiles %}
  2.     <h2 class="px-3 w-100">{{ profiles.totalCount }} {{ profiles.totalCount|incline_numeral(['товар', 'товара', 'товаров']) }}</h2>
  3. {% endif %}
  4. {% set profiles_array = (profiles is iterable) ? ((profiles.array is defined) ? profiles.array : profiles) : [] %}
  5. {% for profile in profiles %}
  6.     <div class="col-4">
  7.         <div class="card" alt="{{ profile.seo ? profile.seo.phone : '' }}" data-profile-id="{{ profile.id }}">
  8.             {% set photo = profile|avatar %}
  9.             {% if photo is not null %}
  10.                 <img class="card-img-top"
  11.                      src="{{ responsive_asset(photo.path, photo.type == 'photo' ? 'profile_media' : 'profile_media_avatar', '357x500', 'jpg') }}"
  12.                      alt="{{ profile.seo ? profile.seo.phone : '' }}">
  13.             {% endif %}
  14.             <div class="card-body">
  15.                 {% if profile.isApproved %}APPROVED{% endif %}
  16.                 <h5 class="card-title"><a
  17.                             href="{{ path('profile_preview.page', {'city': profile.city.uriIdentity, 'profile': profile.uriIdentity}) }}"
  18.                             title="">{{ profile.name|trans }} (pos: {{ profile.position ?? '' }})</a></h5>
  19.                 {% if profile.isActive or not profile.hidden %}
  20.                     <h6 class="card-subtitle mb-2"><a href="tel:{{ profile.phoneNumber }}">{{ profile.phoneNumber }}</a>
  21.                     </h6>
  22.                 {% endif %}
  23.                 <p class="card-text text-muted small">
  24.                     {% if loop.first and profile is top_placement %}
  25.                         TOP
  26.                     {% elseif profile.isUltraVip %}
  27.                         UltraVIP
  28.                     {% elseif profile.isVip %}
  29.                         VIP
  30.                     {% elseif profile.isStandard %}
  31.                         Standard
  32.                     {% else %}
  33.                         Unknown (Free?)
  34.                     {% endif %}
  35.                 </p>
  36.                 {% for station in profile.stations %}
  37.                     <a href="{{ path('profile_list.list_by_station', {'city': profile.city.uriIdentity, 'station': station.uriIdentity}) }}">{{ station.name|trans }} {% if loop.first %}*{% endif %}</a>
  38.                     {% if not loop.last %}, {% endif %}
  39.                 {% endfor %}
  40.                 <dl class="small">
  41.                     <dt>{% trans %}Возраст{% endtrans %}</dt>
  42.                     <dd>{{ profile.personParameters.age }}</dd>
  43.                     <dt>{% trans %}Рост{% endtrans %}</dt>
  44.                     <dd>{{ profile.personParameters.height }}</dd>
  45.                     <dt>{% trans %}Вес{% endtrans %}</dt>
  46.                     <dd>{{ profile.personParameters.weight }}</dd>
  47.                     <dt>{% trans %}Грудь{% endtrans %}</dt>
  48.                     <dd>{{ profile.personParameters.breastSize }}</dd>
  49.                 </dl>
  50.                 <dl class="small">
  51.                     <dt>{% trans %}Час{% endtrans %}</dt>
  52.                     <dd>{{ profile.apartmentsPricing.oneHourPrice }} руб</dd>
  53.                     <dt>{% trans %}2 часа{% endtrans %}</dt>
  54.                     <dd>{{ profile.apartmentsPricing.twoHoursPrice }} руб</dd>
  55.                     <dt>{% trans %}Ночь{% endtrans %}</dt>
  56.                     <dd>{{ profile.apartmentsPricing.nightPrice }} руб</dd>
  57.                 </dl>
  58.                 <p class="small">
  59.                     {% if profile.apartmentsPricing.isProvided %}
  60.                         {{ 'апартаменты'|trans }}
  61.                     {% endif %}
  62.                     {% if profile.takeOutPricing.isProvided %}
  63.                         {{ 'выезд'|trans }}
  64.                     {% endif %}
  65.                 </p>
  66.                 {#                        <p> #}
  67.                 {#                            <ul> #}
  68.                 {#                                {% for service in profile.providedServices %} #}
  69.                 {#                                    <li class="text-success"> #}
  70.                 {#                                        <a>{{ service.service.name|trans }}</a> #}
  71.                 {#                                    </li> #}
  72.                 {#                                {% endfor %} #}
  73.                 {#                            </ul> #}
  74.                 {#                        </p> #}
  75.                 <p class="card-text text-muted small">{{ profile.description|trans }}</p>
  76.                 {# <p class="card-text text-muted small">{{ (top_profile is defined and profile != top_profile) and profile.isStandard ? 'standard' }}</p> #}
  77.                 {% include 'ProfileList/tags.html.twig' with { 'profile': profile } %}
  78.             </div>
  79.         </div>
  80.     </div>
  81.     {# {% if loop.index % 3 == 0 %}</div><div class="row mb-3">{% endif %} #}
  82. {% endfor %}
  83. {% if show_pagination is defined %}
  84.     <div class="filtered_profiles_pagination">
  85.         {{ porpaginas_render(profiles) }}
  86.     </div>
  87. {% endif %}