Added entry for password fields
authorFlorian Fainelli <florian@openwrt.org>
Sat, 14 Jan 2006 15:07:10 +0000 (15:07 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 14 Jan 2006 15:07:10 +0000 (15:07 +0000)
SVN-Revision: 2976

openwrt/package/webif/files/usr/lib/webif/form.awk

index 30c1ec52773953e50f0555df32ff4c71d92d4db3..7f43d4f87279dea99723ca1d3527e11ea517ed04 100644 (file)
@@ -73,6 +73,7 @@ $1 ~ /^select/ {
        print "<tr><td width=\"100%\" colspan="2"><input type=\"text\" name=\"" $2 "add\" value=\"" $5 "\" /><input type=\"submit\" name=\"" $2 "submit\" value=\"Add\" /></td></tr>"
 }
 $1 ~ /^text/ { print "<input id=\"" $2 "\" type=\"text\" name=\"" $2 "\" value=\"" $3 "\" />" $4 }
+$1 ~ /^password/ { print "<input id=\"" $2 "\" type=\"password\" name=\"" $2 "\" value=\"" $3 "\" />" $4 }
 $1 ~ /^submit/ { print "<input type=\"submit\" name=\"" $2 "\" value=\"" $3 "\" />" }
 $1 ~ /^helpitem/ { form_help = form_help "<dt>" $2 ":</dt>" }
 $1 ~ /^helptext/ { form_help = form_help "<dd>" $2 "</dd>" }