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 %} |
||||
|
||||
<form action="{% url 'events:main' %}" method="get"> |
||||
{# {% csrf_token %} #} |
||||
|
||||
{% for field in form %} |
||||
{% if field.errors %}error{% endif %} |
||||
<label for="{{ field.auto_id }}">{{ field.label }}</label> |
||||
{{ field.help_text|safe }} |
||||
{{ field }} |
||||
{{ field.errors }} |
||||
{% endfor %} |
||||
|
||||
<button type="submit">{% trans "Применить" %}</button> |
||||
{% load i18n static %} |
||||
|
||||
<form action="{% url 'events:main' %}" method="get" class="filter_form"> |
||||
<div class="filter_form_header">{% trans 'Выбрать по критериям:' %}</div> |
||||
|
||||
<div class="filter_form_clear_all"> |
||||
<a href="#"> |
||||
<img src="{% static 'client/img/x3.png' %}" alt=""> |
||||
{% trans 'Сбросить все фильтры' %}</a> |
||||
</div> |
||||
|
||||
<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> |
||||
|
||||
Loading…
Reference in new issue