feat: Implement search result view & enable search

Implements a very simple and currently kinda broken-looking search
result view.
This commit is contained in:
Vincent Ambo 2018-04-14 22:06:30 +02:00 committed by Vincent Ambo
parent dae97fdaf5
commit 4132869277
6 changed files with 90 additions and 4 deletions

View file

@ -14,9 +14,9 @@
<a class="navbar-brand" href="/">
<h2>Converse</h2>
</a>
<form class="form-inline">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" disabled>
<button class="btn btn-outline-success my-2 my-sm-0 mr-1" type="submit" disabled>Search</button>
<form class="form-inline" method="post" action="/search">
<input class="form-control mr-sm-2" type="search" placeholder="Search" name="query" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0 mr-1" type="submit">Search</button>
<a class="btn btn-outline-secondary my-2" href="/thread/new">New thread</a>
</form>
</nav>