diff --git a/share/jupyterhub/templates/login.html b/share/jupyterhub/templates/login.html index 611036f9..96d613a3 100644 --- a/share/jupyterhub/templates/login.html +++ b/share/jupyterhub/templates/login.html @@ -35,82 +35,86 @@ {% if login_error %}

{{ login_error }}

{% endif %} {# Allow full override of the "label" and "input" elements of the username and password fields. #} - {% block username_password_input_override %} + {% block username_input %} - - - {% endblock username_password_input_override %} - {% if authenticator.request_otp %} - - - {% endif %} -
- - -
- {% block login_terms %} - {% if login_term_url %} -
- - {% block login_terms_text %} - {# allow overriding the text #} - By logging into the platform you accept the terms and conditions. - {% endblock login_terms_text %} -
- {% endif %} - {% endblock login_terms %} + {% block username_input_attrs %} + type="text" + autocapitalize="off" + autocorrect="off" + autocomplete="username" + class="form-control" + name="username" + val="{{ username }}" + autofocus="autofocus" + {% endblock username_input_attrs %} /> + {% endblock username_input %} + {% block password_input %} + + + {% endblock password_input %} + {% if authenticator.request_otp %} + {% block otp_input %} + + + {% endblock otp_input %} + {% endif %} +
+ + - - {% endif %} - {% endblock login_container %} -
- {% endblock login %} - {% endblock main %} - {% block script %} - {{ super() }} - - {% endblock script %} + + {% block login_terms %} + {% if login_term_url %} +
+ + {% block login_terms_text %} + {# allow overriding the text #} + By logging into the platform you accept the terms and conditions. + {% endblock login_terms_text %} +
+ {% endif %} + {% endblock login_terms %} + + + {% endif %} + {% endblock login_container %} + + {% endblock login %} +{% endblock main %} +{% block script %} + {{ super() }} + +{% endblock script %}