From efb623af0bcb47d510501c282e1326b11343a29c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 22 Sep 2012 22:27:04 -0400 Subject: site reorg --- .../templates/admin/auth/user/add_form.html | 36 ++++++++++++ .../templates/admin/auth/user/change_password.html | 68 ++++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 app/lib/grappelli/templates/admin/auth/user/add_form.html create mode 100644 app/lib/grappelli/templates/admin/auth/user/change_password.html (limited to 'app/lib/grappelli/templates/admin/auth/user') diff --git a/app/lib/grappelli/templates/admin/auth/user/add_form.html b/app/lib/grappelli/templates/admin/auth/user/add_form.html new file mode 100644 index 0000000..7431762 --- /dev/null +++ b/app/lib/grappelli/templates/admin/auth/user/add_form.html @@ -0,0 +1,36 @@ +{% extends "admin/change_form.html" %} +{% load i18n %} + +{% comment %} +{% block after_field_sets %} +

{% trans "First, enter a username and password. Then, you'll be able to edit more user options." %}

+
+
+ {# TODO: get required class on label_tag #} +
+
+ {{ form.username }} + {{ form.username.errors }} +

{{ form.username.help_text }}

+
+
+
+ {# TODO: get required class on label_tag #} +
+
+ {{ form.password1 }} + {{ form.password1.errors }} +
+
+
+ {# TODO: get required class on label_tag #} +
+
+ {{ form.password2 }} + {{ form.password2.errors }} +

{% trans 'Enter the same password as above, for verification.' %}

+
+
+
+{% endblock %} +{% endcomment %} diff --git a/app/lib/grappelli/templates/admin/auth/user/change_password.html b/app/lib/grappelli/templates/admin/auth/user/change_password.html new file mode 100644 index 0000000..0a82cf7 --- /dev/null +++ b/app/lib/grappelli/templates/admin/auth/user/change_password.html @@ -0,0 +1,68 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_modify adminmedia %} {# grp_csrf #} +{% block userlinks %} +{% url django-admindocs-docroot as docsroot %} + {% if docsroot %} +
  • + {% trans 'Documentation' %} +
  • + {% endif %} +
  • + {% trans 'Change password' %} +
  • +
  • + {% trans 'Log out' %} +
  • +{% endblock %} +{% block breadcrumbs %} + {% if not is_popup %} + + {% endif %} +{% endblock %} +{% block title %}{% trans 'Password change' %}{% endblock %} +{% block content-class %}content-grid{% endblock %} + +{% block content %} +{# TODO: French translations alre all mixed up with change "MY" password form ... #} +{#

    {% trans 'Password change' %}

    #} +
    +
    +

    {% blocktrans with original.username as username %}Enter a new password for the user {{ username }}.{% endblocktrans %}

    + {% if form.errors %} +

    + {% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} +

    + {% endif %} +
    {% csrf_token %}{% block form_top %}{% endblock %} + {% if is_popup %}{% endif %} +
    +
    +
    +
    + {{ form.password1 }} + {{ form.password1.errors }} +
    +
    +
    +
    +
    + {{ form.password2 }} + {{ form.password2.errors }} +

    {% trans 'Enter the same password as above, for verification.' %}

    +
    +
    +
    +
    +
      +
    • +
    +
    +
    +
    +
    +{% endblock %} -- cgit v1.2.3-70-g09d2