mirror of https://github.com/interlegis/sigi.git
Breno
11 years ago
2 changed files with 64 additions and 11 deletions
@ -0,0 +1,64 @@ |
|||||
|
{% extends "admin/base_site.html" %} |
||||
|
{% load i18n admin_static %} |
||||
|
|
||||
|
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/login.css" %}" />{% endblock %} |
||||
|
|
||||
|
{% block bodyclass %}{{ block.super }} login{% endblock %} |
||||
|
|
||||
|
{% block nav-global %}{% endblock %} |
||||
|
|
||||
|
{% block content_title %}{% endblock %} |
||||
|
|
||||
|
{% block breadcrumbs %}{% endblock %} |
||||
|
|
||||
|
{% block branding %} |
||||
|
<h1 id="site-name">SIGI</h1> |
||||
|
{% endblock %} |
||||
|
|
||||
|
{% block content %} |
||||
|
{% if form.errors and not form.non_field_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 %} |
||||
|
{% for error in form.non_field_errors %} |
||||
|
<p class="errornote"> |
||||
|
{{ error }} |
||||
|
</p> |
||||
|
{% endfor %} |
||||
|
{% endif %} |
||||
|
|
||||
|
{% block container-top %}{% endblock %} |
||||
|
|
||||
|
|
||||
|
<div id="content-main"> |
||||
|
<form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %} |
||||
|
<div class="form-row"> |
||||
|
{{ form.username.errors }} |
||||
|
{{ form.username.label_tag }} {{ form.username }} |
||||
|
</div> |
||||
|
<div class="form-row"> |
||||
|
{{ form.password.errors }} |
||||
|
{{ form.password.label_tag }} {{ form.password }} |
||||
|
<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 %} |
||||
|
|
||||
|
{% block footer %}{% endblock %} |
@ -1,11 +0,0 @@ |
|||||
{% extends "admin/login.html" %} |
|
||||
{% load i18n %} |
|
||||
|
|
||||
{% block container-top %}{% endblock %} |
|
||||
|
|
||||
{% block branding %} |
|
||||
<h1 id="site-name">SIGI</h1> |
|
||||
{% endblock %} |
|
||||
|
|
||||
{% block nav-global %}{% endblock %} |
|
||||
{% block footer %}{% endblock %} |
|
Loading…
Reference in new issue