2014-05-08 16:59:35 +00:00
|
|
|
{% extends "admin/base_site.html" %}
|
2023-10-24 16:59:02 +00:00
|
|
|
{% load i18n static utils %}
|
2014-05-08 16:59:35 +00:00
|
|
|
|
|
|
|
{% block extrastyle %}
|
|
|
|
{{ block.super }}
|
|
|
|
<link rel="stylesheet" type="text/css" href="{% static "admin/css/login.css" %}" />
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block adminextraprettystyle %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block bodyclass %}login{% endblock %}
|
|
|
|
|
|
|
|
{% block nav-global %}{% endblock %}
|
|
|
|
|
|
|
|
{% block content_title %}{% endblock %}
|
|
|
|
|
|
|
|
{% block breadcrumbs %}{% endblock %}
|
|
|
|
|
2014-10-18 12:26:59 +00:00
|
|
|
{% block branding %}
|
2015-05-04 13:02:00 +00:00
|
|
|
<h1 id="site-name">{{ ORCHESTRA_SITE_VERBOSE_NAME }} <span class="version">{% version %}</span>
|
2014-10-18 12:26:59 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2014-05-08 16:59:35 +00:00
|
|
|
{% block content %}
|
|
|
|
{% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}
|
|
|
|
<p class="errornote">
|
|
|
|
{% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if form.non_field_errors or form.this_is_the_login_form.errors %}
|
|
|
|
{% for error in form.non_field_errors|add:form.this_is_the_login_form.errors %}
|
|
|
|
<p class="errornote">
|
|
|
|
{{ error }}
|
|
|
|
</p>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
<div id="content-main">
|
|
|
|
<form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %}
|
|
|
|
<div class="form-row">
|
|
|
|
{% if not form.this_is_the_login_form.errors %}{{ form.username.errors }}{% endif %}
|
|
|
|
<label for="id_username" class="required">{{ form.username.label }}:</label> {{ form.username }}
|
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
{% if not form.this_is_the_login_form.errors %}{{ form.password.errors }}{% endif %}
|
|
|
|
<label for="id_password" class="required">{% trans 'Password:' %}</label> {{ form.password }}
|
|
|
|
<input type="hidden" name="this_is_the_login_form" value="1" />
|
|
|
|
<input type="hidden" name="next" value="{{ next }}" />
|
|
|
|
</div>
|
|
|
|
{% url 'admin_password_reset' as password_reset_url %}
|
|
|
|
{% if password_reset_url %}
|
|
|
|
<div class="password-reset-link">
|
|
|
|
<a href="{{ password_reset_url }}">{% trans 'Forgotten your password or username?' %}</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div class="submit-row">
|
|
|
|
<label> </label><input type="submit" value="{% trans 'Log in' %}" />
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
document.getElementById('id_username').focus()
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|