Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit bc20672

Browse files
authored
UX - focus username field on page load (#904)
<img width="795" alt="Screenshot 2024-10-22 at 15 41 54" src="https://github.com/user-attachments/assets/7ca6d337-82e2-4666-83a7-ef7c691b1d53">
1 parent f417ef3 commit bc20672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quesma/quesma/ui/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func (qmc *QuesmaManagementConsole) generateLoginForm() []byte {
2222
buffer.Html(`<p style="color: #ccc;">Log in to Quesma admin console using your Elasticsearch credentials</p>`)
2323
buffer.Html(`<form action="/login-with-elasticsearch" method="post">`)
2424
buffer.Html(`<label for="username">Username:</label>`)
25-
buffer.Html(`<input type="text" id="username" name="username" placeholder="Enter your Elasticsearch username">`)
25+
buffer.Html(`<input type="text" id="username" name="username" placeholder="Enter your Elasticsearch username" autofocus>`)
2626
buffer.Html(`<label for="password">Password:</label>`)
2727
buffer.Html(`<input type="password" id="password" name="password" placeholder="Enter your Elasticsearch password">`)
2828
buffer.Html(`<input type="submit" value="Login">`)

0 commit comments

Comments
 (0)