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.
73 lines
3.8 KiB
73 lines
3.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_action }}">
|
|
<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 }}" /><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="c" value="{{ country.id }}" /><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 }}" />{{ city.name }}</label></li>
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
{{ search_form.area }}
|
|
</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> |