src/Tutorka/Bundle/ContentBundle/Resources/views/Advert/list.html.twig line 1

Open in your IDE?
  1. {% extends "@TutorkaCore/layout/standard_width_layout.html.twig" %}
    {% set bodyContainerClass = 'container' %}
    
    {% trans_default_domain 'advert' %}
    
    {% block stylesheets %}
        {{ parent() }}
        <link rel="stylesheet" href="{{ asset('build/css/listAdvert.css') }}">
    {% endblock %}
    
    {% block content %}
        {% set composed_title = get_composed_title(filter_container) %}
    
        <div class="row">
            <div class="col-12">
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="{{ path('homepage') }}">{{ 'breadcrumb.home'|trans({}, 'layout') }}</a></li>
                        <li class="breadcrumb-item active">{{ 'advert.composed.title'|trans }} {{ composed_title }}</li>
                    </ol>
                </nav>
            </div>
        </div>
        <div class="row h-auto mt-4">
            <div class="col-lg-3 advert-side-content">
                {{ include('@TutorkaContent/Advert/list.searchPanel.html.twig', {'form': searchForm}) }}
            </div>
            <div class="col-12 col-lg-9 advert-main-content bg-grey attributesRow">
                {% if composed_title %}
                    <h1 class="searchTitle">{{ 'advert.composed.title'|trans }} {{ composed_title }} <small class="badge badge-pill attribute-badge">{{ 'adverts.count'|trans({'count': pagination.itemCount}) }}</small></h1>
                {% else %}
                    <h1 class="searchTitle">{{ 'advert.list.title'|trans }} <small class="badge badge-pill attribute-badge">{{ 'adverts.count'|trans({'count': pagination.itemCount}) }}</small></h1>
                {% endif %}
    
                {{ include('@TutorkaContent/Advert/list.sortPanel.html.twig') }}
    
                {% if list|length > 0 %}
                    {% for advert in list %}
                        {{ include('@TutorkaContent/Advert/listAdvertNew2.row.html.twig', {'advert': advert}) }}
                    {% endfor %}
                    <div class="row advert-demand-info-wrapper">
                        <div class="col-4 col-sm-3 col-xl-2">
                            <img src="{{ asset('build/images/svg/people_search.svg') }}" alt="teacher search" class="w-100" />
                        </div>
                        <div class="col-8 col-sm-9 col-xl-10">
                            <h5>{{ 'advertDemand.title'|trans({}, 'layout') }}</h5>
                            <p class="mb-1 small">{{ 'advertDemand.subtitle'|trans({}, 'layout') }}</p>
                            <p class="mb-0 small"><a href="{{ path('advert_demand_add_prefill', {'filterContainer': filter_container}) }}">{{ 'btn.createDemand.label'|trans({}, 'forms') }}</a></p>
                        </div>
                    </div>
                    <div class="mt-4 pagination-wrapper">
                        {{ include('@TutorkaCore/list.pagination.html.twig', {'pagination': pagination}) }}
                    </div>
                {% else %}
                    <div class="row watch-dog-info-wrapper">
                        <div class="col-4 col-sm-3 col-xl-2 py-3 pl-0">
                            <img src="{{ asset('build/images/svg/dog.svg') }}" alt="dog" class="mt-2 ml-3" />
                        </div>
                        <div class="col-8 col-sm-9 col-xl-10 py-3 pr-0">
                            <h5>{{ 'watchDog.title'|trans({}, 'layout') }}</h5>
                            <p class="mb-1 small">{{ 'watchDog.subtitle'|trans({}, 'layout') }}</p>
                            <p class="mb-0 small"><a href="{{ path('advert_watch_dog_create', {'filterContainer': filter_container}) }}">{{ 'btn.createWatchDog.label'|trans({}, 'forms') }}</a></p>
                        </div>
                    </div>
                {% endif %}
            </div>
        </div>
    {% endblock %}
    
    {% block javascripts %}
        {{ parent() }}
        <script src="{{ asset('build/js/page/advertList.js') }}"></script>
    {% endblock %}
    
    {% block footer %}
        {{ include('@TutorkaCore/footer.html.twig') }}
    {% endblock %}