blob: e46ccc0860d51661025e783973f1ce13d0a9d040 (
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
|
{% extends "base.html" %}
{% block pagebanner %}
<div class="header">
<h2>Login to Hostbase!</h2>
<p>You must login to manage hosts</p>
</div>
<br/>
{% endblock %}
{% block content %}
{% if form.has_errors %}
{{ form.username.errors|join:", " }}
<p>Login Failed.</p>
{% endif %}
{% if user.is_authenticated %}
<p>Welcome, {{ user.username }}. Thanks for logging in.</p>
{% else %}
<p>Welcome, user. Please log in.</p>
<form name="input" action="." method="post">
<input name="username" type="text">
<br />
<input name="password" type="password">
<br />
<input type="submit" value="Login">
{% if next %}
<input type="hidden" name="next" value="{{ next }}" />
{% else %}
<input type="hidden" name="next" value="/hostbase/" />
{% endif %}
</form>
{% endif %}
{% endblock %}
|