forked from jupyter-server/jupyter_server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jupyter-server#220 from Mistobaan/master
add basic login.html template
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends "page.html" %} | ||
|
||
{% block site %} | ||
{% if message %} | ||
{% for key in message %} | ||
<div> | ||
{{message[key]}} | ||
</div> | ||
{% endfor %} | ||
{% endif %} | ||
<form action="{{base_url}}login?next={{next}}" method="post"> | ||
{{ xsrf_form_html() | safe }} | ||
<label for="password_input"><strong>{% trans %}Password:{% endtrans %}</strong></label> | ||
<input type="password" name="password" id="password_input"> | ||
<button type="submit" id="login_submit">{% trans %}Log in{% endtrans %}</button> | ||
</form> | ||
{% endblock site %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends "page.html" %} | ||
|
||
{% block site %} | ||
{% if message %} | ||
{% for key in message %} | ||
<div> | ||
{{message[key]}} | ||
</div> | ||
{% endfor %} | ||
{% endif %} | ||
|
||
{% trans %}Proceed to the <a href="{{base_url}}login">login page{% endtrans %}</a>. | ||
{% endblock %} |