##// END OF EJS Templates
On the login page, focus on the password field.
Stefan van der Walt -
Show More
@@ -1,8 +1,17 b''
1 {% extends layout.html %}
1 {% extends layout.html %}
2
2
3 {% block content_panel %}
3 {% block content_panel %}
4 <form action="/login?next={{url_escape(next)}}" method="post">
4 <form action="/login?next={{url_escape(next)}}" method="post">
5 Password: <input type="password" name="password">
5 Password: <input type="password" name="password" id="focus">
6 <input type="submit" value="Sign in" id="signin">
6 <input type="submit" value="Sign in" id="signin">
7 </form>
7 </form>
8 {% end %}
8 {% end %}
9
10 {% block script %}
11 <script type="text/javascript">
12 $(document).ready(function() {
13 IPython.login_widget = new IPython.LoginWidget('span#login_widget');
14 $('#focus').focus();
15 });
16 </script>
17 {% end %}
@@ -1,9 +1,17 b''
1 {% extends layout.html %}
1 {% extends layout.html %}
2
2
3 {% block content_panel %}
3 {% block content_panel %}
4 {% if current_user and current_user != 'anonymous' %}
4 {% if current_user and current_user != 'anonymous' %}
5 Proceed to the <a href="/">front page</a>.
5 Proceed to the <a href="/">front page</a>.
6 {% else %}
6 {% else %}
7 Proceed to the <a href="/login">login page</a>.
7 Proceed to the <a href="/login">login page</a>.
8 {% end %}
8 {% end %}
9 {% end %}
9 {% end %}
10
11 {% block script %}
12 <script type="text/javascript">
13 $(document).ready(function() {
14 IPython.login_widget = new IPython.LoginWidget('span#login_widget');
15 });
16 </script>
17 {% end %}
General Comments 0
You need to be logged in to leave comments. Login now