From efb623af0bcb47d510501c282e1326b11343a29c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 22 Sep 2012 22:27:04 -0400 Subject: site reorg --- app/lib/grappelli/templates/admin/404.html | 13 ++ app/lib/grappelli/templates/admin/500.html | 16 ++ .../templates/admin/_grappelli/app_index.html | 40 ++++ .../grappelli/templates/admin/_grappelli/base.html | 78 ++++++++ .../templates/admin/_grappelli/base_site.html | 9 + .../templates/admin/_grappelli/index.html | 61 ++++++ .../admin/_grappelli_admin_tools/app_index.html | 20 ++ .../admin/_grappelli_admin_tools/base.html | 125 ++++++++++++ .../admin/_grappelli_admin_tools/base_site.html | 25 +++ .../admin/_grappelli_admin_tools/index.html | 18 ++ app/lib/grappelli/templates/admin/actions.html | 19 ++ app/lib/grappelli/templates/admin/app_index.html | 1 + .../templates/admin/auth/user/add_form.html | 36 ++++ .../templates/admin/auth/user/change_password.html | 68 +++++++ app/lib/grappelli/templates/admin/base.html | 1 + app/lib/grappelli/templates/admin/base_site.html | 1 + app/lib/grappelli/templates/admin/change_form.html | 100 ++++++++++ app/lib/grappelli/templates/admin/change_list.html | 153 +++++++++++++++ .../templates/admin/change_list_results.html | 29 +++ .../admin/csv_export_selected_confirmation.html | 60 ++++++ .../grappelli/templates/admin/date_hierarchy.html | 13 ++ .../templates/admin/delete_confirmation.html | 48 +++++ .../admin/delete_selected_confirmation.html | 54 ++++++ .../templates/admin/edit_inline/stacked.html | 147 ++++++++++++++ .../templates/admin/edit_inline/tabular.html | 211 +++++++++++++++++++++ app/lib/grappelli/templates/admin/filter.html | 7 + .../templates/admin/includes/fieldset.html | 37 ++++ .../templates/admin/includes/fieldset_inline.html | 37 ++++ .../templates/admin/includes_grappelli/header.html | 46 +++++ app/lib/grappelli/templates/admin/index.html | 1 + app/lib/grappelli/templates/admin/init.js | 0 .../grappelli/templates/admin/invalid_setup.html | 12 ++ app/lib/grappelli/templates/admin/login.html | 47 +++++ .../grappelli/templates/admin/object_history.html | 51 +++++ app/lib/grappelli/templates/admin/pagination.html | 30 +++ .../templates/admin/prepopulated_fields_js.html | 17 ++ app/lib/grappelli/templates/admin/search_form.html | 20 ++ app/lib/grappelli/templates/admin/submit_line.html | 12 ++ .../templates/admin/template_validator.html | 34 ++++ .../templates/admin_doc/bookmarklets.html | 37 ++++ app/lib/grappelli/templates/admin_doc/index.html | 34 ++++ .../templates/admin_doc/missing_docutils.html | 14 ++ .../templates/admin_doc/model_detail.html | 51 +++++ .../grappelli/templates/admin_doc/model_index.html | 45 +++++ .../templates/admin_doc/template_detail.html | 21 ++ .../templates/admin_doc/template_filter_index.html | 47 +++++ .../templates/admin_doc/template_tag_index.html | 48 +++++ .../grappelli/templates/admin_doc/view_detail.html | 30 +++ .../grappelli/templates/admin_doc/view_index.html | 46 +++++ .../templates/admin_tools/dashboard/css.html | 2 + .../templates/admin_tools/dashboard/dashboard.html | 79 ++++++++ .../templates/admin_tools/dashboard/dashboard.txt | 141 ++++++++++++++ .../admin_tools/dashboard/dashboard_app_index.txt | 29 +++ .../templates/admin_tools/dashboard/dummy.html | 1 + .../templates/admin_tools/dashboard/module.html | 7 + .../admin_tools/dashboard/modules/app_list.html | 58 ++++++ .../admin_tools/dashboard/modules/column.html | 9 + .../admin_tools/dashboard/modules/feed.html | 21 ++ .../admin_tools/dashboard/modules/group.html | 33 ++++ .../admin_tools/dashboard/modules/link_list.html | 21 ++ .../admin_tools/dashboard/modules/model_list.html | 26 +++ .../dashboard/modules/module_group.html | 10 + .../dashboard/modules/recent_actions.html | 26 +++ .../admin_tools/dashboard/preferences_form.html | 10 + .../admin_tools/menu/add_bookmark_form.html | 9 + .../grappelli/templates/admin_tools/menu/css.html | 1 + .../templates/admin_tools/menu/delete_confirm.html | 13 ++ .../templates/admin_tools/menu/dummy.html | 1 + .../grappelli/templates/admin_tools/menu/form.html | 10 + .../grappelli/templates/admin_tools/menu/item.html | 15 ++ .../grappelli/templates/admin_tools/menu/menu.html | 64 +++++++ .../grappelli/templates/admin_tools/menu/menu.txt | 32 ++++ .../admin_tools/menu/remove_bookmark_form.html | 7 + app/lib/grappelli/templates/grappelli/index.html | 3 + .../templates/registration/logged_out.html | 18 ++ .../registration/password_change_done.html | 24 +++ .../registration/password_change_form.html | 60 ++++++ .../registration/password_reset_complete.html | 12 ++ .../registration/password_reset_confirm.html | 23 +++ .../registration/password_reset_done.html | 11 ++ .../registration/password_reset_email.html | 15 ++ .../registration/password_reset_form.html | 15 ++ 82 files changed, 2876 insertions(+) create mode 100644 app/lib/grappelli/templates/admin/404.html create mode 100644 app/lib/grappelli/templates/admin/500.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli/app_index.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli/base.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli/base_site.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli/index.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli_admin_tools/app_index.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli_admin_tools/base.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli_admin_tools/base_site.html create mode 100644 app/lib/grappelli/templates/admin/_grappelli_admin_tools/index.html create mode 100644 app/lib/grappelli/templates/admin/actions.html create mode 100644 app/lib/grappelli/templates/admin/app_index.html 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 create mode 100644 app/lib/grappelli/templates/admin/base.html create mode 100644 app/lib/grappelli/templates/admin/base_site.html create mode 100644 app/lib/grappelli/templates/admin/change_form.html create mode 100644 app/lib/grappelli/templates/admin/change_list.html create mode 100644 app/lib/grappelli/templates/admin/change_list_results.html create mode 100644 app/lib/grappelli/templates/admin/csv_export_selected_confirmation.html create mode 100644 app/lib/grappelli/templates/admin/date_hierarchy.html create mode 100644 app/lib/grappelli/templates/admin/delete_confirmation.html create mode 100644 app/lib/grappelli/templates/admin/delete_selected_confirmation.html create mode 100644 app/lib/grappelli/templates/admin/edit_inline/stacked.html create mode 100644 app/lib/grappelli/templates/admin/edit_inline/tabular.html create mode 100644 app/lib/grappelli/templates/admin/filter.html create mode 100644 app/lib/grappelli/templates/admin/includes/fieldset.html create mode 100644 app/lib/grappelli/templates/admin/includes/fieldset_inline.html create mode 100644 app/lib/grappelli/templates/admin/includes_grappelli/header.html create mode 100644 app/lib/grappelli/templates/admin/index.html create mode 100644 app/lib/grappelli/templates/admin/init.js create mode 100644 app/lib/grappelli/templates/admin/invalid_setup.html create mode 100644 app/lib/grappelli/templates/admin/login.html create mode 100644 app/lib/grappelli/templates/admin/object_history.html create mode 100644 app/lib/grappelli/templates/admin/pagination.html create mode 100644 app/lib/grappelli/templates/admin/prepopulated_fields_js.html create mode 100644 app/lib/grappelli/templates/admin/search_form.html create mode 100644 app/lib/grappelli/templates/admin/submit_line.html create mode 100644 app/lib/grappelli/templates/admin/template_validator.html create mode 100644 app/lib/grappelli/templates/admin_doc/bookmarklets.html create mode 100644 app/lib/grappelli/templates/admin_doc/index.html create mode 100644 app/lib/grappelli/templates/admin_doc/missing_docutils.html create mode 100644 app/lib/grappelli/templates/admin_doc/model_detail.html create mode 100644 app/lib/grappelli/templates/admin_doc/model_index.html create mode 100644 app/lib/grappelli/templates/admin_doc/template_detail.html create mode 100644 app/lib/grappelli/templates/admin_doc/template_filter_index.html create mode 100644 app/lib/grappelli/templates/admin_doc/template_tag_index.html create mode 100644 app/lib/grappelli/templates/admin_doc/view_detail.html create mode 100644 app/lib/grappelli/templates/admin_doc/view_index.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/css.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/dashboard.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/dashboard.txt create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/dashboard_app_index.txt create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/dummy.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/module.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/modules/app_list.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/modules/column.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/modules/feed.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/modules/group.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/modules/link_list.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/modules/model_list.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/modules/module_group.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/modules/recent_actions.html create mode 100644 app/lib/grappelli/templates/admin_tools/dashboard/preferences_form.html create mode 100644 app/lib/grappelli/templates/admin_tools/menu/add_bookmark_form.html create mode 100644 app/lib/grappelli/templates/admin_tools/menu/css.html create mode 100644 app/lib/grappelli/templates/admin_tools/menu/delete_confirm.html create mode 100644 app/lib/grappelli/templates/admin_tools/menu/dummy.html create mode 100644 app/lib/grappelli/templates/admin_tools/menu/form.html create mode 100644 app/lib/grappelli/templates/admin_tools/menu/item.html create mode 100644 app/lib/grappelli/templates/admin_tools/menu/menu.html create mode 100644 app/lib/grappelli/templates/admin_tools/menu/menu.txt create mode 100644 app/lib/grappelli/templates/admin_tools/menu/remove_bookmark_form.html create mode 100644 app/lib/grappelli/templates/grappelli/index.html create mode 100644 app/lib/grappelli/templates/registration/logged_out.html create mode 100644 app/lib/grappelli/templates/registration/password_change_done.html create mode 100644 app/lib/grappelli/templates/registration/password_change_form.html create mode 100644 app/lib/grappelli/templates/registration/password_reset_complete.html create mode 100644 app/lib/grappelli/templates/registration/password_reset_confirm.html create mode 100644 app/lib/grappelli/templates/registration/password_reset_done.html create mode 100644 app/lib/grappelli/templates/registration/password_reset_email.html create mode 100644 app/lib/grappelli/templates/registration/password_reset_form.html (limited to 'app/lib/grappelli/templates') diff --git a/app/lib/grappelli/templates/admin/404.html b/app/lib/grappelli/templates/admin/404.html new file mode 100644 index 0000000..10aeb75 --- /dev/null +++ b/app/lib/grappelli/templates/admin/404.html @@ -0,0 +1,13 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n %} + + +{% block title %}{% trans "Page not found" %}{% endblock %} + + +{% block content %} +

{% trans "Page not found" %}

+

{% trans "We're sorry, but the requested page could not be found." %}

+{% endblock %} diff --git a/app/lib/grappelli/templates/admin/500.html b/app/lib/grappelli/templates/admin/500.html new file mode 100644 index 0000000..e6fb34a --- /dev/null +++ b/app/lib/grappelli/templates/admin/500.html @@ -0,0 +1,16 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n %} + + +{% block breadcrumbs %}{% endblock %} + + +{% block title %}{% trans "Server error (500)" %}{% endblock %} + + +{% block content %} +

{% trans "Server Error (500)" %}

+

{% trans "There's been an error. It's been reported to the site administrators via e-mail and should be fixed shortly. Thanks for your patience." %}

+{% endblock %} diff --git a/app/lib/grappelli/templates/admin/_grappelli/app_index.html b/app/lib/grappelli/templates/admin/_grappelli/app_index.html new file mode 100644 index 0000000..e9cb806 --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli/app_index.html @@ -0,0 +1,40 @@ +{% extends "admin/_grappelli/index.html" %} + + +{% load i18n grp_tags %} + + +{% if not is_popup %} + {% block breadcrumbs %} + + {% endblock %} +{% endif %} + + +{% block content %} +
+
+ {% if app_list %} + {% for app in app_list %} +
+

{% trans app.name %}

+ {% for model in app.models %} +
+ {% if model.perms.change %}{{ model.name }}{% else %}{{ model.name }}{% endif %} + +
+ {% endfor %} +
+ {% endfor %} + {% endif %} +
+
+{% endblock %} diff --git a/app/lib/grappelli/templates/admin/_grappelli/base.html b/app/lib/grappelli/templates/admin/_grappelli/base.html new file mode 100644 index 0000000..16676b9 --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli/base.html @@ -0,0 +1,78 @@ + + + + {% block title %}{% endblock %} + {% block blockbots %}{% endblock %} + + + {% load adminmedia i18n grp_tags %} + + + {% block stylesheets %} + + {% if LANGUAGE_BIDI %}{% endif %} + + + {% endblock %} + {% block extrastyle %}{% endblock %} + + + {% block javascripts %} + + + + + + + + {% endblock %} + + {% block extrahead %}{% endblock %} + + +
+ + + {% if not is_popup %} + {% include "admin/includes_grappelli/header.html" %} + + {% block breadcrumbs %} + + {% endblock %} + {% endif %} + + + {% if messages %} + + {% endif %} + + +
+ {% block pretitle %}{% endblock %} + {% block content_title %}{% if title %}

{{ title }}

{% endif %}{% endblock %} + {% block object-tools %}{% endblock %} + {% block content %} + {{ content }} + {% block filters %}{% endblock %} + {% endblock %} +
+
+ + + {% block footer %}{% endblock %} + +
+ + + diff --git a/app/lib/grappelli/templates/admin/_grappelli/base_site.html b/app/lib/grappelli/templates/admin/_grappelli/base_site.html new file mode 100644 index 0000000..1f94985 --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli/base_site.html @@ -0,0 +1,9 @@ +{% extends "admin/_grappelli/base.html" %} + + +{% load i18n grp_tags %} + + +{% block title %}{{ title }} | {% grappelli_admin_title %}{% endblock %} +{% block branding %}

{% grappelli_admin_title %}

{% endblock %} +{% block nav-global %}{% endblock %} diff --git a/app/lib/grappelli/templates/admin/_grappelli/index.html b/app/lib/grappelli/templates/admin/_grappelli/index.html new file mode 100644 index 0000000..8dedd3d --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli/index.html @@ -0,0 +1,61 @@ +{% extends "admin/_grappelli/base_site.html" %} + + +{% load i18n adminmedia grp_tags %} + + +{% block javascripts %} + {{ block.super }} +{% endblock %} + + +{% block bodyclass %}dashboard{% endblock %} +{% block content-class %}content-grid{% endblock %} + + +{% block breadcrumbs %}{% endblock %} + + +{% block content %} +
+
+ {% if app_list %} + {% for app in app_list %} +
+

{% trans app.name %}

+ {% for model in app.models %} +
+ {% if model.perms.change %}{{ model.name }}{% else %}{{ model.name }}{% endif %} + +
+ {% endfor %} +
+ {% endfor %} + {% else %} +

{% trans "You donĀ“t have permission to edit anything." %}

+ {% endif %} +
+
+
+

{% trans 'Recent Actions' %}

+
+

{% trans 'My Actions' %}

+ {% load log %} + {% get_admin_log 10 as admin_log for_user user %} + {% if not admin_log %} +

{% trans 'None available' %}

+ {% else %} + + {% endif %} +
+
+
+
+{% endblock %} diff --git a/app/lib/grappelli/templates/admin/_grappelli_admin_tools/app_index.html b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/app_index.html new file mode 100644 index 0000000..bc896be --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/app_index.html @@ -0,0 +1,20 @@ +{% extends "admin/_grappelli_admin_tools/index.html" %} +{% load i18n admin_tools_dashboard_tags %} + + +{% if not is_popup %} + {% block breadcrumbs %} + + {% endblock %} +{% endif %} + +{% block content %} + {% admin_tools_render_dashboard 'app_index' %} +{% endblock %} + +{% block sidebar %}{% endblock %} diff --git a/app/lib/grappelli/templates/admin/_grappelli_admin_tools/base.html b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/base.html new file mode 100644 index 0000000..742273a --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/base.html @@ -0,0 +1,125 @@ + + + + {% block title %}{% endblock %} + {% block blockbots %}{% endblock %} + + + {% load theming_tags adminmedia i18n grp_tags %} + + + {% block stylesheets %} + + {% if LANGUAGE_BIDI %}{% endif %} + + + {% endblock %} + + {% block extrastyle %}{% endblock %} + + + {% block javascripts %} + + + + + + + + {% endblock %} + + {% block extrahead %}{% endblock %} + + +
+ + + {% if not is_popup %} + + + + {% block breadcrumbs %} + + {% endblock %} + {% endif %} + + + {% if messages %} + + {% endif %} + + +
+ {% block pretitle %}{% endblock %} + {% block content_title %}{% if title %}

{{ title }}

{% endif %}{% endblock %} + {% block object-tools %}{% endblock %} + {% block content %} + {{ content }} + {% block filters %}{% endblock %} + {% endblock %} +
+
+ + + {% block footer %}{% endblock %} + +
+ + + diff --git a/app/lib/grappelli/templates/admin/_grappelli_admin_tools/base_site.html b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/base_site.html new file mode 100644 index 0000000..0012bb6 --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/base_site.html @@ -0,0 +1,25 @@ +{% extends "admin/_grappelli_admin_tools/base.html" %} +{% load i18n admin_tools_menu_tags %} + +{% block title %}{{ title }} | {% trans 'Django site admin' %}{% endblock %} + +{% block extrastyle %} + {{ block.super }} + {% if user.is_active and user.is_staff %} + {% if not is_popup %} + {% admin_tools_render_menu_css %} + {% endif %} + {% endif %} +{% endblock %} + +{% block branding %} +

{% trans 'Django administration' %}

+{% endblock %} + +{% block nav-global %} + {% if user.is_active and user.is_staff %} + {% if not is_popup %} + {% admin_tools_render_menu %} + {% endif %} + {% endif %} +{% endblock %} diff --git a/app/lib/grappelli/templates/admin/_grappelli_admin_tools/index.html b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/index.html new file mode 100644 index 0000000..2f3bb13 --- /dev/null +++ b/app/lib/grappelli/templates/admin/_grappelli_admin_tools/index.html @@ -0,0 +1,18 @@ +{% extends "admin/_grappelli_admin_tools/base_site.html" %} +{% load i18n admin_tools_dashboard_tags %} + +{% block extrastyle %} +{{ block.super }} +{% block dashboard_css %}{% admin_tools_render_dashboard_css %}{% endblock %} +{% endblock %} + + +{% block bodyclass %}admin-tools dashboard{% endblock %} +{% block content-class %}content-grid{% endblock %} + +{% block breadcrumbs %}{% endblock %} +{% block content_title %}{% if title %}

{{ title }}

{% endif %}{% endblock %} + +{% block content %} + {% admin_tools_render_dashboard %} +{% endblock %} diff --git a/app/lib/grappelli/templates/admin/actions.html b/app/lib/grappelli/templates/admin/actions.html new file mode 100644 index 0000000..588f503 --- /dev/null +++ b/app/lib/grappelli/templates/admin/actions.html @@ -0,0 +1,19 @@ +{% load i18n %} + diff --git a/app/lib/grappelli/templates/admin/app_index.html b/app/lib/grappelli/templates/admin/app_index.html new file mode 100644 index 0000000..a877e66 --- /dev/null +++ b/app/lib/grappelli/templates/admin/app_index.html @@ -0,0 +1 @@ +{% extends admin_template_app_index %} \ No newline at end of file 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 %} diff --git a/app/lib/grappelli/templates/admin/base.html b/app/lib/grappelli/templates/admin/base.html new file mode 100644 index 0000000..1ba7a0d --- /dev/null +++ b/app/lib/grappelli/templates/admin/base.html @@ -0,0 +1 @@ +{% extends admin_template_base %} \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin/base_site.html b/app/lib/grappelli/templates/admin/base_site.html new file mode 100644 index 0000000..1c99d4d --- /dev/null +++ b/app/lib/grappelli/templates/admin/base_site.html @@ -0,0 +1 @@ +{% extends admin_template_base_site %} \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin/change_form.html b/app/lib/grappelli/templates/admin/change_form.html new file mode 100644 index 0000000..620b166 --- /dev/null +++ b/app/lib/grappelli/templates/admin/change_form.html @@ -0,0 +1,100 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n admin_modify adminmedia grp_tags %} + + +{% block javascripts %} + {{ block.super }} + {% url admin:jsi18n as jsi18nurl %} + + {{ media }} +{% endblock %} + + +{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %} +{% block content-class %}content-flexible{% endblock %} + + +{% block breadcrumbs %} + {% if not is_popup %} + + {% endif %} +{% endblock %} + + +{% block object-tools %} + {% if change %} + {% if not is_popup %} + + {% endif %} + {% endif %} +{% endblock %} + + +{% block content %} +
    +
    +
    {% csrf_token %}{% block form_top %}{% endblock %} +
    + + {% if is_popup %}{% endif %} + + + {% if save_on_top %}{% submit_row %}{% endif %} + + + {% if errors %} +

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

    +
      {% for error in adminform.form.non_field_errors %}
    • {{ error }}
    • {% endfor %}
    + {% endif %} + + + {% for fieldset in adminform %} + {% include "admin/includes/fieldset.html" %} + {% endfor %} + + {% block after_field_sets %}{% endblock %} + + + {% for inline_admin_formset in inline_admin_formsets %} + {% include inline_admin_formset.opts.template %} + {% endfor %} + + {% block after_related_objects %}{% endblock %} + + + {% submit_row %} + + {% if adminform and add %} + {% block extrahead %} + + {% endblock %} + {% endif %} + + + {% prepopulated_fields_js %} + +
    +
    +
    +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin/change_list.html b/app/lib/grappelli/templates/admin/change_list.html new file mode 100644 index 0000000..e407964 --- /dev/null +++ b/app/lib/grappelli/templates/admin/change_list.html @@ -0,0 +1,153 @@ +{% extends "admin/base_site.html" %} + + +{% load adminmedia admin_list i18n grp_tags %} + + +{% block javascripts %} + {{ block.super }} + {% if cl.formset %} + {% url admin:jsi18n as jsi18nurl %} + + {% endif %} + {{ media }} + + +{% endblock %} + + +{% block content_title %} +

    + {{ cl.opts.verbose_name_plural|capfirst }} +

    +{% endblock %} + + +{% block object-tools %} + {% if has_add_permission %} + + {% endif %} +{% endblock %} + + +{% block content %} + {% if cl.search_fields or cl.has_filters or cl.date_hierarchy %} +
    + + {% pagination cl %} + {% if cl.has_filters or cl.search_fields %} + + {% if cl.has_filters %} +
    +
    + {% trans 'Filter' %} +
    + {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %} +
    +
    +
    + {% endif %} + + {% if cl.search_fields %} + + {% endif %} + {% endif %} +
    +
    + + {% if cl.date_hierarchy %} + {% date_hierarchy cl %} + {% endif %} + {% endif %} +
    {% csrf_token %} +
    + + {% if is_popup %}{% endif %} + + {% if cl.formset.errors %} +

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

    + {{ cl.formset.non_form_errors }} + {% endif %} + + {% if cl.formset %} + {{ cl.formset.management_form }} + {% endif %} + + {% block result_list %} + {% result_list cl %} + {% endblock %} + + {% pagination cl %} +

    + + {% if action_form and cl.full_result_count and cl.result_count %} + {% admin_actions %} + {% endif %} + + {% if cl.formset and cl.full_result_count and cl.result_count %} + + {% endif %} +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin/change_list_results.html b/app/lib/grappelli/templates/admin/change_list_results.html new file mode 100644 index 0000000..062b52e --- /dev/null +++ b/app/lib/grappelli/templates/admin/change_list_results.html @@ -0,0 +1,29 @@ +{% if results %} + + {% if result_hidden_fields %} +
    {# DIV for HTML validation #} + {% for item in result_hidden_fields %}{{ item }}{% endfor %} +
    + {% endif %} + +
    + + + + {% for header in result_headers %} + + {% endfor %} + + + + {% for result in results %} + {% for item in result %}{{ item }}{% endfor %} + {% endfor %} + +
    + {% if header.sortable %}{% endif %} + {{ header.text|capfirst }} + {% if header.sortable %}{% endif %} +
    +
    +{% endif %} diff --git a/app/lib/grappelli/templates/admin/csv_export_selected_confirmation.html b/app/lib/grappelli/templates/admin/csv_export_selected_confirmation.html new file mode 100644 index 0000000..873bd87 --- /dev/null +++ b/app/lib/grappelli/templates/admin/csv_export_selected_confirmation.html @@ -0,0 +1,60 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n %} + + +{% block breadcrumbs %} + +{% endblock %} + + +{% block content %} + +
    +
    {% csrf_token %} +
    +

    {% blocktrans %}Export following fields:{% endblocktrans %}

    +
    +
      +
    • +
    +
    +
    +
      + {% for item in fields %} +
    • + +
    • + {% endfor %} +
    +
    +
    + +
    +
    +{% endblock %} \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin/date_hierarchy.html b/app/lib/grappelli/templates/admin/date_hierarchy.html new file mode 100644 index 0000000..25e3c6b --- /dev/null +++ b/app/lib/grappelli/templates/admin/date_hierarchy.html @@ -0,0 +1,13 @@ +{% load i18n %} +{% if show and choices %} +
    +
    +
      + {% if back %}
    • {{ back.title }}
    • {% endif %} + {% for choice in choices %} +
    • {% if choice.link %}{{ choice.title }}{% else %}{{ choice.title }}{% endif %}
    • + {% endfor %} +

    +
    +
    +{% endif %} diff --git a/app/lib/grappelli/templates/admin/delete_confirmation.html b/app/lib/grappelli/templates/admin/delete_confirmation.html new file mode 100644 index 0000000..f0cf7ad --- /dev/null +++ b/app/lib/grappelli/templates/admin/delete_confirmation.html @@ -0,0 +1,48 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n %} + + +{% block breadcrumbs %} + +{% endblock %} + + +{% block content %} +
    + {% if perms_lacking %} +
    +

    {% blocktrans with object as escaped_object %}Deleting the {{ object_name }} '{{ escaped_object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}

    +
    +
      + {% for obj in perms_lacking %} +
    • {{ obj }}
    • + {% endfor %} +
    +
    +
    + {% else %} +
    +

    {% blocktrans with object as escaped_object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktrans %}

    +
    +
      {{ deleted_objects|unordered_list }}
    +
    +
    +
    {% csrf_token %} + +
    + {% endif %} +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin/delete_selected_confirmation.html b/app/lib/grappelli/templates/admin/delete_selected_confirmation.html new file mode 100644 index 0000000..4e34d9f --- /dev/null +++ b/app/lib/grappelli/templates/admin/delete_selected_confirmation.html @@ -0,0 +1,54 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n %} + + +{% block breadcrumbs %} + +{% endblock %} + + +{% block content %} +
    + {% if perms_lacking %} +
    +

    {% blocktrans %}Deleting the {{ object_name }} would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}

    +
    +
      + {% for obj in perms_lacking %} +
    • {{ obj }}
    • + {% endfor %} +
    +
    +
    + {% else %} +
    +

    {% blocktrans %}Are you sure you want to delete the selected {{ object_name }} objects? All of the following objects and their related items will be deleted:{% endblocktrans %}

    + {% for deleteable_object in deletable_objects %} +
    +
      {{ deleteable_object|unordered_list }}
    +
    + {% endfor %} +
    +
    {% csrf_token %} + +
    + {% endif %} +
    +{% endblock %} \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin/edit_inline/stacked.html b/app/lib/grappelli/templates/admin/edit_inline/stacked.html new file mode 100644 index 0000000..7112ba2 --- /dev/null +++ b/app/lib/grappelli/templates/admin/edit_inline/stacked.html @@ -0,0 +1,147 @@ +{% load i18n adminmedia %} + + +
    +

    {{ inline_admin_formset.opts.verbose_name_plural|title }}

    + + {{ inline_admin_formset.formset.management_form }} + {{ inline_admin_formset.formset.non_form_errors }} + +
    + {% for inline_admin_form in inline_admin_formset %} + +
    +

    {{ inline_admin_formset.opts.verbose_name|title }} #{{ forloop.counter }}  {% if inline_admin_form.original %}{{ inline_admin_form.original }}{% endif %}

    +
      + {% if inline_admin_form.show_url %}{% endif %} + {% if inline_admin_formset.opts.sortable_field_name %} +
    • + {% endif %} + {% if inline_admin_formset.formset.can_delete %} + {% if inline_admin_form.original %} +
    • {{ inline_admin_form.deletion_field.field }}
    • + {% else %} +
    • {{ inline_admin_form.deletion_field.field }}
    • + {% endif %} + {% endif %} +
    + {% if inline_admin_form.form.non_field_errors %} +
      +
    • {{ inline_admin_form.form.non_field_errors }}
    • +
    + {% endif %} + {% for fieldset in inline_admin_form %} + {% include "admin/includes/fieldset_inline.html" %} + {% endfor %} + {{ inline_admin_form.pk_field.field }} + {{ inline_admin_form.fk_field.field }} +
    + {% endfor %} + {{ inline_admin_formset.extra_forms }} +
    + +
    + + diff --git a/app/lib/grappelli/templates/admin/edit_inline/tabular.html b/app/lib/grappelli/templates/admin/edit_inline/tabular.html new file mode 100644 index 0000000..4d4ef94 --- /dev/null +++ b/app/lib/grappelli/templates/admin/edit_inline/tabular.html @@ -0,0 +1,211 @@ +{% load i18n adminmedia %} + + +
    +

    {{ inline_admin_formset.opts.verbose_name_plural|capfirst }}

    + + {{ inline_admin_formset.formset.management_form }} + {{ inline_admin_formset.formset.non_form_errors }} + +
    +
    +
    + {% for field in inline_admin_formset.fields %} + {% if not field.widget.is_hidden %} +
    {{ field.label|capfirst }}
    + {% endif %} + {% endfor %} + {% if inline_admin_formset.formset.can_delete %}
     
    {% endif %} +
    +
    + {% for inline_admin_form in inline_admin_formset %} + +
    + {% if inline_admin_form.form.non_field_errors %} +
    • {{ inline_admin_form.form.non_field_errors }}
    + {% endif %} +

    {{ inline_admin_formset.opts.verbose_name|title }} #{{ forloop.counter }}  {% if inline_admin_form.original %} {{ inline_admin_form.original }}{% endif %}

    + {% spaceless %} + {% for fieldset in inline_admin_form %} + {% for line in fieldset %} + {% for field in line %} + {% if field.is_hidden %} {{ field.field }} {% endif %} + {% endfor %} + {% endfor %} + {% endfor %} + {% endspaceless %} +
    + {% for fieldset in inline_admin_form %} + {% for line in fieldset %} + {% for field in line %} +
    + {% if field.is_readonly %} +

    {{ field.contents }}

    + {% else %} + {{ field.field }} + {{ field.field.errors.as_ul }} + {% endif %} +
    + {% endfor %} + {% endfor %} + {% endfor %} +
    + {% spaceless %} +
      + {% if inline_admin_form.show_url %}{% endif %} + {% if inline_admin_formset.opts.sortable_field_name %} +
    • + {% endif %} + {% if inline_admin_formset.formset.can_delete %}
    • {{ inline_admin_form.deletion_field.field }} {% endif %} +
    + {% endspaceless %} +
    + {{ inline_admin_form.fk_field.field }} + {% if inline_admin_form.has_auto_field %}{{ inline_admin_form.pk_field.field }}{% endif %} +
    +
    + {% endfor %} +
    + +
    + + + diff --git a/app/lib/grappelli/templates/admin/filter.html b/app/lib/grappelli/templates/admin/filter.html new file mode 100644 index 0000000..07756b6 --- /dev/null +++ b/app/lib/grappelli/templates/admin/filter.html @@ -0,0 +1,7 @@ +{% load i18n %} +
    + + +
    \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin/includes/fieldset.html b/app/lib/grappelli/templates/admin/includes/fieldset.html new file mode 100644 index 0000000..561a7e3 --- /dev/null +++ b/app/lib/grappelli/templates/admin/includes/fieldset.html @@ -0,0 +1,37 @@ +{% spaceless %} +
    + {% if fieldset.name %}

    {{ fieldset.name }}

    {% endif %} + {% if fieldset.description %}
    {{ fieldset.description|safe }}
    {% endif %} + {% for line in fieldset %} +
    + {% for field in line %} + + {% if field.is_checkbox %} +
     
    +
    + {{ field.field }}{{ field.label_tag }} + {{ line.errors }} + {% if field.field.field.help_text %} +

    {{ field.field.field.help_text|safe }}

    + {% endif %} +
    + {% else %} +
    {{ field.label_tag }}
    +
    + {% if field.is_readonly %} +

    {{ field.contents }}

    + {% else %} + {{ field.field }} + {% endif %} + {{ line.errors }} + {% if field.field.field.help_text %} +

    {{ field.field.field.help_text|safe }}

    + {% endif %} +
    + {% endif %} +
    + {% endfor %} + + {% endfor %} +
    +{% endspaceless %} \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin/includes/fieldset_inline.html b/app/lib/grappelli/templates/admin/includes/fieldset_inline.html new file mode 100644 index 0000000..137dce9 --- /dev/null +++ b/app/lib/grappelli/templates/admin/includes/fieldset_inline.html @@ -0,0 +1,37 @@ +{% spaceless %} +
    + {% if fieldset.name %}

    {{ fieldset.name }}

    {% endif %} + {% if fieldset.description %}
    {{ fieldset.description|safe }}
    {% endif %} + {% for line in fieldset %} +
    + {% for field in line %} + + {% if field.is_checkbox %} +
     
    +
    + {{ field.field }}{{ field.label_tag }} + {{ line.errors }} + {% if field.field.field.help_text %} +

    {{ field.field.field.help_text|safe }}

    + {% endif %} +
    + {% else %} +
    {{ field.label_tag }}
    +
    + {% if field.is_readonly %} +

    {{ field.contents }}

    + {% else %} + {{ field.field }} + {% endif %} + {{ line.errors }} + {% if field.field.field.help_text %} +

    {{ field.field.field.help_text|safe }}

    + {% endif %} +
    + {% endif %} +
    + {% endfor %} + + {% endfor %} +
    +{% endspaceless %} \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin/includes_grappelli/header.html b/app/lib/grappelli/templates/admin/includes_grappelli/header.html new file mode 100644 index 0000000..77a0ad9 --- /dev/null +++ b/app/lib/grappelli/templates/admin/includes_grappelli/header.html @@ -0,0 +1,46 @@ +{% load i18n grp_tags %} + + diff --git a/app/lib/grappelli/templates/admin/index.html b/app/lib/grappelli/templates/admin/index.html new file mode 100644 index 0000000..fbec3bc --- /dev/null +++ b/app/lib/grappelli/templates/admin/index.html @@ -0,0 +1 @@ +{% extends admin_template_index %} \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin/init.js b/app/lib/grappelli/templates/admin/init.js new file mode 100644 index 0000000..e69de29 diff --git a/app/lib/grappelli/templates/admin/invalid_setup.html b/app/lib/grappelli/templates/admin/invalid_setup.html new file mode 100644 index 0000000..f3e097e --- /dev/null +++ b/app/lib/grappelli/templates/admin/invalid_setup.html @@ -0,0 +1,12 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n %} + + +{% block breadcrumbs %}{% endblock %} + + +{% block content %} +

    {% trans "Something's wrong with your database installation. Make sure the appropriate database tables have been created, and make sure the database is readable by the appropriate user." %}

    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin/login.html b/app/lib/grappelli/templates/admin/login.html new file mode 100644 index 0000000..6f12b71 --- /dev/null +++ b/app/lib/grappelli/templates/admin/login.html @@ -0,0 +1,47 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n %} {# grp_csrf #} + + +{% block bodyclass %}login{% endblock %} +{% block content-class %}content-flexible{% endblock %} +{% block content_title %}{% endblock %} + + +{% block extrahead %} + +{% endblock %} + + +{% block breadcrumbs %}{% endblock %} + + +{% block content %} +
    +
    + {% if error_message %}{% endif %} +
    {% csrf_token %} +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
      +
    • +
    +
    +
    +
    +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin/object_history.html b/app/lib/grappelli/templates/admin/object_history.html new file mode 100644 index 0000000..1058fc9 --- /dev/null +++ b/app/lib/grappelli/templates/admin/object_history.html @@ -0,0 +1,51 @@ +{% extends "admin/base_site.html" %} + + +{% load i18n %} + + +{% block breadcrumbs %} + +{% endblock %} + + +{% block content %} +
    +
    + {% if action_list %} + + + + + + + + + + {% for action in action_list %} + + + + + + {% endfor %} + +
    {% trans 'Date/time' %}{% trans 'User' %}{% trans 'Action' %}
    {{ action.action_time|date:_("DATETIME_FORMAT") }}{{ action.user.username }}{% if action.user.get_full_name %} ({{ action.user.get_full_name }}){% endif %} + {% ifequal forloop.counter 1 %} + {% trans "Created object" %} + {% else %} + {{ action.change_message }} + {% endifequal %} +
    + {% else %} +

    {% trans "This object doesn't have a change history. It probably wasn't added via this admin site." %}

    + {% endif %} +
    +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin/pagination.html b/app/lib/grappelli/templates/admin/pagination.html new file mode 100644 index 0000000..ecd0859 --- /dev/null +++ b/app/lib/grappelli/templates/admin/pagination.html @@ -0,0 +1,30 @@ +{% load admin_list i18n %} + +{% spaceless %} + +{% endspaceless %} \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin/prepopulated_fields_js.html b/app/lib/grappelli/templates/admin/prepopulated_fields_js.html new file mode 100644 index 0000000..7ab79e9 --- /dev/null +++ b/app/lib/grappelli/templates/admin/prepopulated_fields_js.html @@ -0,0 +1,17 @@ + diff --git a/app/lib/grappelli/templates/admin/search_form.html b/app/lib/grappelli/templates/admin/search_form.html new file mode 100644 index 0000000..48c4184 --- /dev/null +++ b/app/lib/grappelli/templates/admin/search_form.html @@ -0,0 +1,20 @@ +{% load adminmedia i18n grp_tags %} +{% if cl.search_fields %} + {% comment %}{% get_search_fields_verbose cl.opts as search_fields_verbose %}{% endcomment %} + + +{% endif %} \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin/submit_line.html b/app/lib/grappelli/templates/admin/submit_line.html new file mode 100644 index 0000000..4f06ac5 --- /dev/null +++ b/app/lib/grappelli/templates/admin/submit_line.html @@ -0,0 +1,12 @@ +{% load i18n %} + diff --git a/app/lib/grappelli/templates/admin/template_validator.html b/app/lib/grappelli/templates/admin/template_validator.html new file mode 100644 index 0000000..219c442 --- /dev/null +++ b/app/lib/grappelli/templates/admin/template_validator.html @@ -0,0 +1,34 @@ +{% extends "admin/base_site.html" %} + +{# load grp_csrf #} + +{% block content %} +
    +
    {% csrf_token %} + {% if form.error_dict %} +

    Your template had {{ form.error_dict.items|length }} error{{ form.error_dict.items|pluralize }}:

    + {% endif %} +
    +
    +

    +
    + {{ form.site }} + {% if form.site.errors %}{{ form.site.html_error_list }}{% endif %} +
    +
    +
    +

    +
    + {{ form.template }} + {% if form.template.errors %}{{ form.template.html_error_list }}{% endif %} +
    +
    +
    +
    +
      +
    • +
    +
    +
    +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_doc/bookmarklets.html b/app/lib/grappelli/templates/admin_doc/bookmarklets.html new file mode 100644 index 0000000..7eba0be --- /dev/null +++ b/app/lib/grappelli/templates/admin_doc/bookmarklets.html @@ -0,0 +1,37 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% load i18n %}{% endblock %} +{% block title %}{% trans "Documentation bookmarklets" %}{% endblock %} + +{% block content %} +

    {% trans "Bookmarklets" %}

    +
    + {% blocktrans %} +

    To install bookmarklets, drag the link to your bookmarks + toolbar, or right-click the link and add it to your bookmarks. Now you can + select the bookmarklet from any page in the site. Note that some of these + bookmarklets require you to be viewing the site from a computer designated + as "internal" (talk to your system administrator if you aren't sure if + your computer is "internal").

    + {% endblocktrans %} +
    +

    {% trans "Documentation for this page" %}

    +

    {% trans "Jumps you from any page to the documentation for the view that generates that page." %}

    +
    +
    +

    {% trans "Show object ID" %}

    +

    {% trans "Shows the content-type and unique ID for pages that represent a single object." %}

    +
    +
    +

    {% trans "Edit this object (current window)" %}

    +

    {% trans "Jumps to the admin page for pages that represent a single object." %}

    +
    +
    +

    {% trans "Edit this object (new window)" %}

    +

    {% trans "As above, but opens the admin page in a new window." %}

    +
    +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_doc/index.html b/app/lib/grappelli/templates/admin_doc/index.html new file mode 100644 index 0000000..0260106 --- /dev/null +++ b/app/lib/grappelli/templates/admin_doc/index.html @@ -0,0 +1,34 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}Documentation{% endblock %} + +{% block content %} +

    Documentation

    +
    +
    +

    Tags

    +

    List of all the template tags and their functions.

    +
    +
    +

    Filters

    +

    Filters are actions which can be applied to variables in a template to alter the output.

    +
    +
    +

    Models

    +

    Models are descriptions of all the objects in the system and their associated fields. Each model has a list of fields which can be accessed as template variables.

    +
    +
    +

    Views

    +

    Each page on the public site is generated by a view. The view defines which template is used to generate the page and which objects are available to that template.

    +
    +
    +

    Bookmarklets

    +

    Tools for your browser to quickly access admin functionality.

    +
    +
    +{% endblock %} + diff --git a/app/lib/grappelli/templates/admin_doc/missing_docutils.html b/app/lib/grappelli/templates/admin_doc/missing_docutils.html new file mode 100644 index 0000000..47488a2 --- /dev/null +++ b/app/lib/grappelli/templates/admin_doc/missing_docutils.html @@ -0,0 +1,14 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block bodyclass %}documentation{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}Please install docutils{% endblock %} + +{% block content %} +

    Documentation

    +
    +

    The admin documentation system requires Python's docutils library.

    +

    Please ask your administrators to install docutils.

    +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_doc/model_detail.html b/app/lib/grappelli/templates/admin_doc/model_detail.html new file mode 100644 index 0000000..85593f0 --- /dev/null +++ b/app/lib/grappelli/templates/admin_doc/model_detail.html @@ -0,0 +1,51 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block javascripts %} + {{ block.super }} + +{% endblock %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} + +{% block title %}Model: {{ name }}{% endblock %} + +{% block content %} +

    {{ summary }}

    +
    + {% if description %} +

    {% filter linebreaksbr %}{% trans description %}{% endfilter %}

    + {% endif %} +
    + + + + + + + + + + {% for field in fields|dictsort:"name" %} + + + + + + {% endfor %} + +
    FieldTypeDescription
    {{ field.name }}{{ field.data_type }}{{ field.verbose }}{% if field.help_text %} - {{ field.help_text|safe }}{% endif %}
    +
    + ‹ Back to Models Documentation +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_doc/model_index.html b/app/lib/grappelli/templates/admin_doc/model_index.html new file mode 100644 index 0000000..84a93f3 --- /dev/null +++ b/app/lib/grappelli/templates/admin_doc/model_index.html @@ -0,0 +1,45 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block javascripts %} + {{ block.super }} + +{% endblock %} + +{% block bodyclass %}documentation model-index{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} + +{% block title %}Models{% endblock %} + +{% block content %} +

    Model documentation

    + {% regroup models by app_label as grouped_models %} +
    +
    +
    +

    Model groups

    + +
    +
    +
    + {% for group in grouped_models %} +
    +

    {{ group.grouper|capfirst }}

    + + {% for model in group.list %} + + + + {% endfor %} +
    {{ model.object_name }}
    +
    + {% endfor %} +
    +
    +{% endblock %} \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin_doc/template_detail.html b/app/lib/grappelli/templates/admin_doc/template_detail.html new file mode 100644 index 0000000..52935dd --- /dev/null +++ b/app/lib/grappelli/templates/admin_doc/template_detail.html @@ -0,0 +1,21 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block bodyclass %}documentation{% endblock %} +{% block breadcrumbs %}{% endblock %} + +{% block title %}Template: {{ name }}{% endblock %} + +{% block content %} +

    Template: "{{ name }}"

    + {% regroup templates|dictsort:"site_id" by site as templates_by_site %} + {% for group in templates_by_site %} +

    Search path for template "{{ name }}" on {{ group.grouper }}:

    +
      + {% for template in group.list|dictsort:"order" %} +
    1. {{ template.file }}{% if not template.exists %} (does not exist){% endif %}
    2. + {% endfor %} +
    + {% endfor %} +

    ‹ Back to Documentation

    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_doc/template_filter_index.html b/app/lib/grappelli/templates/admin_doc/template_filter_index.html new file mode 100644 index 0000000..434679b --- /dev/null +++ b/app/lib/grappelli/templates/admin_doc/template_filter_index.html @@ -0,0 +1,47 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block javascripts %} + {{ block.super }} + +{% endblock %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}Template filters{% endblock %} + +{% block content %} +

    Template filter documentation

    +
    +
    + {% regroup filters|dictsort:"library" by library as filter_libraries %} + {% for library in filter_libraries %} +
    +

    {% firstof library.grouper "Built-in filters" %}

    +
      + {% for filter in library.list|dictsort:"name" %} +
    • {{ filter.name }}
    • + {% endfor %} +
    +
    + {% endfor %} +
    +
    + {% regroup filters|dictsort:"library" by library as filter_libraries %} + {% for library in filter_libraries %} +
    +

    {% firstof library.grouper "Built-in filters" %}

    + {% if library.grouper %}

    To use these filters, put {% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %} in your template before using the filter.

    {% endif %} + {% for filter in library.list|dictsort:"name" %} +
    +

    {{ filter.name }}

    +

    {{ filter.title }}

    +

    {{ filter.body }}

    +
    + {% endfor %} +
    + {% endfor %} +
    +
    +{% endblock %} + diff --git a/app/lib/grappelli/templates/admin_doc/template_tag_index.html b/app/lib/grappelli/templates/admin_doc/template_tag_index.html new file mode 100644 index 0000000..703b2b2 --- /dev/null +++ b/app/lib/grappelli/templates/admin_doc/template_tag_index.html @@ -0,0 +1,48 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block javascripts %} + {{ block.super }} + +{% endblock %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}Template tags{% endblock %} + +{% block content %} +

    Template tag documentation

    +
    +
    + {% regroup tags|dictsort:"library" by library as tag_libraries %} + {% for library in tag_libraries %} +
    +

    {% firstof library.grouper "Built-in tags" %}

    +
      + {% for tag in library.list|dictsort:"name" %} +
    • {{ tag.name }}
    • + {% endfor %} +
    +
    + {% endfor %} +
    +
    + {% regroup tags|dictsort:"library" by library as tag_libraries %} + {% for library in tag_libraries %} +
    +

    {% firstof library.grouper "Built-in tags" %}

    + {% if library.grouper %}

    To use these tags, put {% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %} in your template before using the tag.

    {% endif %} + {% for tag in library.list|dictsort:"name" %} +
    +

    {{ tag.name }}

    +

    {{ tag.title }}

    +

    {{ tag.body }}

    +
    + {% endfor %} +
    + {% endfor %} +
    +
    +{% endblock %} + + diff --git a/app/lib/grappelli/templates/admin_doc/view_detail.html b/app/lib/grappelli/templates/admin_doc/view_detail.html new file mode 100644 index 0000000..900d3ed --- /dev/null +++ b/app/lib/grappelli/templates/admin_doc/view_detail.html @@ -0,0 +1,30 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}View: {{ name }}{% endblock %} + +{% block content %} +

    {{ name }}

    +
    +
    +

    {{ summary }}

    +

    {{ body }}

    + {% if meta.Context %} +
    +

    Context:

    +

    {{ meta.Context }}

    +
    + {% endif %} + {% if meta.Templates %} +
    +

    Templates:

    +

    {{ meta.Templates }}

    +
    + {% endif %} +
    + ‹ Back to Views Documentation +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_doc/view_index.html b/app/lib/grappelli/templates/admin_doc/view_index.html new file mode 100644 index 0000000..b3c941c --- /dev/null +++ b/app/lib/grappelli/templates/admin_doc/view_index.html @@ -0,0 +1,46 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia %} +{% load i18n %} +{% block javascripts %} + {{ block.super }} + +{% endblock %} +{% block bodyclass %}documentation{% endblock %} +{% block content-class %}content-grid{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}Views{% endblock %} + +{% block content %} +

    View documentation

    + {% regroup views|dictsort:"site_id" by site as views_by_site %} +
    +
    +
    +

    Jump to site

    + +
    +
    +
    + {% for site_views in views_by_site %} +
    +

    Views by URL on {{ site_views.grouper.name }}

    + {% for view in site_views.list|dictsort:"url" %} + {% ifchanged %} +
    +

    {{ view.url }}

    +

    View function: {{ view.module }}.{{ view.name }}

    +

    {{ view.title }}

    +
    + {% endifchanged %} + {% endfor %} +
    + {% endfor %} +
    +
    +{% endblock %} + + diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/css.html b/app/lib/grappelli/templates/admin_tools/dashboard/css.html new file mode 100644 index 0000000..0c69fd1 --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/css.html @@ -0,0 +1,2 @@ +{% for css in css_files %} +{% endfor %} diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/dashboard.html b/app/lib/grappelli/templates/admin_tools/dashboard/dashboard.html new file mode 100644 index 0000000..76aaa1e --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/dashboard.html @@ -0,0 +1,79 @@ +{% load i18n admin_tools_dashboard_tags %} + + + + + +{% if dashboard.Media.js %} + {% for js in dashboard.Media.js %} + + {% endfor %} +{% endif %} + +
    +
    + {% for module in dashboard.children %} + {% if "column_1" in module.css_classes %} + {% admin_tools_render_dashboard_module module forloop.counter %} + {% endif %} + {% endfor %} +
    +
    + {% for module in dashboard.children %} + {% if "column_2" in module.css_classes %} + {% admin_tools_render_dashboard_module module forloop.counter %} + {% endif %} + {% endfor %} +
    +
    + {% for module in dashboard.children %} + {% if "column_3" in module.css_classes %} + {% admin_tools_render_dashboard_module module forloop.counter %} + {% endif %} + {% endfor %} +
    +
    diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/dashboard.txt b/app/lib/grappelli/templates/admin_tools/dashboard/dashboard.txt new file mode 100644 index 0000000..4417070 --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/dashboard.txt @@ -0,0 +1,141 @@ +from django.utils.translation import ugettext_lazy as _ +from django.core.urlresolvers import reverse +from admin_tools.dashboard import modules, Dashboard, AppIndexDashboard + +# to activate your index dashboard add the following to your settings.py: +# +# ADMIN_TOOLS_INDEX_DASHBOARD = '{{ project }}.{{ file }}.CustomIndexDashboard' + +class CustomIndexDashboard(Dashboard): + """ + Custom index dashboard for {{ project }}. + """ + def __init__(self, **kwargs): + Dashboard.__init__(self, **kwargs) + + # append a link list module for "quick links" + #self.children.append(modules.LinkList( + # title=_('Quick links'), + # layout='inline', + # draggable=False, + # deletable=False, + # collapsible=False, + # children=[ + # { + # 'title': _('Return to site'), + # 'url': '/', + # }, + # { + # 'title': _('Change password'), + # 'url': reverse('admin:password_change'), + # }, + # { + # 'title': _('Log out'), + # 'url': reverse('admin:logout') + # }, + # ] + #)) + + self.children.append(modules.LinkList( + column=1, + title=_('Media Management'), + children=[ + { + 'title': _('Django FileBrowser'), + 'url': '/admin/filebrowser/browse/', + 'external': False, + }, + ] + )) + + # append an app list module for "Administration" + self.children.append(modules.AppList( + title=_('Administration'), + include_list=('django.contrib',), + css_classes=['collapse', 'open'], + )) + + # append an app list module for "Applications" + self.children.append(modules.AppList( + title=_('Applications'), + exclude_list=('django.contrib',), + css_classes=['collapse', 'open'], + )) + + # append a recent actions module + self.children.append(modules.RecentActions( + column=2, + title=_('Recent Actions'), + limit=5 + )) + + # append a feed module + self.children.append(modules.Feed( + column=2, + title=_('Latest Django News'), + feed_url='http://www.djangoproject.com/rss/weblog/', + limit=5 + )) + + # append another link list module for "support". + self.children.append(modules.LinkList( + column=2, + title=_('Support'), + children=[ + { + 'title': _('Django documentation'), + 'url': 'http://docs.djangoproject.com/', + 'external': True, + }, + { + 'title': _('Django "django-users" mailing list'), + 'url': 'http://groups.google.com/group/django-users', + 'external': True, + }, + { + 'title': _('Django irc channel'), + 'url': 'irc://irc.freenode.net/django', + 'external': True, + }, + ] + )) + + def init_with_context(self, context): + """ + Use this method if you need to access the request context. + """ + pass + + +# to activate your app index dashboard add the following to your settings.py: +# +# ADMIN_TOOLS_APP_INDEX_DASHBOARD = '{{ project }}.{{ file }}.CustomAppIndexDashboard' + +class CustomAppIndexDashboard(AppIndexDashboard): + """ + Custom app index dashboard for {{ project }}. + """ + def __init__(self, *args, **kwargs): + AppIndexDashboard.__init__(self, *args, **kwargs) + + # we disable title because its redundant with the model list module + self.title = '' + + # append a model list module + self.children.append(modules.ModelList( + title=_(self.app_title), + models=self.models, + )) + + # append a recent actions module + self.children.append(modules.RecentActions( + column=2, + title=_('Recent Actions'), + include_list=self.get_app_content_types(), + )) + + def init_with_context(self, context): + """ + Use this method if you need to access the request context. + """ + pass diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/dashboard_app_index.txt b/app/lib/grappelli/templates/admin_tools/dashboard/dashboard_app_index.txt new file mode 100644 index 0000000..0574dfc --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/dashboard_app_index.txt @@ -0,0 +1,29 @@ +from django.utils.translation import ugettext_lazy as _ +from django.core.urlresolvers import reverse +from admin_tools.dashboard import modules, AppIndexDashboard + +# create your custom modules here if you want, for example: +# +# class CustomDashboardModule(modules.DashboardModule): +# pass +# +{% if warning %} +# WARNING: you've changed the default file name 'dashboard.py' to '{{ file }}.py', +# so, you will need to tell django-admin-tools about this, just add this line +# to your settings.py file: +# ADMIN_TOOLS_APP_INDEX_DASHBOARD_MODULE = '{{ file }}' +{% endif %} +# Your {{ app }} dashboard class +class {{ app|capfirst }}Dashboard(AppIndexDashboard): + """ + Document your custom app index dashboard. + """ + def __init__(self, app_title, models, *args, **kwargs): + super(CustomAppIndexDashboard, self).__init__(*args, **kwargs) + + # append your modules here, example: + # self.append(modules.RecentActionsDashboardModule( + # title=_('Recent Actions'), + # limit=5, + # include_list=models, + # )) diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/dummy.html b/app/lib/grappelli/templates/admin_tools/dashboard/dummy.html new file mode 100644 index 0000000..f04fcf5 --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/dummy.html @@ -0,0 +1 @@ +{% extends template %} diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/module.html b/app/lib/grappelli/templates/admin_tools/dashboard/module.html new file mode 100644 index 0000000..85f55f8 --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/module.html @@ -0,0 +1,7 @@ +{% if not module.is_empty %} + {% block module_content %} + {% for child in module.children %} + {{ child }} + {% endfor %} + {% endblock %} +{% endif %} diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/modules/app_list.html b/app/lib/grappelli/templates/admin_tools/dashboard/modules/app_list.html new file mode 100644 index 0000000..8cbd4a7 --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/modules/app_list.html @@ -0,0 +1,58 @@ +{% extends "admin_tools/dashboard/module.html" %} +{% load i18n %} +{% block module_content %} +
    + + {% if module.title %} + {% if subindex %} +

    {{ module.title }}

    + {% else %} +

    {{ module.title }}

    + {% endif %} + {% endif %} + +{% spaceless %} + {% if module.pre_content %} +

    {{ module.pre_content }}

    + {% endif %} + {% for child in module.children %} + +
    + {% if subindex %} +

    {{ child.title }}

    + {% else %} +

    {{ child.title }}

    + {% endif %} + + {% for model in child.models %} +
    + {% if model.change_url %} + {{ model.title }} + {% else %} + {{ model.title }} + {% endif %} + {% if model.add_url or model.change_url %} + + {% endif %} +
    + {% endfor %} + +
    + {% endfor %} + {% if module.post_content %} +

    {{ module.post_content }}

    + {% endif %} +{% endspaceless %} +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/modules/column.html b/app/lib/grappelli/templates/admin_tools/dashboard/modules/column.html new file mode 100644 index 0000000..8df8268 --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/modules/column.html @@ -0,0 +1,9 @@ +{% extends "dashboard/module.html" %} +{% load i18n admin_tools_dashboard_tags %} +{% block module_content %} +
    + {% for child in module.children %} + {% admin_tools_render_dashboard_module child forloop.counter %} + {% endfor %} +
    +{% endblock %} \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/modules/feed.html b/app/lib/grappelli/templates/admin_tools/dashboard/modules/feed.html new file mode 100644 index 0000000..3deec4e --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/modules/feed.html @@ -0,0 +1,21 @@ +{% extends "admin_tools/dashboard/module.html" %} +{% block module_content %} +{% if subindex %} +
    +

    {{ module.title }}

    +{% else %} +
    +

    {{ module.title }}

    +{% endif %} +
      + {% spaceless %} + {% for child in module.children %} +
    • + {% if child.date %}{{ child.date|date }} {% endif %} + {% if child.warning %}{{ child.title }}{% else %}{{ child.title }}{% endif %} +
    • + {% endfor %} + {% endspaceless %} +
    +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/modules/group.html b/app/lib/grappelli/templates/admin_tools/dashboard/modules/group.html new file mode 100644 index 0000000..144c82f --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/modules/group.html @@ -0,0 +1,33 @@ +{% extends "admin_tools/dashboard/module.html" %} +{% load admin_tools_dashboard_tags %} +{% block module_content %} +
    + {% spaceless %} + {% if module.title %} +

    {{ module.title }}

    + {% endif %} + {% ifequal module.display "tabs" %} +
    +
      + {% for sub_module in module.children %} + {% if not sub_module.is_empty %}{% endif %} + {% endfor %} +
    + {% for sub_module in module.children %} + {% admin_tools_render_dashboard_module sub_module index forloop.counter %} + {% endfor %} +
    + {% endifequal %} + {% ifequal module.display "accordion" %} + {% for sub_module in module.children %} + {% if not sub_module.is_empty %}{{ sub_module.title }}{% endif %} + {% admin_tools_render_dashboard_module sub_module index forloop.counter %} + {% endfor %} + {% else %} + + {% endifequal %} + + + {% endspaceless %} +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/modules/link_list.html b/app/lib/grappelli/templates/admin_tools/dashboard/modules/link_list.html new file mode 100644 index 0000000..97b357e --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/modules/link_list.html @@ -0,0 +1,21 @@ +{% extends "admin_tools/dashboard/module.html" %} +{% block module_content %} + +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/modules/model_list.html b/app/lib/grappelli/templates/admin_tools/dashboard/modules/model_list.html new file mode 100644 index 0000000..7431f8f --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/modules/model_list.html @@ -0,0 +1,26 @@ +{% extends "admin_tools/dashboard/module.html" %} +{% load i18n %} +{% block module_content %} +
    + {% if module.title %} + {% if subindex %} +

    {{ module.title }}

    + {% else %} +

    {{ module.title }}

    + {% endif %} + {% endif %} + + {% for child in module.children %} +
    + {% if child.change_url %}{{ child.title }}{% else %}{{ child.title }}{% endif %} + + {% if child.add_url or child.change_url %} + + {% endif %} +
    + {% endfor %} +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/modules/module_group.html b/app/lib/grappelli/templates/admin_tools/dashboard/modules/module_group.html new file mode 100644 index 0000000..8e0f256 --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/modules/module_group.html @@ -0,0 +1,10 @@ +{% extends "dashboard/module.html" %} +{% load i18n admin_tools_dashboard_tags %} +{% block module_content %} +
    +

    {{ module.title }}

    + {% for sub_module in module.children %} + {% admin_tools_render_dashboard_module sub_module forloop.counter %} + {% endfor %} +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/modules/recent_actions.html b/app/lib/grappelli/templates/admin_tools/dashboard/modules/recent_actions.html new file mode 100644 index 0000000..0b7bb9e --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/modules/recent_actions.html @@ -0,0 +1,26 @@ +{% extends "admin_tools/dashboard/module.html" %} +{% load i18n %} +{% block module_content %} +{% if subindex %} +
    +

    {% trans 'Recent Actions' %}

    +
    +

    {% trans 'My Actions' %}

    +{% else %} +
    +

    {% trans 'Recent Actions' %}

    +
    +

    {% trans 'My Actions' %}

    +{% endif %} + {% if module.children %} + + {% else %} +

    {% trans 'None Available' %}

    + {% endif %} +
    +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_tools/dashboard/preferences_form.html b/app/lib/grappelli/templates/admin_tools/dashboard/preferences_form.html new file mode 100644 index 0000000..7da463a --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/dashboard/preferences_form.html @@ -0,0 +1,10 @@ +{% extends "admin/base_site.html" %} + +{% block content %} + +
    + {{ form.as_p }} +

    +
    + +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_tools/menu/add_bookmark_form.html b/app/lib/grappelli/templates/admin_tools/menu/add_bookmark_form.html new file mode 100644 index 0000000..e0fcf2a --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/menu/add_bookmark_form.html @@ -0,0 +1,9 @@ +{% url admin-tools-menu-add-bookmark as form_url %} +{% if form_url %} +
    + + + + +
    +{% endif %} diff --git a/app/lib/grappelli/templates/admin_tools/menu/css.html b/app/lib/grappelli/templates/admin_tools/menu/css.html new file mode 100644 index 0000000..71aefdb --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/menu/css.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/lib/grappelli/templates/admin_tools/menu/delete_confirm.html b/app/lib/grappelli/templates/admin_tools/menu/delete_confirm.html new file mode 100644 index 0000000..e32a678 --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/menu/delete_confirm.html @@ -0,0 +1,13 @@ +{% extends "admin/base_site.html" %} + +{% block content %} + +

    Are you sure you want to delete this bookmark?

    + +

    {{ bookmark.name }} - {{ bookmark.url }}

    + +
    +

    +
    + +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_tools/menu/dummy.html b/app/lib/grappelli/templates/admin_tools/menu/dummy.html new file mode 100644 index 0000000..f04fcf5 --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/menu/dummy.html @@ -0,0 +1 @@ +{% extends template %} diff --git a/app/lib/grappelli/templates/admin_tools/menu/form.html b/app/lib/grappelli/templates/admin_tools/menu/form.html new file mode 100644 index 0000000..7da463a --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/menu/form.html @@ -0,0 +1,10 @@ +{% extends "admin/base_site.html" %} + +{% block content %} + +
    + {{ form.as_p }} +

    +
    + +{% endblock %} diff --git a/app/lib/grappelli/templates/admin_tools/menu/item.html b/app/lib/grappelli/templates/admin_tools/menu/item.html new file mode 100644 index 0000000..9bf8bbd --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/menu/item.html @@ -0,0 +1,15 @@ +{% load admin_tools_menu_tags %} +{% spaceless %} +{% if not item.is_empty %} + +{% endif %} +{% endspaceless %} diff --git a/app/lib/grappelli/templates/admin_tools/menu/menu.html b/app/lib/grappelli/templates/admin_tools/menu/menu.html new file mode 100644 index 0000000..f43dc23 --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/menu/menu.html @@ -0,0 +1,64 @@ +{% load i18n admin_tools_menu_tags %} +{% if menu.children %} + + + {% comment %} + {% for item in menu.children %} + + {% endfor %} + {% endcomment %} + {% for item in menu.children %} + + {% ifequal item.css_classes|join:' ' "bookmark" %} + {% if bookmark %} + {% include "admin_tools/menu/remove_bookmark_form.html" %} + {% else %} + {% include "admin_tools/menu/add_bookmark_form.html" %} + {% endif %} + {% endifequal %} + {% endfor %} +{% endif %} diff --git a/app/lib/grappelli/templates/admin_tools/menu/menu.txt b/app/lib/grappelli/templates/admin_tools/menu/menu.txt new file mode 100644 index 0000000..72d20da --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/menu/menu.txt @@ -0,0 +1,32 @@ +from django.core.urlresolvers import reverse +from django.utils.translation import ugettext_lazy as _ +from admin_tools.menu import items, Menu + +# to activate your custom menu add the following to your settings.py: +# +# ADMIN_TOOLS_MENU = '{{ project }}.{{ file }}.CustomMenu' + +class CustomMenu(Menu): + """ + Custom Menu for {{ project }} admin site. + """ + def __init__(self, **kwargs): + Menu.__init__(self, **kwargs) + self.children.append(items.MenuItem( + title=_('Dashboard'), + url=reverse('admin:index') + )) + self.children.append(items.AppList( + title=_('Applications'), + models=('add.your.app.models.here',) + )) + self.children.append(items.AppList( + title=_('Administration'), + models=('django.contrib',) + )) + + def init_with_context(self, context): + """ + Use this method if you need to access the request context. + """ + pass diff --git a/app/lib/grappelli/templates/admin_tools/menu/remove_bookmark_form.html b/app/lib/grappelli/templates/admin_tools/menu/remove_bookmark_form.html new file mode 100644 index 0000000..7d9567f --- /dev/null +++ b/app/lib/grappelli/templates/admin_tools/menu/remove_bookmark_form.html @@ -0,0 +1,7 @@ +{% url admin-tools-menu-remove-bookmark bookmark.id as form_url %} +{% if form_url %} +
    + + +
    +{% endif %} diff --git a/app/lib/grappelli/templates/grappelli/index.html b/app/lib/grappelli/templates/grappelli/index.html new file mode 100644 index 0000000..c0a4469 --- /dev/null +++ b/app/lib/grappelli/templates/grappelli/index.html @@ -0,0 +1,3 @@ +{% extends 'admin/base_site.html' %} + +hallo \ No newline at end of file diff --git a/app/lib/grappelli/templates/registration/logged_out.html b/app/lib/grappelli/templates/registration/logged_out.html new file mode 100644 index 0000000..31e9db4 --- /dev/null +++ b/app/lib/grappelli/templates/registration/logged_out.html @@ -0,0 +1,18 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} +{% block content-class %}content-flexible{% endblock %} + +{% block breadcrumbs %}{% comment %}{% endcomment %}{% endblock %} +{% block content_title %} {% endblock %} + +{% block content %} +
    +
    +

    {{ title }}. {% trans 'Log in again' %}

    + {% comment %}
    +

    {{ title }},

    + +
    {% endcomment %} +
    +
    +{% endblock %} diff --git a/app/lib/grappelli/templates/registration/password_change_done.html b/app/lib/grappelli/templates/registration/password_change_done.html new file mode 100644 index 0000000..bfd01ab --- /dev/null +++ b/app/lib/grappelli/templates/registration/password_change_done.html @@ -0,0 +1,24 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} +{% block userlinks %} + {% url django-admindocs-docroot as docsroot %} + {% if docsroot %} +
  • + {% trans 'Documentation' %} +
  • + {% endif %} +
  • + {% trans 'Change password' %} +
  • +
  • + {% trans 'Log out' %} +
  • +{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block title %}{% trans 'Password change successful' %}{% endblock %} +{% block content %} +

    {% trans 'Password change successful' %}

    +

    {% trans 'Your password was changed.' %}

    +{% endblock %} diff --git a/app/lib/grappelli/templates/registration/password_change_form.html b/app/lib/grappelli/templates/registration/password_change_form.html new file mode 100644 index 0000000..e4d175f --- /dev/null +++ b/app/lib/grappelli/templates/registration/password_change_form.html @@ -0,0 +1,60 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} {# grp_csrf #} +{% block userlinks %} +{% url django-admindocs-docroot as docsroot %}{% if docsroot %} +
  • + {% trans 'Documentation' %} +
  • +{% endif %} +
  • + {% trans 'Change password' %} +
  • +
  • + {% trans 'Log out' %} +
  • +{% endblock %} +{% block breadcrumbs %}{% endblock %} +{% block title %}{% trans 'Password change' %}{% endblock %} +{% block content-class %}content-grid{% endblock %} + +{% block content %} + +

    {% trans 'Password change' %}

    + +
    +
    +

    {% trans "Please enter your old password, for securitys sake, and then enter your new password twice so we can verify you typed it in correctly." %}

    +
    {% csrf_token %} +
    +
    +
    +
    + {{ form.old_password }} + {{ form.old_password.errors }} +
    +
    +
    +
    +
    + {{ form.new_password1 }} + {{ form.new_password1.errors }} +
    +
    +
    +
    +
    + {{ form.new_password2 }} + {{ form.new_password2.errors }} +
    +
    +
    +
    +
      +
    • +
    +
    +
    +
    +
    + +{% endblock %} diff --git a/app/lib/grappelli/templates/registration/password_reset_complete.html b/app/lib/grappelli/templates/registration/password_reset_complete.html new file mode 100644 index 0000000..5b14a54 --- /dev/null +++ b/app/lib/grappelli/templates/registration/password_reset_complete.html @@ -0,0 +1,12 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block breadcrumbs %}{% endblock %} + +{% block title %}{% trans 'Password reset complete' %}{% endblock %} + +{% block content %} +

    {% trans 'Password reset complete' %}

    +

    {% trans "Your password has been set. You may go ahead and log in now." %}

    +

    {% trans 'Log in' %}

    +{% endblock %} \ No newline at end of file diff --git a/app/lib/grappelli/templates/registration/password_reset_confirm.html b/app/lib/grappelli/templates/registration/password_reset_confirm.html new file mode 100644 index 0000000..6aad70f --- /dev/null +++ b/app/lib/grappelli/templates/registration/password_reset_confirm.html @@ -0,0 +1,23 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} {# grp_csrf #} + +{% block breadcrumbs %}{% endblock %} + +{% block title %}{% trans 'Password reset' %}{% endblock %} + +{% block content %} + {% if validlink %} +

    {% trans 'Enter new password' %}

    +

    {% trans "Please enter your new password twice so we can verify you typed it in correctly." %}

    +
    {% csrf_token %} + {{ form.new_password1.errors }} +

    {{ form.new_password1 }}

    + {{ form.new_password2.errors }} +

    {{ form.new_password2 }}

    +

    +
    + {% else %} +

    {% trans 'Password reset unsuccessful' %}

    +

    {% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %} + {% endif %} +{% endblock %} diff --git a/app/lib/grappelli/templates/registration/password_reset_done.html b/app/lib/grappelli/templates/registration/password_reset_done.html new file mode 100644 index 0000000..a009281 --- /dev/null +++ b/app/lib/grappelli/templates/registration/password_reset_done.html @@ -0,0 +1,11 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block breadcrumbs %}

    {% endblock %} + +{% block title %}{% trans 'Password reset successful' %}{% endblock %} + +{% block content %} +

    {% trans 'Password reset successful' %}

    +

    {% trans "We've e-mailed a new password to the e-mail address you submitted. You should be receiving it shortly." %}

    +{% endblock %} diff --git a/app/lib/grappelli/templates/registration/password_reset_email.html b/app/lib/grappelli/templates/registration/password_reset_email.html new file mode 100644 index 0000000..4e4bd6d --- /dev/null +++ b/app/lib/grappelli/templates/registration/password_reset_email.html @@ -0,0 +1,15 @@ +{% load i18n %}{% autoescape off %} +{% trans "You're receiving this e-mail because you requested a password reset" %} +{% blocktrans %}for your user account at {{ site_name }}{% endblocktrans %}. + +{% trans "Please go to the following page and choose a new password:" %} +{% block reset_link %} +{{ protocol }}://{{ domain }}{% url django.contrib.auth.views.password_reset_confirm uidb36=uid, token=token %} +{% endblock %} +{% trans "Your username, in case you've forgotten:" %} {{ user.username }} + +{% trans "Thanks for using our site!" %} + +{% blocktrans %}The {{ site_name }} team{% endblocktrans %} + +{% endautoescape %} diff --git a/app/lib/grappelli/templates/registration/password_reset_form.html b/app/lib/grappelli/templates/registration/password_reset_form.html new file mode 100644 index 0000000..7933280 --- /dev/null +++ b/app/lib/grappelli/templates/registration/password_reset_form.html @@ -0,0 +1,15 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} {# grp_csrf #} + +{% block breadcrumbs %}{% endblock %} + +{% block title %}{% trans "Password reset" %}{% endblock %} + +{% block content %} +

    {% trans "Password reset" %}

    +

    {% trans "Forgotten your password? Enter your e-mail address below, and we'll reset your password and e-mail the new one to you." %}

    +
    {% csrf_token %} + {% if form.email.errors %}{{ form.email.errors }}{% endif %} +

    {{ form.email }}

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