Skip to content
Snippets Groups Projects
Commit a8d3ac63 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Restore autofocus functionality from old UI, but use HTML5 instead of JS.

parent b2f22e7c
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,8 @@
<div class="pure-control-group">
<label for="username">{{ 'Username'|trans }}</label>
<input id="username" {{ forceUsername ? 'disabled="disabled"' }} placeholder="{{ username }}" type="text" name="username" class="edge"
{%- if not forceUsername %} tabindex="1" value="{{ username }}" {% endif %}>
{%- if not forceUsername %} tabindex="1" value="{{ username }}" {% endif %}
{%- if not forceUsername and not username %} autofocus {% endif %} />
{% if rememberUsernameEnabled and not forceUsername -%}
</div>
<div class="pure-controls pure-form-message">
......@@ -53,7 +54,8 @@
<div class="pure-control-group">
<label for="password">{{ 'Password'|trans}}</label>
<input id="password" type="password" tabindex="2" name="password" class="edge"/>
<input id="password" type="password" tabindex="2" name="password" class="edge"
{%- if forceUsername or username %} autofocus {% endif %} />
{% if rememberMeEnabled -%}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment