From efb623af0bcb47d510501c282e1326b11343a29c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 22 Sep 2012 22:27:04 -0400 Subject: site reorg --- .../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 ++++++++++ 8 files changed, 204 insertions(+) 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 (limited to 'app/lib/grappelli/templates/admin_tools/dashboard/modules') 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 %} -- cgit v1.2.3-70-g09d2