Fix board filter listing in the search form

This commit is contained in:
Benjamin Southall 2016-12-10 18:39:18 +09:00
parent a5c79ff638
commit b89fe3046b

View File

@ -6,8 +6,13 @@
<input id="search" name="search" type="text" size="40" value="{{ search }}"> <input id="search" name="search" type="text" size="40" value="{{ search }}">
<select name="board"> <select name="board">
<option value="none">{% trans %}Select board{% endtrans %}&hellip;</option> <option value="none">{% trans %}Select board{% endtrans %}&hellip;</option>
{% for b in boards %}
<option value="{{ b }}"{% if b == board %} selected{% endif %}>/{{ b }}/</option> {% for b2 in boards %}
{% if b2 == b %}
<option value="{{ b2 }}" selected>/{{ b2 }}/</option>
{% else %}
<option value="{{ b2 }}">/{{ b2 }}/</option>
{% endif %}
{% endfor %} {% endfor %}
</select> </select>
<input type="submit" value="{% trans %}Search{% endtrans %}" /> <input type="submit" value="{% trans %}Search{% endtrans %}" />