aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2022-04-26 19:50:33 +0200
committerMiquel Lionel <lionelmiquel@sfr.fr>2022-04-26 19:50:33 +0200
commitc39e2fb164b625c83d041ef41f9c3db97b101aaf (patch)
tree959b5ea9babf70ea7291cdbd079044191a4318a8
parenta7ff1f07ba1e18beae5c3c539141b682d6eaacdc (diff)
downloadgpigeon-c39e2fb164b625c83d041ef41f9c3db97b101aaf.tar.gz
gpigeon-c39e2fb164b625c83d041ef41f9c3db97b101aaf.zip
Add autofocus on login and link generation fields
-rwxr-xr-xgpigeon-template.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpigeon-template.cgi b/gpigeon-template.cgi
index 33f8898..9b190ee 100755
--- a/gpigeon-template.cgi
+++ b/gpigeon-template.cgi
@@ -505,7 +505,7 @@ if($loginOK){
s/{mailfield_goes_here}/{<input type="text" name="mailaddr" value="$inviteAsker" disabled>}/g;
}
- s/{mailfield_goes_here}/{<input type="text" name="mailaddr" placeholder="Your mail address used for GPG" required>}/g;
+ s/{mailfield_goes_here}/{<input type="text" name="mailaddr" placeholder="Your mail address used for GPG" required autofocus>}/g;
if (defined $cgiQueryGet->param('mailnotif') ){
s/EMAIL_NOTIF = .*/EMAIL_NOTIF = q{1};/g
}
@@ -597,7 +597,7 @@ if($loginOK){
$adminPanelField
<label for="opt-mail">
$textStrings{optmail}
- <input tabindex="1" id="mailfield" type="text" name="opt-mail">
+ <input tabindex="1" id="mailfield" type="text" name="opt-mail" autofocus>
</label>
<input name="geninv" type="submit" id="geninvbtn" value="$textStrings{create_invite_btn}">
<label id="mailnotif" for="mailnotif">
@@ -667,7 +667,7 @@ if($loginOK){
<form method="POST">
$hiddenLoginField
Mail:<br>
- <input id="mailfield" tabindex="1" placeholder="Link user mail address" type="text" name="mail">
+ <input id="mailfield" tabindex="1" placeholder="Link user mail address" type="text" name="mail" autofocus>
<input id="genlinkbtn" tabindex="2" type="submit" value="$textStrings{create_link_btn}">
<label id="notiflinkbymail" for="notiflinkbymail">
$textStrings{checkbox_notiflinkbymail}