Commits

Anonymous committed 71f5daf

improved templates (in progress)

Comments (0)

Files changed (2)

admin_tools/dashboard/templates/admin_tools/dashboard/modules/app_list.html

 {% extends "admin_tools/dashboard/module.html" %}
 {% load i18n %}
 {% block module_content %}
-<div class="group {% for item in module.css_classes %}{{ item }} {% endfor %}">
-    <h2>{{ module.title }}</h2>
+<div class="module {% for item in module.css_classes %}{{ item }} {% endfor %}">
+    <h3>{{ module.title }}</h2>
 {% spaceless %}
         {% if module.pre_content %}
             <p>{{ module.pre_content }}</p>
     {% for child in module.children %}
     
     <div class="module">
-        <h3><a href="{{ child.url }}">{{ child.title }}</a></h3>
+        <h4><a href="{{ child.url }}">{{ child.title }}</a></h3>
         {% for model in child.models %}
             <div class="row">
                 {% if model.change_url %}

admin_tools/dashboard/templates/admin_tools/dashboard/modules/group.html

 {% extends "admin_tools/dashboard/module.html" %}
 {% load admin_tools_dashboard_tags %}
 {% block module_content %}
-<div class="group group-{{ module.display }}">
+<div class="group">
     {% spaceless %}
-    {% ifequal module.display "tabs" %}
-    <ul>
-    {% for sub_module in module.children %}
-        <li class="group-tabs-link"><a href="#module_{{ index }}_{{ forloop.counter }}">{{ sub_module.title }}</a></li>
-    {% endfor %}
-    </ul>
-    {% endifequal %}
-    {% ifequal module.display "accordion" %}
-    {% for sub_module in module.children %}
-        <span class="group-accordion-header"><a href="#">{{ sub_module.title }}</a></span>
-        {% admin_tools_render_dashboard_module sub_module index forloop.counter %}
-    {% endfor %}
-    {% else %}
+    <h2>{{ module.title }}</h2>
+    
     {% for sub_module in module.children %}
         {% admin_tools_render_dashboard_module sub_module index forloop.counter %}
     {% endfor %}
-    {% endifequal %}
+    
     {% endspaceless %}
 </div>
 {% endblock %}