diff options
Diffstat (limited to 'app/lib/grappelli/templates/admin_tools/menu/item.html')
-rw-r--r-- | app/lib/grappelli/templates/admin_tools/menu/item.html | 15 |
1 files changed, 15 insertions, 0 deletions
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 %} + <li class="menu-item{% if item.children %} parent{% if index %} collapse closed{% else %} item-collapse item-closed{% endif %}{% endif %}{% if not item.enabled %} disabled{% endif %}{% if selected %} selected{% endif %}{% if forloop.last %} last{% endif %}{% if item.css_classes %} {{ item.css_classes|join:' ' }}{% endif %}"> + <a href="{% if item.url and item.enabled %}{{ item.url }}{% else %}#{% endif %}" class="{% if item.children %}parent{% if index %} collapse-handler{% else %} item-collapse-handler-container{% endif %}{% endif %}" {% if item.description %} title="{{ item.description }}"{% endif %}{% if item.accesskey %} accesskey="{{ item.accesskey }}"{% endif %}>{{ item.title }}</a>{% if item.children %}{% if not index %}<a href="javascript://" class="icon item-collapse-handler"></a>{% endif %}{% endif %} + {% if item.children %} + <ul> + {% for child_item in item.children %} + {% admin_tools_render_menu_item child_item %} + {% endfor %} + </ul> + {% endif %} + </li> +{% endif %} +{% endspaceless %} |