Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
B
Backend Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SpinShare
Backend Server
Commits
0c674889
Commit
0c674889
authored
Jun 17, 2020
by
SpinShare
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added new searchbar
parent
5054f4f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
34 deletions
+9
-34
templates/search/index.html.twig
templates/search/index.html.twig
+9
-34
No files found.
templates/search/index.html.twig
View file @
0c674889
...
...
@@ -4,40 +4,15 @@
{%
block
content
%}
<section
class=
"section-search"
>
<div
class=
"search-bar"
>
<form
action=
""
method=
"get"
>
<div
class=
"show-all"
>
<a
href=
"
{{
path
(
'search.index'
,
{
showAll
:
true
}
)
}}
"
class=
"button button-label"
>
Show all
</a>
</div>
<div
class=
"multi-select multi-select-difficulties"
>
{#
<div class="label"><div onclick="ToggleDifficultiesBox()" class="button button-label">Difficulties <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
(
''
)
}}
"
/>
</form>
</div>
<header>
<div
class=
"title"
>
Search
</div>
<div
class=
"actions"
>
<form
action=
""
method=
"GET"
>
<input
name=
"q"
type=
"search"
placeholder=
"Search for songs, tags & profiles..."
value=
"
{{
searchQuery
|
default
(
''
)
}}
"
/>
</form>
<a
href=
"
{{
path
(
'search.index'
,
{
showAll
:
true
}
)
}}
"
class=
"button"
>
Show all
</a>
</div>
</header>
{%
if
results
is
defined
%}
<div
class=
"search-results"
>
{%
if
results.users
|
length
==
0
and
results.songs
|
length
==
0
%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment