blob: 319897c0156b1dcc0c371cdfca30270df691b8bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{% load static %}
<!DOCTYPE html>
<html lang="en">
{% include 'header.html' %}
<body data-spy="scroll" data-target="#site-nav">
<div class="se-pre-con"></div>
{% include 'navbar.html' %}
{% block content %}
<section id="login" class="section login">
<div class="container">
<div class="row">
{% if user.is_authenticated %}
Hi {{ user.username }}!
{% else %}
<p>You are not logged in</p>
<a href="{% url 'auth:login' %}">login</a>
{% endif %}
<h2>Login</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Login</button>
</form>
</form>
<!-- End form -->
</div>
</div>
</div>
</section>
{% endblock %}
{% include 'footer.html' %}
</body>
</html>
|