Author: sevein
Date: Wed Dec 1 15:00:56 2010
New Revision: 50
Log:
Cosmetic change.
Modified:
trunk/chk4upd/views.py
trunk/templates/report.html
Modified: trunk/chk4upd/views.py
==============================================================================
--- trunk/chk4upd/views.py Wed Dec 1 14:57:40 2010 (r49)
+++ trunk/chk4upd/views.py Wed Dec 1 15:00:56 2010 (r50)
@@ -61,12 +61,12 @@
objects = Call.objects.all().order_by('-created_at')
- # Filter by release (Default: "all")
- release = request.POST.get('release', 'all')
- if 'all' != release:
- objects = objects.filter(distribution = release)
+ # Filter by distribution (Default: "all")
+ filter_distribution = request.POST.get('filter_distribution', 'all')
+ if 'all' != filter_distribution:
+ objects = objects.filter(distribution = filter_distribution)
- # Filter "staff"
+ # Filter staff (Default: True)
if 'filter_staff' in request.POST or request.method == 'GET':
filter_staff = True
objects = objects.exclude(
Modified: trunk/templates/report.html
==============================================================================
--- trunk/templates/report.html Wed Dec 1 14:57:40 2010 (r49)
+++ trunk/templates/report.html Wed Dec 1 15:00:56 2010 (r50)
@@ -24,7 +24,7 @@
$(this).toggleClass('hover');
});
- $('select[name=release], input[name=filter_staff]').change(function ()
+ $('select[name=filter_distribution],
input[name=filter_staff]').change(function ()
{
$('form').submit();
});
@@ -33,7 +33,7 @@
.css('cursor', 'pointer')
.click(function ()
{
- cb = $(this).prev().trigger('click').trigger('change');
+ $(this).prev().trigger('click').trigger('change');
});
});
@@ -43,11 +43,11 @@
<form action="{% url chk4upd.views.report objects.number %}" method="post">
{% csrf_token %}
- <select name="release">
- <option value="all"{% ifequal release 'all' %} selected="selected"{%
endifequal %}>All</option>
- <option value="icaatom"{% ifequal release 'icaatom' %}
selected="selected"{% endifequal %}>ICA-AtoM</option>
- <option value="dcb"{% ifequal release 'dcb' %} selected="selected"{%
endifequal %}>DCB</option>
- <option value="qubit"{% ifequal release 'qubit' %}
selected="selected"{% endifequal %}>Qubit-Toolkit</option>
+ <select name="filter_distribution">
+ <option value="all"{% ifequal filter_distribution 'all' %}
selected="selected"{% endifequal %}>All</option>
+ <option value="icaatom"{% ifequal filter_distribution 'icaatom' %}
selected="selected"{% endifequal %}>ICA-AtoM</option>
+ <option value="dcb"{% ifequal filter_distribution 'dcb' %}
selected="selected"{% endifequal %}>DCB</option>
+ <option value="qubit"{% ifequal filter_distribution 'qubit' %}
selected="selected"{% endifequal %}>Qubit-Toolkit</option>
</select>
<input type="checkbox" name="filter_staff" value="1"{% if filter_staff
%} checked="checked"{% endif %} />
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.