web commit by HenrikBrixAndersen: Add example patch
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 25 Aug 2007 10:02:06 +0000 (10:02 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 25 Aug 2007 10:02:06 +0000 (10:02 +0000)
doc/todo/Add_label_to_search_form_input_field.mdwn

index dbe024a866fb21e688f3b91b8e01c51a6fc5ef62..86a32fb0767539de3d6f97660bd29a351f9fd9f3 100644 (file)
@@ -22,4 +22,17 @@ The patch below adds a label for the field to improve usability:
 >> <http://universalusability.com/access_by_design/forms/auto.html> for
 >> an explanation why. --[[HenrikBrixAndersen]]
 
+>>> If you really want to do this, this is one way:
+
+    --- searchform.tmpl.orig        Sat Aug 25 11:54:28 2007
+    +++ searchform.tmpl     Sat Aug 25 11:56:19 2007
+    @@ -1,6 +1,6 @@
+     <form method="get" action="<TMPL_VAR SEARCHACTION>" id="searchform">
+     <div>
+    -<input type="text" name="phrase" value="" size="16" />
+    +<input type="text" name="phrase" value="Search" size="16" onfocus="this.value=''" />
+     <input type="hidden" name="enc" value="UTF-8" />
+     <input type="hidden" name="do" value="hyperestraier" />
+     </div>
+
 [[wishlist]]