Request focus on first input on login page

This commit is contained in:
Pierre HUBERT 2022-04-20 09:16:21 +02:00
parent 5e9c410e98
commit 958f6eaabf
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
<div>
<div class="form-floating">
<input name="login" type="text" required class="form-control" id="floatingName" placeholder="unsername"
value="{{ login }}">
value="{{ login }}" autofocus>
<label for="floatingName">Email address or username</label>
</div>

View File

@ -8,7 +8,7 @@
<div class="form-group">
<label for="code" class="form-label mt-4">Generated code</label>
<input type="text" name="code" minlength="6" maxlength="6" class="form-control" id="code"
placeholder="XXXXXX">
placeholder="XXXXXX" autofocus>
</div>
<button class="w-100 btn btn-primary" type="submit" style="margin: 20px 0px;">Login</button>

View File

@ -8,7 +8,7 @@
<div class="form-floating">
<input name="password" type="password" required class="form-control" id="pass1"
placeholder="Password"/>
placeholder="Password" autofocus/>
<label for="pass1">New password</label>
</div>