summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-11-12 11:38:28 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-11-13 17:12:28 +0100
commitdfbbc3b4714f3a79553343fe28e10e41db7d0f91 (patch)
tree18d7e9768a567bf9b56ef452f191ee162758598e /searx/templates
parentcf15652e4ba1f73cc2a197c9524473daf3417c11 (diff)
downloadsearxng-dfbbc3b4714f3a79553343fe28e10e41db7d0f91.tar.gz
searxng-dfbbc3b4714f3a79553343fe28e10e41db7d0f91.zip
[fix] simple theme: /preferences: add tokens field
include changes to display input text field in the preferences
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/oscar/preferences.html2
-rw-r--r--searx/templates/simple/preferences.html7
2 files changed, 8 insertions, 1 deletions
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html
index 944a390ef..5c187140f 100644
--- a/searx/templates/oscar/preferences.html
+++ b/searx/templates/oscar/preferences.html
@@ -183,7 +183,7 @@
{% set label = _('Engine tokens') %}
{% set info = _('Access tokens for private engines') %}
{{ preferences_item_header(info, label, rtl, 'tokens') }}
- <input class="form-control" id="tokens" name="tokens" value='{{ preferences.tokens.get_value() }}'/>
+ <input class="form-control" id="tokens" name="tokens" value='{{ preferences.tokens.get_value() }}' autocomplete="off" spellcheck="false" autocorrect="off" />
{{ preferences_item_footer(info, label, rtl) }}
</div>
</fieldset>
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html
index 267dd6e14..ec3bd8ed2 100644
--- a/searx/templates/simple/preferences.html
+++ b/searx/templates/simple/preferences.html
@@ -169,6 +169,13 @@
<div class="description"><!-- {{ _('Redirect to open-access versions of publications when available (plugin required)') }} --></div>
</fieldset>
{% endif %}
+ <fieldset>
+ <legend>{{ _('Engine tokens') }}</legend>
+ <p class="value">
+ <input name="tokens" type="text" autocomplete="off" spellcheck="false" autocorrect="off" value='{{ preferences.tokens.get_value() }}'/>
+ </p>
+ <p class="description">{{ _('Access tokens for private engines') }}</p>
+ </fieldset>
{{ tab_footer() }}
{{ tab_header('maintab', 'ui', _('User interface')) }}