luci-base: mark password template dummy field as hidden

Mark the dummy input field as aria-hidden, should fix #2063.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 98d4eb1695)
This commit is contained in:
Jo-Philipp Wich 2018-08-16 09:36:37 +02:00
parent a49e4e4d56
commit 199eac4166

View file

@ -1,6 +1,6 @@
<%+cbi/valueheader%> <%+cbi/valueheader%>
<%- if self.password then -%> <%- if self.password then -%>
<input type="password" style="position:absolute; left:-1000px"<%= <input type="password" style="position:absolute; left:-1000px" aria-hidden="true"<%=
attr("name", "password." .. cbid) attr("name", "password." .. cbid)
%> /> %> />
<%- end -%> <%- end -%>