Skip to content

Commit 6ca6ee8

Browse files
committed
Merge pull request #142 from mbrubeck/search-form
Wrap the search field in a <form> element
2 parents 2f93fdb + 81e72b5 commit 6ca6ee8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/styles/app.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ body {
119119
@media only screen and (max-width: 820px) {
120120
.menu { display: block; }
121121
.nav { display: none; }
122-
div.search { display: none; }
122+
form.search { display: none; }
123123
}
124124
}
125125

app/templates/application.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
<h1>CARGO</h2>
1212
{{/link-to}}
1313

14-
<div class='search'>
15-
{{input type="text" class="search"
14+
<form class='search' action='/search' {{ action "" on="submit" }} >
15+
{{input type="text" class="search" name="q"
1616
placeholder="Search"
1717
value=search
1818
action="search"}}
19-
</div>
19+
</form>
2020

2121
<div class='nav'>
2222
{{#link-to "crates" (query-params letter="null" page=1)}}

0 commit comments

Comments
 (0)