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.
 
 
 
 
 
 

43 lines
2.0 KiB

{% load static %}
{% load i18n %}
{% load template_filters %}
<div class="popup-window themes">
<header>
<div class="title">{% trans 'Тематика' %}</div>
</header>
<div class="body">
<div class="themes_wrapper">
<div class="autocomplete_block">
{# TODO: Поправить data-url #}
<input type="text" id="autocomplete_themes" class="autocomplete_input" data-url="/search-form/autocomplete/" data-form="subj" name="term" placeholder="{% trans 'Введите или выберите тематику из списка' %}">
<ul id="autocomplete_themes_results" class="autocomplete_themes_results"></ul>
</div>
<ul class="selected_values selected selected_themes"></ul>
<div class="scroll-container">
<div class="scroll-content">
<div class="topics-list">
<ul class="modal_checkboxes">
{% for value, text in search_form.th.field.choices %}
<li class="level1">
<label>
<input type="checkbox" class="hidden_checkbox" name="th" id="tid_{{ prefix }}{{ value }}" value="{{ value }}" {% for option in search_form.th.value %}{% if option == value|slugify %}checked="checked"{% endif %}{% endfor %}/>
<span class="custom_checkbox"></span>
<span class="label hidden">{{ text }}</span>
</label>
<a href="/search-form/?name=th&id={{ value }}" data-sub="true" class="trigger">{{ text }}</a>
<ul class="sub"></ul>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
<div class="wait-ajax"></div>
</div>
</div>
</div>