Show More
@@ -2,7 +2,16 b'' | |||||
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 %} |
@@ -7,3 +7,11 b'' | |||||
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