diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-12 17:52:50 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-12 17:52:50 +0100 |
commit | 5bd6dd917ca39331cf6e2cc99e1ad51cd3935b42 (patch) | |
tree | 1238f0d23cc6545207ac58de917573da617432fd /newspipe/templates | |
parent | Improved login form. (diff) | |
download | newspipe-5bd6dd917ca39331cf6e2cc99e1ad51cd3935b42.tar.gz newspipe-5bd6dd917ca39331cf6e2cc99e1ad51cd3935b42.tar.bz2 newspipe-5bd6dd917ca39331cf6e2cc99e1ad51cd3935b42.zip |
Improved the search form.
Diffstat (limited to 'newspipe/templates')
-rw-r--r-- | newspipe/templates/layout.html | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/newspipe/templates/layout.html b/newspipe/templates/layout.html index 459727de..45ad7fdf 100644 --- a/newspipe/templates/layout.html +++ b/newspipe/templates/layout.html @@ -72,7 +72,7 @@ </div> <button type="submit" class="btn btn-primary"><i class="fa fa-plus" aria-hidden="true"></i></button> </div> - </form> + </form> </div> </li> @@ -85,6 +85,26 @@ </li> <li class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownSearch" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-search" aria-hidden="true"></i></i> {{ _('Search') }}</a> + <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownSearch"> + <form class="navbar-form navbar-left px-4 py-3" action="{{ url_for('home') }}" method="GET"> + <div class="form-group"> + <input class="form-control" name="query" type="text" placeholder="{{_('Query')}}" required="required"/> + </div> + <div class="form-group form-check"> + <input type="checkbox" class="form-check-input" id="checkTitle" name="search_title" checked> + <label class="form-check-label" for="checkTitle">Search in title</label> + </div> + <div class="form-group form-check"> + <input type="checkbox" class="form-check-input" id="checkContent" name="search_content"> + <label class="form-check-label" for="checkContent">Search in content</label> + </div> + <button type="submit" class="btn btn-primary">OK</button> + </form> + </div> + </li> + + <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownUser" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-user" aria-hidden="true"></i></a> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownUser"> <a class="dropdown-item" href="{{ url_for('user.profile') }}">{{ _('Profile') }}</a> |