1 {% extends "admin/base_site_login.html" %}
2 {% load i18n admin_static %}
4 {% block extrastyle %}{{ block.super }}
5 <link rel="stylesheet" type="text/css" href="/static/suit/bootstrap/css/bootstrap.min.css" media="all"/>
6 <link rel="stylesheet" type="text/css" href="{% static "planetstack.css" %}" />
9 {% block bodyclass %}login{% endblock %}
11 {% block nav-global %}{% endblock %}
13 {% block content_title %}{% endblock %}
15 {% block breadcrumbs %}{% endblock %}
18 {% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}
20 {% blocktrans count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
24 {% if form.non_field_errors or form.this_is_the_login_form.errors %}
25 {% for error in form.non_field_errors|add:form.this_is_the_login_form.errors %}
32 <div id="content-main">
33 <h1><i class="icon-lock icon-white"></i> OpenCloud</h1>
34 <form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %}
35 <div class="form-row">
36 {% if not form.this_is_the_login_form.errors %}{{ form.username.errors }}{% endif %}
39 <div class="form-row">
40 {% if not form.this_is_the_login_form.errors %}{{ form.password.errors }}{% endif %}
42 <input type="hidden" name="this_is_the_login_form" value="1" />
43 <input type="hidden" name="next" value="{{ next }}" />
45 {% url 'admin_password_reset' as password_reset_url %}
46 {% if password_reset_url %}
47 <div class="password-reset-link">
48 <a href="{{ password_reset_url }}">{% trans 'Forgotten your password or username?' %}</a>
51 <div class="submit-row">
52 <input type="submit" class="btn btn-info" value="{% trans 'SIGN IN' %}" />
54 {% url 'django-admindocs-docroot' as docsroot %}
56 <div class="createAccountLink"><a href="{{ docsroot }}">{% trans 'Request a new Account' %}</a></div>
60 <script type="text/javascript">
61 document.getElementById('id_username').focus()