Update filter form to reflect current filter status
This commit is contained in:
parent
c3d5dd363b
commit
9e1ffb1a6b
|
@ -7,10 +7,10 @@
|
|||
</a>
|
||||
<form style="width: max-content; padding-top: 2; padding-bottom: 2; padding-right: 0">
|
||||
<select name="filter">
|
||||
<option value="0">All</option>
|
||||
<option value="1">To Do</option>
|
||||
<option value="2">In Progress</option>
|
||||
<option value="3">Done</option>
|
||||
<option value="0" {% if filter == 0 %}selected{% endif %}>All</option>
|
||||
<option value="1" {% if filter == 1 %}selected{% endif %}>To Do</option>
|
||||
<option value="2" {% if filter == 2 %}selected{% endif %}>In Progress</option>
|
||||
<option value="3" {% if filter == 3 %}selected{% endif %}>Done</option>
|
||||
</select>
|
||||
<input type="submit" value="Filter">
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue