Added basic user authentication.
This commit is contained in:
42
viewer/templates/registration/login.html
Normal file
42
viewer/templates/registration/login.html
Normal file
@@ -0,0 +1,42 @@
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, height=device-height" />
|
||||
<title>
|
||||
NibasaViewer login
|
||||
</title>
|
||||
<link href="{% static 'css/styles.css' %}" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body class="background">
|
||||
<div class="fc mauto pd">
|
||||
<form method="post" action="{% url 'login' %}" class="fc">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
{{ form.username.label_tag }}
|
||||
</td>
|
||||
<td>
|
||||
{{ form.username }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{{ form.password.label_tag }}
|
||||
</td>
|
||||
<td>
|
||||
{{ form.password }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" value="login" class="float-right">
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user