<div><labelfor="date_to">To</label><inputid="date_to"name="date_to"type="date"value="{{ request.GET.date_to }}">{% if filter_errors.date_to %}<pclass="error">{{ filter_errors.date_to }}</p>{% endif %}</div>
<div><labelfor="account">Account</label><selectid="account"name="account"><optionvalue="">All</option>{% for item in accounts %}<optionvalue="{{ item.pk }}"{%ifrequest.GET.account ==item.pk|stringformat:'s'%}selected{%endif%}>{{ item.name }}{% if item.archived %} (Archived){% endif %}</option>{% endfor %}</select>{% if filter_errors.account %}<pclass="error">{{ filter_errors.account }}</p>{% endif %}</div>
<div><labelfor="kind">Kind</label><selectid="kind"name="kind"><optionvalue="">All</option>{% for value, label in kinds %}<optionvalue="{{ value }}"{%ifrequest.GET.kind ==value%}selected{%endif%}>{{ label }}</option>{% endfor %}</select></div>
<div><labelfor="payee">Payee</label><selectid="payee"name="payee"><optionvalue="">All</option>{% for item in payees %}<optionvalue="{{ item.pk }}">{{ item.name }}</option>{% endfor %}</select></div>
<div><labelfor="category">Category</label><selectid="category"name="category"><optionvalue="">All</option>{% for item in categories %}<optionvalue="{{ item.pk }}">{{ item.name }}</option>{% endfor %}</select></div>
<div><labelfor="payee">Payee</label><selectid="payee"name="payee"><optionvalue="">All</option>{% for item in payees %}<optionvalue="{{ item.pk }}"{%ifrequest.GET.payee ==item.pk|stringformat:'s'%}selected{%endif%}>{{ item.name }}</option>{% endfor %}</select></div>
<div><labelfor="category">Category</label><selectid="category"name="category"><optionvalue="">All</option>{% for item in categories %}<optionvalue="{{ item.pk }}"{%ifrequest.GET.category ==item.pk|stringformat:'s'%}selected{%endif%}>{{ item.name }}</option>{% endfor %}</select></div>
<div><labelfor="currency">Currency</label><inputid="currency"name="currency"maxlength="3"value="{{ request.GET.currency }}">{% if filter_errors.currency %}<pclass="error">{{ filter_errors.currency }}</p>{% endif %}</div>