You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

84 lines
4.8 KiB

{% load static %}
{% load i18n %}
{% load template_filters %}
<div id="pw-place" class="popup-window pw-place">
<header class="clearfix">
<div class="pw-title">{% trans 'Место' %}</div>
</header>
<div class="pw-body clearfix">
<form class="pw-form search_form" action="{{ search_form.search_url }}">
<div class="c-select-box-wrap">
<div class="c-select-box places">
<div class="csb-title">
<input type="text" class="filter-input" autocomplete="on" placeholder="Введите или выберите страну из списка" />
<!--
<div class="ac-custom-message" id="ac_animes"><span>Этот регион уже выбран.</span></div>
-->
<!--Введите или выберите страну из списка-->
</div>
<div class="csb-selected-items"></div>
<div class="scroll-container csb-menu">
<div class="scroll-content clearfix">
<div class="places-list">
<ul>
{% for value, text in search_form.area.field.choices %}
<li class="level1">
<label>
<input type="checkbox" name="area" value="{{ value }}" {% for option in search_form.area.value %}{% if option == value|slugify %}checked="checked"{% endif %}{% endfor %}/>
<span class="hidden">{{ text }}</span>
</label>
<a href="#">{{ text }}</a>
{% if value|get_country_by_area %}
<ul>
{% for country in value|get_country_by_area %}
<li class="level2">
<label>
<input type="checkbox" name="co" value="{{ country.id }}" {% for option in search_form.co.value %}{% if option == country.id|slugify %}checked="checked"{% endif %}{% endfor %}/>
<span class="hidden">{{ country.name }}</span>
</label>
<a href="#">{{ country.name }}</a>
{% if country.id|get_city_by_country %}
<ul>
{% for city in country.id|get_city_by_country %}
<li>
<label>
<input type="checkbox" name="ci" value="{{ city.id }}" {% for option in search_form.ci.value %}{% if option == city.id|slugify %}checked="checked"{% endif %}{% endfor %}/>{{ city.name }}
</label>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<div class="q-sel">
<div class="q-sel-title">{% trans 'Быстрый выбор' %}:</div>
<ul>
<li><a href="#">Москва</a></li>
<li><a href="#">Санкт-Петербург</a></li>
</ul>
<a class="clear" href="#">{% trans 'Сбросить выбранные регионы' %}</a>
</div>
</div>
</div>
</div>
</div>
<div class="pwf-buttons-line">
<button type="submit" class="icon-check">{% trans 'применить' %}</button>
</div>
</form>
</div>
</div>