Console: Add "required" to input fields where necessary

This commit is contained in:
zzz
2023-11-16 14:32:43 -05:00
parent 3facdaabc7
commit e7536715d4
11 changed files with 32 additions and 32 deletions

View File

@@ -255,9 +255,9 @@ public class ConfigUIHelper extends HelperBase {
}
buf.append("<tr><td id=\"pw_adduser\" align=\"left\" colspan=\"3\">" +
"<b>").append(_t("Username")).append(":</b> " +
"<input type=\"text\" name=\"name\">" +
"<input type=\"text\" name=\"name\" required>" +
"<b>").append(_t("Password")).append(":</b> " +
"<input type=\"password\" size=\"40\" name=\"nofilter_pw\">" +
"<input type=\"password\" size=\"40\" name=\"nofilter_pw\" required>" +
"</td></tr>" +
"</table>\n");
return buf.toString();

View File

@@ -402,8 +402,8 @@ public class HomeHelper extends HelperBase {
}
buf.append("<tr id=\"addnew\"><td colspan=\"2\" align=\"center\"><b>")
.append(_t("Add")).append(":</b>" +
"</td><td align=\"left\"><input type=\"text\" name=\"nofilter_name\"></td>" +
"<td align=\"left\"><input type=\"text\" size=\"40\" name=\"nofilter_url\"></td></tr>");
"</td><td align=\"left\"><input type=\"text\" name=\"nofilter_name\" required></td>" +
"<td align=\"left\"><input type=\"text\" size=\"40\" name=\"nofilter_url\" required></td></tr>");
buf.append("</table>\n");
return buf.toString();
}