parent
0054ee04ec
commit
75b25354fe
9 changed files with 171 additions and 65 deletions
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 1.1 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,15 +1,28 @@ |
|||||||
{% load i18n %} |
{% load i18n static %} |
||||||
|
|
||||||
<form action="{% url 'events:main' %}" method="get"> |
<form action="{% url 'events:main' %}" method="get" class="filter_form"> |
||||||
{% csrf_token %} |
<div class="filter_form_header">{% trans 'Выбрать по критериям:' %}</div> |
||||||
|
|
||||||
{% for field in form %} |
<div class="filter_form_clear_all"> |
||||||
{% if field.errors %}error{% endif %} |
<a href="#"> |
||||||
<label for="{{ field.auto_id }}">{{ field.label }}</label> |
<img src="{% static 'client/img/x3.png' %}" alt=""> |
||||||
{{ field }} |
{% trans 'Сбросить все фильтры' %}</a> |
||||||
{{ field.errors }} |
</div> |
||||||
{{ field.help_text }} |
|
||||||
{% endfor %} |
|
||||||
|
|
||||||
<button type="submit">{% trans "Применить" %}</button> |
<div class="filters"> |
||||||
|
{% csrf_token %} |
||||||
|
|
||||||
|
{% for field in form %} |
||||||
|
{% if field.errors %}error{% endif %} |
||||||
|
<label for="{{ field.auto_id }}" class="filter_block_label"> |
||||||
|
{{ field.label }} |
||||||
|
<i class="fa fa-caret-down"></i> |
||||||
|
</label> |
||||||
|
{{ field }} |
||||||
|
{{ field.errors }} |
||||||
|
{{ field.help_text }} |
||||||
|
{% endfor %} |
||||||
|
|
||||||
|
<button type="submit">{% trans "Применить" %}</button> |
||||||
|
</div> |
||||||
</form> |
</form> |
||||||
|
|||||||
Loading…
Reference in new issue