1
0
Fork 0

Search everywhere

This commit is contained in:
radex 2020-05-11 20:12:15 +02:00 committed by Piotr Dobrowolski
parent 5a70e382b8
commit 60601b270e
4 changed files with 17 additions and 14 deletions

View File

@ -1,16 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div class="row"> {% include "widgets/bigsearch.html" %}
<div class="col-md-8 col-md-offset-2">
<form action="/search">
<div class="input-group input-group-lg">
<input type="text" class="form-control" name="q" placeholder="search term">
<span class="input-group-btn">
<button class="btn btn-primary" type="submit"><i class="glyphicon glyphicon-search"></i></button>
</span>
</div>
</form>
</div>
</div>
{% endblock %} {% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
{% include "widgets/bigsearch.html" %}
<br />
{% include "widgets/itemlist.html" with list=results show_paths=True show_placeholder=True %} {% include "widgets/itemlist.html" with list=results show_paths=True show_placeholder=True %}
{% endblock %} {% endblock %}

View File

@ -25,14 +25,14 @@
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="/item/">Things</a></li> <li><a href="/item/">All things</a></li>
<li><a href="/admin/">Add thing</a></li> <li><a href="/admin/">Add thing</a></li>
<li><a href="https://wiki.hackerspace.pl/members:services:inventory">How to use</a></li> <li><a href="https://wiki.hackerspace.pl/members:services:inventory">How to use</a></li>
</ul> </ul>
<form class="navbar-form navbar-right" role="search" action="/search"> <form class="navbar-form navbar-right" role="search" action="/search">
<div class="form-group"> <div class="form-group">
<div class="input-group"> <div class="input-group">
<input type="text" class="form-control" placeholder="Search" name="q" autofocus> <input type="text" class="form-control" placeholder="Search Hackerspace" name="q" autofocus>
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-primary" type="submit"><i class="glyphicon glyphicon-search"></i></button> <button class="btn btn-primary" type="submit"><i class="glyphicon glyphicon-search"></i></button>
</span> </span>

View File

@ -0,0 +1,12 @@
<div class="row">
<div class="col-md-8 col-md-offset-2">
<form action="/search">
<div class="input-group input-group-lg">
<input type="text" class="form-control" name="q" placeholder="Whatcha wanna find today?">
<span class="input-group-btn">
<button class="btn btn-primary" type="submit"><i class="glyphicon glyphicon-search"></i></button>
</span>
</div>
</form>
</div>
</div>