[mod] separating categories
commita3de9ba56c592b99f2c654c37af0861806a45d1f
authorasciimoo <asciimoo@gmail.com>
dateWed 1 Jan 2014, 22:16 (13 years ago)
parent11fdd8e
searx/templates/categories.htmlnew file+5
@@ -0,0 +1,5 @@
1+{% for category in categories %}
2+ <div class="checkbox_container">
3+ <input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /><label for="checkbox_{{ category|replace(' ', '_') }}" class="cb"></label><label for="checkbox_{{ category|replace(' ', '_') }}">{{ category }}</label>
4+ </div>
5+{% endfor %}
searx/templates/search.html+1−5
@@ -4,10 +4,6 @@
44 <input type="submit" value="" id="search_submit" />
55</div>
66 <div>
7− {% for category in categories %}
8− <div class="checkbox_container">
9− <input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /><label for="checkbox_{{ category|replace(' ', '_') }}" class="cb"></label><label for="checkbox_{{ category|replace(' ', '_') }}">{{ category }}</label>
10− </div>
11− {% endfor %}
7+ {% include 'categories.html' %}
128 </div>
139</form>