Show More
@@ -1,8 +1,17 b'' | |||
|
1 | 1 | {% extends layout.html %} |
|
2 | 2 | |
|
3 | 3 | {% block content_panel %} |
|
4 | 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 | 6 | <input type="submit" value="Sign in" id="signin"> |
|
7 | 7 | </form> |
|
8 | 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 | 1 | {% extends layout.html %} |
|
2 | 2 | |
|
3 | 3 | {% block content_panel %} |
|
4 | 4 | {% if current_user and current_user != 'anonymous' %} |
|
5 | 5 | Proceed to the <a href="/">front page</a>. |
|
6 | 6 | {% else %} |
|
7 | 7 | Proceed to the <a href="/login">login page</a>. |
|
8 | 8 | {% end %} |
|
9 | 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