]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - templates/modules/planet/search-box.html
planet: Add proper full-text search.
[people/shoehn/ipfire.org.git] / templates / modules / planet / search-box.html
1 <div class="row">
2 <div class="col-lg-6 col-md-6 col-lg-offset-3 ac">
3 <form class="form-inline" action="/search" method="GET">
4 <div class="form-group">
5 <label class="sr-only" for="searchBox">{{ _("Search") }}</label>
6 <input type="text" class="form-control" name="q" id="searchBox"
7 placeholder="{{ _("Search") }}" autocomplete="off" {% if query %}value="{{ query }}"{% end %}>
8 <button type="submit" class="btn btn-default">
9 <i class="glyphicon glyphicon-search"></i>
10 </button>
11
12 <div class="btn-group">
13 <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">
14 {{ _("All posts from") }}
15 <span class="caret"></span>
16 </a>
17 <ul class="dropdown-menu">
18 {% for y in years %}
19 <li><a href="/year/{{ y }}">{{ y }}</a></li>
20 {% end %}
21 </ul>
22 </div>
23 </div>
24 </form>
25 </div>
26 </div>