src/Tutorka/Bundle/CoreBundle/Resources/views/Lander/cities.html.twig line 1

Open in your IDE?
  1. {% extends "@TutorkaCore/layout/standard_width_layout.html.twig" %}
    
    {% trans_default_domain 'layout' %}
    
    {% block stylesheets %}
        {{ parent() }}
        <link rel="stylesheet" href="{{ asset('build/css/static.css') }}">
    {% endblock %}
    
    {% block content %}
        <div class="row h-100 justify-content-center">
            <div class="col-12">
                <h1 class="main-heading text-center mb-4 mt-3">{{ 'lander.allCities.title'|trans }}</h1>
                <div class="row">
                    {% for key, cityWithKey in cities %}
                        <div class="col-12 col-md-6 col-lg-4">
                            <section class="mb-4">
                                <h4>{{ key }}</h4>
                                {% for city in cityWithKey %}
                                    <h6><a href="{{ path('advert_list', {'filterContainer': advert_list_url({'city': city.slug}) }) }}">{{ 'advert.composed.title'|trans({}, 'advert') }} {{ city.name }} ({{ city.count }})</a></h6>
                                {% endfor %}
                            </section>
                        </div>
                    {% endfor %}
                </div>
            </div>
        </div>
    {% endblock %}
    
    {% block javascripts %}
        {{ parent() }}
        <script src="{{ asset('build/js/page/base.js') }}"></script>
    {% endblock %}
    
    {% block footer %}
        {{ include('@TutorkaCore/footer.html.twig') }}
    {% endblock %}