git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1406
6d9bc8c9-1ec2-4278-b937-
99fde70a366f
return Q(start_term__start__lte=after, start_term__start__gt=today)
elif N == 2: # all future courses
return Q(start_term__start__gt=today)
+ elif N == 99: # no filter at all
+ return Q()
else:
raise Exception('unknown timeframe: %d' % N)
${opt( 0, _('Active courses'), True)}
${opt( 1, _('Starting soon'))}
${opt( 2, _('Future courses'))}
+ ${opt( 99, _('——'), True)}
+ ${opt( 99, _('All courses'))}
</select>
<script>
$(function() { $('#timeframe select').change(function () { $('#timeframe')[0].submit(); }); });