This commit is contained in:
stef 2013-10-19 22:20:09 +02:00
commit e31a234551
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,6 @@
categories = ['general'] # optional
def request(query, params):
'''pre-request callback
params<dict>:

View file

@ -3,8 +3,8 @@
<input type="submit" value="search" />
<p>
{% for category in categories %}
{{ category }}: <input type="checkbox" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />
<input type="checkbox" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />{{ category }}
{% endfor %}
</p>
<p>remember categories:<input type="checkbox" name="save" checked="checked" /></p>
<p><input type="checkbox" name="save" checked="checked" />remember categories</p>
</form>