diff options
author | luxagraf <sng@luxagraf.net> | 2012-09-22 22:27:04 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2012-09-22 22:27:04 -0400 |
commit | efb623af0bcb47d510501c282e1326b11343a29c (patch) | |
tree | 3a35fb19f5eba3b219c65277a5fb712cbe9604ac /app/lib/grappelli/templates/admin_tools/dashboard/modules/group.html | |
parent | 0b481fd7931c2ae20ca21f89a87f2ba6a6c01e10 (diff) |
site reorg
Diffstat (limited to 'app/lib/grappelli/templates/admin_tools/dashboard/modules/group.html')
-rw-r--r-- | app/lib/grappelli/templates/admin_tools/dashboard/modules/group.html | 33 |
1 files changed, 33 insertions, 0 deletions
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 %} +<div class="group group-{{ module.display }} {% for item in module.css_classes %}{{ item }} {% endfor %}"> + {% spaceless %} + {% if module.title %} + <h2>{{ module.title }}</h2> + {% endif %} + {% ifequal module.display "tabs" %} + <div class="group-{{ module.display }}-container"> + <ul> + {% for sub_module in module.children %} + {% if not sub_module.is_empty %}<li class="group-tabs-link"><a href="#module_{{ index }}_{{ forloop.counter }}">{{ sub_module.title }}</a></li>{% endif %} + {% endfor %} + </ul> + {% for sub_module in module.children %} + {% admin_tools_render_dashboard_module sub_module index forloop.counter %} + {% endfor %} + </div> + {% endifequal %} + {% ifequal module.display "accordion" %} + {% for sub_module in module.children %} + {% if not sub_module.is_empty %}<span class="group-accordion-header"><a href="#">{{ sub_module.title }}</a></span>{% endif %} + {% admin_tools_render_dashboard_module sub_module index forloop.counter %} + {% endfor %} + {% else %} + + {% endifequal %} + + + {% endspaceless %} +</div> +{% endblock %} |