From 7cef648611e43ac433ff0f8f76f0cf5bea4da2fa Mon Sep 17 00:00:00 2001 From: Breno Date: Mon, 31 Mar 2014 15:57:35 -0300 Subject: [PATCH] Refatoracao do layout da pagina de login --- templates/admin/login.html | 64 ++++++++++++++++++++++++++++++++++++++ templates/login.html | 11 ------- 2 files changed, 64 insertions(+), 11 deletions(-) create mode 100644 templates/admin/login.html delete mode 100644 templates/login.html diff --git a/templates/admin/login.html b/templates/admin/login.html new file mode 100644 index 0000000..1f63b2d --- /dev/null +++ b/templates/admin/login.html @@ -0,0 +1,64 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_static %} + +{% block extrastyle %}{{ block.super }}{% endblock %} + +{% block bodyclass %}{{ block.super }} login{% endblock %} + +{% block nav-global %}{% endblock %} + +{% block content_title %}{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block branding %} +

SIGI

+{% endblock %} + +{% block content %} +{% if form.errors and not form.non_field_errors %} +

+{% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %} +

+{% endif %} + +{% if form.non_field_errors %} +{% for error in form.non_field_errors %} +

+ {{ error }} +

+{% endfor %} +{% endif %} + +{% block container-top %}{% endblock %} + + +
+
{% csrf_token %} +
+ {{ form.username.errors }} + {{ form.username.label_tag }} {{ form.username }} +
+
+ {{ form.password.errors }} + {{ form.password.label_tag }} {{ form.password }} + +
+ {% url 'admin_password_reset' as password_reset_url %} + {% if password_reset_url %} + + {% endif %} +
+ +
+
+ + +
+{% endblock %} + +{% block footer %}{% endblock %} \ No newline at end of file diff --git a/templates/login.html b/templates/login.html deleted file mode 100644 index 0a3150e..0000000 --- a/templates/login.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "admin/login.html" %} -{% load i18n %} - -{% block container-top %}{% endblock %} - -{% block branding %} -

SIGI

-{% endblock %} - -{% block nav-global %}{% endblock %} -{% block footer %}{% endblock %}