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

Open in your IDE?
  1. <h6>{{ 'advert.list.search.title'|trans({}, 'advert') }}</h6>
    
    {% set custom_city_id = 'advert-city' %}
    {% set custom_subject_id = 'advert-subject' %}
    {% set form_search_class = 'form-advert-search' %}
    {% if mobile is defined and mobile %}
        {% set custom_city_id = 'mobile-city' %}
        {% set custom_subject_id = 'mobile-subject' %}
        {% set form_search_class = 'form-mobile-search' %}
    {% endif %}
    
    {{ form_start(form, {'attr': {'class': 'form-submit ' ~ form_search_class }}) }}
    
    <div class="form-group row collection_subjects">
        {{ form_label(form.subject, 'subject.label', {'label_attr': {'class': 'col-sm-12 col-md-12 col-form-label'}}) }}
        <div class="col-sm-12 col-md-12">
            {{ form_widget(form.subject, {'id': custom_subject_id, 'attr': {'class': 'collection-subject'}}) }}
            {{ form_errors(form.subject) }}
        </div>
    </div>
    <div class="form-group row collection_cities">
        {{ form_label(form.city, 'city.label', {'label_attr': {'class': 'col-sm-12 col-md-12 col-form-label'}}) }}
        <div class="col-sm-12 col-md-12">
            {{ form_widget(form.city, {'id': custom_city_id, 'attr': {'class': 'collection-city-multi'}}) }}
            {{ form_errors(form.city) }}
        </div>
    </div>
    <div class="form-group row">
        {{ form_label(form.searchText, 'searchText.label', {'label_attr': {'class': 'col-sm-12 col-md-12 col-form-label'}}) }}
        <div class="col-sm-12 col-md-12">
            <div class="input-group">
                {{ form_widget(form.searchText, {'attr': {'class': ''}}) }}
                <div class="input-group-append">
                    <button class="btn btn-outline-dark"><i class="fas fa-search"></i></button>
                </div>
            </div>
            {{ form_errors(form.searchText) }}
        </div>
    </div>
    <div class="form-group row">
        {{ form_label(form.level, 'level.label', {'label_attr': {'class': 'col-sm-12 col-md-12 col-form-label'}}) }}
        <div class="col-sm-12 col-md-12">
            {{ form_widget(form.level) }}
            {{ form_errors(form.level) }}
        </div>
    </div>
    <div class="form-group row">
        {{ form_label(form.placeAttribute, 'attributesPlace.label', {'label_attr': {'class': 'col-sm-12 col-md-12 col-form-label'}}) }}
        <div class="col-sm-12 col-md-12">
            {{ form_widget(form.placeAttribute) }}
            {{ form_errors(form.placeAttribute) }}
        </div>
    </div>
    <div class="form-group row">
        {{ form_label(form.preferredTimeAttribute, 'attributesPreferredTime.label', {'label_attr': {'class': 'col-sm-12 col-md-12 col-form-label'}}) }}
        <div class="col-sm-12 col-md-12">
            {{ form_widget(form.preferredTimeAttribute) }}
            {{ form_errors(form.preferredTimeAttribute) }}
        </div>
    </div>
    <div class="form-group row">
        {{ form_label(form.teacherExperienceAttribute, 'attributesTeacherExperience.label', {'label_attr': {'class': 'col-sm-12 col-md-12 col-form-label'}}) }}
        <div class="col-sm-12 col-md-12">
            {{ form_widget(form.teacherExperienceAttribute) }}
            {{ form_errors(form.teacherExperienceAttribute) }}
        </div>
    </div>
    <div class="form-group row">
        {{ form_label(form.otherAttribute, 'attributesOther.label', {'label_attr': {'class': 'col-sm-12 col-md-12 col-form-label'}}) }}
        <div class="col-sm-12 col-md-12">
            {{ form_widget(form.otherAttribute) }}
            {{ form_errors(form.otherAttribute) }}
        </div>
    </div>
    <div class="form-group text-center mt-5">
        {{ form_widget(form.submit, {'attr': {'class': 'btn btn-lg btn-secondary btn-radius btn-submit'}}) }}
    </div>
    
    {{ form_end(form) }}