{% extends "@TutorkaCore/layout/standard_width_layout.html.twig" %}
{% trans_default_domain 'advert' %}
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('build/css/manageAdvert.css') }}">
{% endblock %}
{% block content %}
<div class="row h-auto justify-content-center">
<div class="col-12 col-xl-8">
<h1 class="main-heading text-center mb-4 mt-3">{{ 'advert.addWatchDog.panel.title'|trans }}</h1>
<div class="card border-0">
<div class="card-body p-0 p-sm-5">
{{ form_start(form, {'attr': {'class': 'form-submit' }}) }}
{{ form_widget(form.recaptcha) }}
<div class="form-group row collection_subjects">
{{ form_label(form.subject, 'subject.label', {'label_attr': {'class': 'col-sm-12 col-md-4 col-form-label'}}) }}
<div class="col-sm-12 col-md-8">
{{ form_widget(form.subject, {'attr': {'class': 'collection-subject'}}) }}
{{ form_errors(form.subject) }}
</div>
</div>
<div class="form-group row collection_cities">
{{ form_label(form.cities, 'city.label', {'label_attr': {'class': 'col-sm-12 col-md-4 col-form-label'}}) }}
<div class="col-sm-12 col-md-8">
{{ form_widget(form.cities, {'attr': {'class': 'collection-city-multi'}}) }}
{{ form_errors(form.cities) }}
</div>
</div>
<div class="form-group row">
{{ form_label(form.level, null, {'label_attr': {'class': 'col-sm-12 col-md-4 col-form-label'}}) }}
<div class="col-sm-12 col-md-8">
{{ form_widget(form.level) }}
{{ form_errors(form.level) }}
</div>
</div>
<div class="form-group row">
{{ form_label(form.attributesPreferredTime, null, {'label_attr': {'class': 'col-sm-12 col-md-4 col-form-label'}}) }}
<div class="col-sm-12 col-md-8">
{{ form_widget(form.attributesPreferredTime, {'attr': {'class': ''}}) }}
{{ form_errors(form.attributesPreferredTime) }}
</div>
</div>
<div class="form-group row">
{{ form_label(form.attributesPlace, null, {'label_attr': {'class': 'col-sm-12 col-md-4 col-form-label'}}) }}
<div class="col-sm-12 col-md-8">
{{ form_widget(form.attributesPlace, {'attr': {'class': ''}}) }}
{{ form_errors(form.attributesPlace) }}
</div>
</div>
<div class="form-group row">
{{ form_label(form.attributesOther, null, {'label_attr': {'class': 'col-sm-12 col-md-4 col-form-label'}}) }}
<div class="col-sm-12 col-md-8">
{{ form_widget(form.attributesOther, {'attr': {'class': ''}}) }}
{{ form_errors(form.attributesOther) }}
</div>
</div>
{% if not app.user %}
<hr class="my-5">
<div class="form-group row">
{{ form_label(form.email, 'email.label', {'label_attr': {'class': 'col-sm-12 col-md-4 col-form-label'}}) }}
<div class="col-sm-12 col-md-8">
{{ form_widget(form.email, {'attr': {'class': ''}}) }}
{{ form_errors(form.email) }}
</div>
</div>
{% endif %}
<hr class="my-5">
<div class="form-group text-center">
{{ form_widget(form.submit, {'attr': {'class': 'btn btn-lg btn-secondary btn-radius btn-submit'}}) }}
</div>
{{ form_end(form) }}
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="{{ asset('build/js/page/advertAdd.js') }}"></script>
{% endblock %}
{% block footer %}
{{ include('@TutorkaCore/footer.html.twig') }}
{% endblock %}