templates/frontend/services/coinByCategory.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block title %}Nos Coins{% endblock %}
  3. {% block stylesheet %}
  4.     {{ parent() }}
  5.     <link href="{{ asset('assets/css/main.css') }}" rel="stylesheet">
  6.     <link href="{{ asset('assets/css/hero-in.css') }}" rel="stylesheet">
  7. {% endblock %}
  8. {% block body %}
  9.     <main>
  10.         {% include '_partials/home/hero-section.html.twig' %}
  11.         <div class="mt-4 container-fluid">
  12.                 <h1 class="mb-md-5" style="font-weight: 700">{{ category.name }}</h1>
  13.                 <div class="row mb-5">
  14.                     <div class="col-sm-12 col-md-4 col-xl-3 col-xxl-3">
  15.                         {% include '_partials/search/attraction_advanced_search.html.twig' with {
  16.                             'form_mode': false,
  17.                             'filter_title': 'Catégories',
  18.                             'categoryArray': [category.id],
  19.                         } %}
  20.                     </div>
  21.                     <div class="col-sm-12 col-md-8 col-xl-9 col-xxl-9">
  22.                         <div class="row mb-4">
  23.                             {% if attractions['hydra:member'] | length > 0 %}
  24.                                 {% for attraction in attractions['hydra:member'] %}
  25.                                     {% include "_partials/coins/item.html.twig" %}
  26.                                 {% endfor %}
  27.                                 <div class="row">
  28.                                     {% if pagination | length > 0 %}
  29.                                         <div class="col-md-4 offset-md-4" style="display: flex; justify-content: center;">
  30.                                             {% include '_partials/pagination.html.twig' with {
  31.                                                 total: pagination.last,
  32.                                                 current: page,
  33.                                                 url: path('app_coin_by_category',{'category': category.id,'name': category.slug}) ~ "?page="
  34.                                             } %}
  35.                                         </div>
  36.                                     {% endif %}
  37.                                 </div>
  38.                             {% else %}
  39.                                 <h3 class="text-center">Cette catégorie n'a pas d'attractions pour le moment.</h3>
  40.                             {% endif %}
  41.                         </div>
  42.                     </div>
  43.                 </div>
  44.             </div>
  45.     </main>
  46.     <!--/main-->
  47. {% endblock %}
  48. {% block javascript %}
  49. {{ parent() }}
  50. {% endblock %}