diff options
| author | asciimoo <asciimoo@gmail.com> | 2014-01-01 22:16:21 +0100 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2014-01-01 22:16:21 +0100 |
| commit | a3de9ba56c592b99f2c654c37af0861806a45d1f (patch) | |
| tree | 64becb7d1456bb54578fe5cab59bc1e8b5419d81 | |
| parent | 11fdd8e8ac2021d6c72cd82217f1b999f1b788ca (diff) | |
[mod] separating categories
| -rw-r--r-- | searx/templates/categories.html | 5 | ||||
| -rw-r--r-- | searx/templates/search.html | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/searx/templates/categories.html b/searx/templates/categories.html new file mode 100644 index 000000000..4c693f3dd --- /dev/null +++ b/searx/templates/categories.html @@ -0,0 +1,5 @@ +{% for category in categories %} + <div class="checkbox_container"> + <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> + </div> +{% endfor %} diff --git a/searx/templates/search.html b/searx/templates/search.html index 64f0d8f73..51522b45c 100644 --- a/searx/templates/search.html +++ b/searx/templates/search.html @@ -4,10 +4,6 @@ <input type="submit" value="" id="search_submit" /> </div> <div> - {% for category in categories %} - <div class="checkbox_container"> - <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> - </div> - {% endfor %} + {% include 'categories.html' %} </div> </form> |