diff options
author | 2018-05-06 18:21:34 +0100 | |
---|---|---|
committer | 2018-05-06 18:21:34 +0100 | |
commit | efb902f3f293db4aac6e57b9f3a84143d84a90e9 (patch) | |
tree | 69fd91e690f1b8e150b839927c8bb312ebf81abc /templates/wiki/base.html | |
parent | I linted that, I swear (diff) |
[Wiki] Misc improvements, plus a beta search feature
Diffstat (limited to 'templates/wiki/base.html')
-rw-r--r-- | templates/wiki/base.html | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/templates/wiki/base.html b/templates/wiki/base.html index a71f09e6..9b31d83b 100644 --- a/templates/wiki/base.html +++ b/templates/wiki/base.html @@ -154,12 +154,31 @@ {% endif %} <li class="uk-nav-divider"></li> +{# <li><a href="{{ url_for("wiki.search") }}">#} +{# <i class="uk-icon fas fa-fw fa-search"></i> Search#} +{# </a></li>#} <li><a href="{{ url_for("wiki.special") }}"> <i class="uk-icon fas fa-fw fa-ellipsis-h"></i> Special Pages </a></li> <li><a href="{{ url_for("wiki.page", page="help") }}"> - <i class="fas fa-fw fa-question-circle"></i> Help + <i class="uk-icon fas fa-fw fa-question-circle"></i> Help </a></li> + + <li> + <form action="{{ url_for("wiki.search") }}" method="post"> + {% if query is undefined %} + <input type="text" class="uk-input" placeholder="Search (BETA)" id="query" name="query" style="padding-right: 0; margin-top: 5px; border-left: 0; border-right: 0;" required> + {% else %} + <input type="text" class="uk-input" placeholder="Search (BETA)" id="query" name="query" value="{{ query }}" style="padding-right: 0; margin-top: 5px; border-left: 0; border-right: 0;" required> + {% endif %} + <br /> + <button class="uk-button uk-button-darkish uk-button-small" type="submit" id="search" title="Search" style="width: 100%; border: 0;"> + <i class="uk-icon fas fa-fw fa-search"></i> + </button> + + <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/> + </form> + </li> </ul> </div> <div class="uk-section" style="flex-grow: 1; margin: 0 1rem 1rem;"> |