templates/Gallery/list.html.twig line 8

Open in your IDE?
  1. {% extends 'grid.html.twig' %}
  2. {% set city = app.request.get('city') %}
  3. {% block mainContainer %}
  4.     <h1>{% trans with {'%ofCity%': city.name|trans|geo_name('genitive')} %}Проститутки %ofCity%, шлюхи и путаны{% endtrans %}</h1>
  5.     {{ porpaginas_render(profiles) }}
  6.     <div class="row mb-3">
  7.     {% for profile in profiles %}
  8.         <div class="col-4">
  9.             <div class="card">
  10.                 <img class="card-img-top" src="{{ profile.photos[0].path }}" alt="">
  11.                 <div class="card-body">
  12.                     <h5 class="card-title"><a href="{{ path('profile_preview.page', {'city': city.uriIdentity, 'profile': profile.uriIdentity}) }}" title="">{{ profile.name|trans }}</a></h5>
  13.                     <h6 class="card-subtitle mb-2"><a href="tel:{{ profile.phoneNumber }}">{{ profile.phoneNumber }}</a></h6>
  14.                     {% for station in profile.stations %}
  15.                         <a href="{{ path('profile_list.list_by_station', {'city': city.uriIdentity, 'station': station.uriIdentity}) }}">{{ station.name|trans }}</a>
  16.                         {% if not loop.last %}, {% endif %}
  17.                     {% endfor %}
  18.                     <dl class="small">
  19.                         <dt>{% trans %}Возраст{% endtrans %}</dt>
  20.                         <dd>{{ profile.personParameters.age }}</dd>
  21.                         <dt>{% trans %}Рост{% endtrans %}</dt>
  22.                         <dd>{{ profile.personParameters.height }}</dd>
  23.                         <dt>{% trans %}Вес{% endtrans %}</dt>
  24.                         <dd>{{ profile.personParameters.weight }}</dd>
  25.                         <dt>{% trans %}Грудь{% endtrans %}</dt>
  26.                         <dd>{{ profile.personParameters.breastSize }}</dd>
  27.                     </dl>
  28.                     <dl class="small">
  29.                         <dt>{% trans %}Час{% endtrans %}</dt>
  30.                         <dd>{{ profile.apartmentsPricing.oneHourPrice }} руб</dd>
  31.                         <dt>{% trans %}2 часа{% endtrans %}</dt>
  32.                         <dd>{{ profile.apartmentsPricing.twoHoursPrice }} руб</dd>
  33.                         <dt>{% trans %}Ночь{% endtrans %}</dt>
  34.                         <dd>{{ profile.apartmentsPricing.nightPrice }} руб</dd>
  35.                     </dl>
  36.                     <p class="small">
  37.                         {% if profile.apartmentsPricing.isProvided %}
  38.                             {{ 'апартаменты'|trans }}
  39.                         {% endif %}
  40.                         {% if profile.takeOutPricing.isProvided %}
  41.                             {{ 'выезд'|trans }}
  42.                         {% endif %}
  43.                     </p>
  44.                     <p class="card-text text-muted small">{{ profile.description|trans }}</p>
  45.                 </div>
  46.             </div>
  47.         </div>
  48.         {% if loop.index % 4 == 0 %}</div><div class="row mb-3">{% endif %}
  49.     {% endfor %}
  50.     </div>
  51.     {{ porpaginas_render(profiles) }}
  52. {% endblock %}