Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: includes/searchform.tmpl

Issue 29485575: Issue 5385 - Create Site Header Component for Help Center (Closed)
Patch Set: Fix svgs, Implement search, Show searchbar for no-js Created July 17, 2017, 9:24 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: includes/searchform.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/includes/searchform.tmpl
@@ -0,0 +1,8 @@
+<form id="searchform" action="https://duckduckgo.com" method="GET">
+ <label for="search" class="sr-only">{{ "Search Adblock Plus Help" | translate("searchform-label", "Label") }}</label>
+ <input id="search" name="q" type="search" placeholder="{{ "Search Adblock Plus Help" | translate("searchform-label", "Label") }}">
+ <input type="hidden" name="sites" value="adblockplus.org">
+ <button type="submit">
+ <img src="/img/png/searchIcon.png" srcset="/img/png/searchIcon.png, /img/svg/searchIcon.svg 2x" alt="{{ "Search" | translate("search-icon-alt", "Image alt text") }}">
juliandoucette 2017/07/19 18:03:33 NIT: I wonder if "Submit (search|query)" makes mor
ire 2017/07/21 10:23:26 I think the submit buttons on most search forms ju
juliandoucette 2017/07/24 21:08:07 Acknowledged.
+ </button>
+</form>

Powered by Google App Engine
This is Rietveld