mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[fix] simple theme: /preferences: add tokens field
include changes to display input text field in the preferences
This commit is contained in:
parent
cf15652e4b
commit
dfbbc3b471
4 changed files with 42 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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')) }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue