summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Jean Louis <izimobil@gmail.com>2014-08-11 14:59:27 (GMT)
committerDavid Jean Louis <izimobil@gmail.com>2014-08-11 14:59:27 (GMT)
commit524e44b5956b27e4e31c0fc7bb5a9be33bd85f4a (patch)
tree5194d1f8e9c8da4c107b01c6bcf2930aad577110
parent1cec582819e678a5ef3b84e436866d0945bc3585 (diff)
parentdd183306e3f7919fd666d55b0c75dcd030593bb8 (diff)
downloaddjango-admin-tools-524e44b5956b27e4e31c0fc7bb5a9be33bd85f4a.zip
django-admin-tools-524e44b5956b27e4e31c0fc7bb5a9be33bd85f4a.tar.gz
django-admin-tools-524e44b5956b27e4e31c0fc7bb5a9be33bd85f4a.tar.bz2
Merged in andybak/django-admin-tools/andybak/add-some-blocks-to-facilitate-template-i-1400407170114 (pull request #29)
Add some blocks to facilitate template inheritance
-rw-r--r--admin_tools/dashboard/templates/admin_tools/dashboard/dashboard.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/admin_tools/dashboard/templates/admin_tools/dashboard/dashboard.html b/admin_tools/dashboard/templates/admin_tools/dashboard/dashboard.html
index cb50d39..b1c5727 100644
--- a/admin_tools/dashboard/templates/admin_tools/dashboard/dashboard.html
+++ b/admin_tools/dashboard/templates/admin_tools/dashboard/dashboard.html
@@ -1,5 +1,7 @@
{% load i18n admin_tools_dashboard_tags %}
{% load url from future %}
+
+{% block dashboard_scripts %}
<script type="text/javascript" src="{{ media_url }}/admin_tools/js/utils.js"></script>
<script type="text/javascript" charset="utf-8">
@@ -47,11 +49,15 @@
});
});
</script>
+{% endblock %}
+{% block dashboard_title %}
{% if dashboard.title %}
<h1 class="dashboard-title">{{ dashboard.title }}</h1>
{% endif %}
+{% endblock %}
+{% block dashboard_panel %}
<div id="dashboard-panel">
<h3><a href="#">{% trans "Modules" %}</a></h3>
{% if has_disabled_modules %}
@@ -66,7 +72,11 @@
</ul>
{% endif %}
</div>
+{% endblock %}
+
+{% block dashboard_container %}
<div id="{{ dashboard.get_id }}" class="dashboard-container">
{% for module in dashboard.children %}
{% admin_tools_render_dashboard_module module %}{% endfor %}
</div>
+{% endblock %} \ No newline at end of file