mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 18:42:33 +02:00
[mod] web page modification
This commit is contained in:
parent
5c9f6d5174
commit
7915b5c5a0
4 changed files with 99 additions and 64 deletions
|
@ -1,5 +1,7 @@
|
|||
<div id="categories">
|
||||
{% 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>
|
||||
<input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /></label><label for="checkbox_{{ category|replace(' ', '_') }}">{{ category }}</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}{{ q }} - {% endblock %}
|
||||
{% block content %}
|
||||
<div class="right"><a href="/preferences">preferences</a></div>
|
||||
<div class="small">
|
||||
<div class="right"><a href="/preferences" id="preferences"><span>preferences</span></a></div>
|
||||
<div class="small search">
|
||||
{% include 'search.html' %}
|
||||
</div>
|
||||
<div id="results">
|
||||
|
@ -19,19 +19,21 @@
|
|||
{% include 'result_templates/default.html' %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<form method="post" action="/">
|
||||
<div id="apis">
|
||||
<form method="post" action="/">
|
||||
<div class="left">
|
||||
<input type="hidden" name="q" value="{{ q }}" />
|
||||
<input type="hidden" name="format" value="csv" />
|
||||
<input type="submit" value="download results in csv" />
|
||||
<input type="hidden" name="q" value="{{ q }}" />
|
||||
<input type="hidden" name="format" value="csv" />
|
||||
<input type="submit" value="download results in csv" />
|
||||
</div>
|
||||
</form>
|
||||
<form method="post" action="/">
|
||||
</form>
|
||||
<form method="post" action="/">
|
||||
<div class="">
|
||||
<input type="hidden" name="q" value="{{ q }}" />
|
||||
<input type="hidden" name="format" value="json" />
|
||||
<input type="submit" value="download results in json" />
|
||||
<input type="hidden" name="q" value="{{ q }}" />
|
||||
<input type="hidden" name="format" value="json" />
|
||||
<input type="submit" value="download results in json" />
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
<form method="post" action="/" id="search_form">
|
||||
<div id="search_wrapper">
|
||||
<div id="search_wrapper">
|
||||
<input type="text" id="q" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/>
|
||||
<input type="submit" value="" id="search_submit" />
|
||||
</div>
|
||||
<div>
|
||||
{% include 'categories.html' %}
|
||||
</div>
|
||||
</div>
|
||||
{% include 'categories.html' %}
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue