Change search-field to use type="search"

The search-field will now show with a little magnifying-glass on Webkit
based browsers.
type="search" is part of HTML5.
This commit is contained in:
Henrik Hansen
2010-08-23 16:59:47 +02:00
parent 4905ce99da
commit d1003f5331
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<div class="main">
<div class="actions">
<form action="/search" method="get">
<a href="/">Home</a> | <a href="/edit/{{name}}">Edit</a> | <input type="text" name="q" size="10" /> <input type="submit" value="search" />
<a href="/">Home</a> | <a href="/edit/{{name}}">Edit</a> | <input type="search" name="q" size="10" /> <input type="submit" value="search" />
</form>
</div>
<h1>{{title}}</h1>
@@ -2,7 +2,7 @@
<div class="main">
<div class="actions">
<form action="/search" method="get">
<a href="/">Home</a> | <input type="text" name="q" size="10" /> <input type="submit" value="search" />
<a href="/">Home</a> | <input type="search" name="q" size="10" /> <input type="submit" value="search" />
</form>
</div>
<h1>Search for “{{search_string}}”</h1>