Commit 2203e950 authored by JC Brand's avatar JC Brand

Set `autofocus` on inputs

parent 937b3107
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
{[ if (authentication == LOGIN || authentication == EXTERNAL) { ]} {[ if (authentication == LOGIN || authentication == EXTERNAL) { ]}
<label>{{{__("Jabber ID:")}}}</label> <label>{{{__("Jabber ID:")}}}</label>
<p class="form-help fade-in invalid-jid-msg error hidden">{{{_('Please enter a valid XMPP address')}}}</p> <p class="form-help fade-in invalid-jid-msg error hidden">{{{_('Please enter a valid XMPP address')}}}</p>
<input type="text" name="jid" placeholder="{{{placeholder_username}}}"> <input autofocus type="text" name="jid" placeholder="{{{placeholder_username}}}">
{[ if (authentication !== EXTERNAL) { ]} {[ if (authentication !== EXTERNAL) { ]}
<label>{{{__("Password:")}}}</label> <label>{{{__("Password:")}}}</label>
<input type="password" name="password" placeholder="{{{__('password')}}}"> <input type="password" name="password" placeholder="{{{__('password')}}}">
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
{{{default_domain}}} {{{default_domain}}}
{[ } ]} {[ } ]}
{[ if (!default_domain) { ]} {[ if (!default_domain) { ]}
<input type="text" name="domain" placeholder="{{{domain_placeholder}}}"> <input autofocus type="text" name="domain" placeholder="{{{domain_placeholder}}}">
<input class="pure-button button-primary" type="submit" value="{{{label_register}}}"> <input class="pure-button button-primary" type="submit" value="{{{label_register}}}">
{[ } ]} {[ } ]}
</form> </form>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment