Commit 0c674889 authored by SpinShare's avatar SpinShare

added new searchbar

parent 5054f4f3
...@@ -4,40 +4,15 @@ ...@@ -4,40 +4,15 @@
{% block content %} {% block content %}
<section class="section-search"> <section class="section-search">
<div class="search-bar"> <header>
<form action="" method="get"> <div class="title">Search</div>
<div class="show-all"> <div class="actions">
<a href="{{ path('search.index', {showAll: true}) }}" class="button button-label">Show all</a> <form action="" method="GET">
</div>
<div class="multi-select multi-select-difficulties">
{#
<div class="label"><div onclick="ToggleDifficultiesBox()" class="button button-label">Difficulties &nbsp; <i class="mdi mdi-chevron-down"></i></div></div>
<div class="box">
<label for="easyDifficulty" class="item">
<input type="checkbox" name="easyDifficulty" id="easyDifficulty" checked />
<span>Easy</span>
</label>
<label for="normalDifficulty" class="item">
<input type="checkbox" name="normalDifficulty" id="normalDifficulty" checked />
<span>Normal</span>
</label>
<label for="hardDifficulty" class="item">
<input type="checkbox" name="hardDifficulty" id="hardDifficulty" checked />
<span>Hard</span>
</label>
<label for="extremeDifficulty" class="item">
<input type="checkbox" name="extremeDifficulty" id="extremeDifficulty" checked />
<span>Extreme</span>
</label>
<label for="XDDifficulty" class="item">
<input type="checkbox" name="XDDifficulty" id="XDDifficulty" checked />
<span>XD</span>
</label>
</div> #}
</div>
<input name="q" type="search" placeholder="Search for songs, tags & profiles..." value="{{ searchQuery|default('') }}" /> <input name="q" type="search" placeholder="Search for songs, tags & profiles..." value="{{ searchQuery|default('') }}" />
</form> </form>
<a href="{{ path('search.index', {showAll: true}) }}" class="button">Show all</a>
</div> </div>
</header>
{% if results is defined %} {% if results is defined %}
<div class="search-results"> <div class="search-results">
{% if results.users|length == 0 and results.songs|length == 0 %} {% if results.users|length == 0 and results.songs|length == 0 %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment