1
0
Fork 0
mirror of https://github.com/airsonic/airsonic.git synced 2025-10-03 09:49:17 +02:00

Add the required keyword to some forms

This should improve a bit the accessibility.
This commit is contained in:
jvoisin 2019-05-17 20:29:16 +00:00 committed by GitHub
parent 6d294a770b
commit ce7671bf5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -21,9 +21,9 @@
<div class="loginmessagetop"><sub:wiki text="${model.loginMessage}"/></div> <div class="loginmessagetop"><sub:wiki text="${model.loginMessage}"/></div>
<input type="text" autofocus id="j_username" name="j_username" tabindex="1" placeholder="<fmt:message key="login.username"/>"> <input required type="text" autofocus id="j_username" name="j_username" tabindex="1" placeholder="<fmt:message key="login.username"/>">
<input type="password" autocomplete="off" name="j_password" tabindex="2" placeholder="<fmt:message key="login.password"/>"> <input required type="password" autocomplete="off" name="j_password" tabindex="2" placeholder="<fmt:message key="login.password"/>">
<input name="submit" type="submit" value="<fmt:message key="login.login"/>" tabindex="4"></td> <input name="submit" type="submit" value="<fmt:message key="login.login"/>" tabindex="4"></td>

View file

@ -125,7 +125,7 @@
<td style="padding-left:1em"> <td style="padding-left:1em">
<form method="post" action="search.view" target="main" name="searchForm"> <form method="post" action="search.view" target="main" name="searchForm">
<td><input type="text" name="query" id="query" size="28" placeholder="${search}" onclick="select();" <td><input required type="text" name="query" id="query" size="28" placeholder="${search}" onclick="select();"
onkeyup="triggerInstantSearch();"></td> onkeyup="triggerInstantSearch();"></td>
<td><a href="javascript:document.searchForm.submit()"><img src="<spring:theme code="searchImage"/>" alt="${search}" title="${search}"></a></td> <td><a href="javascript:document.searchForm.submit()"><img src="<spring:theme code="searchImage"/>" alt="${search}" title="${search}"></a></td>
</form> </form>