Conflicts: templates/client/includes/events/filter_form.html 1461: Этап №5: Фильтрация событийremotes/origin/stage5
commit
13c6efd2b2
10 changed files with 179 additions and 72 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.help_text|safe }} |
{% trans 'Сбросить все фильтры' %}</a> |
||||||
{{ field }} |
</div> |
||||||
{{ field.errors }} |
|
||||||
{% 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.help_text|safe }} |
||||||
|
{{ field }} |
||||||
|
{{ field.errors }} |
||||||
|
{% endfor %} |
||||||
|
|
||||||
|
<button type="submit">{% trans "Применить" %}</button> |
||||||
|
</div> |
||||||
</form> |
</form> |
||||||
|
|||||||
Loading…
Reference in new issue