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

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