Add filter problems by solved
This commit is contained in:
parent
d1e5aaa3e1
commit
aa8abdec20
3 changed files with 23 additions and 4 deletions
|
@ -121,7 +121,7 @@
|
|||
|
||||
$('#go').click(clean_submit);
|
||||
|
||||
$('input#full_text, input#hide_solved, input#show_types, input#show_editorial, input#have_editorial').click(function () {
|
||||
$('input#full_text, input#hide_solved, input#show_types, input#show_editorial, input#have_editorial, input#show_solved_only').click(function () {
|
||||
prep_form();
|
||||
($('<form>').attr('action', window.location.pathname + '?' + form_serialize())
|
||||
.append($('<input>').attr('type', 'hidden').attr('name', 'csrfmiddlewaretoken')
|
||||
|
|
|
@ -7,13 +7,20 @@
|
|||
<input id="search" type="text" name="search" value="{{ search_query or '' }}"
|
||||
placeholder="{{ _('Search problems...') }}">
|
||||
</div>
|
||||
{% if request.user.is_authenticated %}
|
||||
{% if feed_type != 'volunteer' and request.user.is_authenticated %}
|
||||
<div>
|
||||
<input id="hide_solved" type="checkbox" name="hide_solved" value="1"
|
||||
{% if hide_solved %}checked{% endif %}>
|
||||
<label for="hide_solved">{{ _('Hide solved problems') }}</label>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if feed_type == 'volunteer' and request.user.is_authenticated %}
|
||||
<div>
|
||||
<input id="show_solved_only" type="checkbox" name="show_solved_only" value="1"
|
||||
{% if show_solved_only %}checked{% endif %}>
|
||||
<label for="show_solved_only">{{ _('Show solved problems') }}</label>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if feed_type != 'volunteer' %}
|
||||
<div>
|
||||
<input id="show_types" type="checkbox" name="show_types" value="1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue