diff options
Diffstat (limited to 'src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/login.html')
-rw-r--r-- | src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/login.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/login.html b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/login.html new file mode 100644 index 000000000..ec24a0fc0 --- /dev/null +++ b/src/lib/Bcfg2/Server/Hostbase/hostbase/webtemplates/login.html @@ -0,0 +1,37 @@ +{% 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 sidebar %} +<a href="/hostbase/" class="sidebar">search for hosts</a><br> +<a href="/hostbase/new" class="sidebar">add a new host</a><br> +<a href="hostbase/zones/" class="sidebar">zone file information</a> +{% 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 %} |