~ubuntu-branches/ubuntu/hardy/bcfg2/hardy-updates

« back to all changes in this revision

Viewing changes to src/lib/Server/Hostbase/hostbase/webtemplates/login.html

  • Committer: Bazaar Package Importer
  • Author(s): Sami Haahtinen
  • Date: 2006-11-16 22:39:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061116223916-8dtn3t86cz58vg2x
Tags: 0.8.6.1-1
* New Upstream Release
* Replaced faulty if clause in bcfg2.postrm (Closes: #398772)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "base.html" %}
 
2
{% block pagebanner %}
 
3
  <div class="header">
 
4
      <h2>Login to Hostbase!</h2>
 
5
      <p>You must login to manage hosts</p>
 
6
  </div>
 
7
  <br/>
 
8
{% endblock %}
 
9
{% block content %}
 
10
  {% if form.has_errors %}
 
11
  {{ form.username.errors|join:", " }}
 
12
  <p>Login Failed.</p>
 
13
  {% endif %}
 
14
  {% if user.is_authenticated %}
 
15
  <p>Welcome, {{ user.username }}. Thanks for logging in.</p>
 
16
  {% else %}
 
17
  <p>Welcome, user. Please log in.</p>
 
18
  <form name="input" action="." method="post">
 
19
  <input name="username" type="text">
 
20
  <br />
 
21
  <input name="password" type="password">
 
22
  <br />
 
23
  <input type="submit" value="Login">
 
24
  {% if next %}
 
25
  <input type="hidden" name="next" value="{{ next }}" />
 
26
  {% else %}
 
27
  <input type="hidden" name="next" value="/hostbase/" />
 
28
  {% endif %}
 
29
 
 
30
  </form>
 
31
  {% endif %}
 
32
{% endblock %}