summaryrefslogtreecommitdiff
path: root/app/lib/grappelli/templates/admin_tools/menu
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/grappelli/templates/admin_tools/menu')
-rw-r--r--app/lib/grappelli/templates/admin_tools/menu/add_bookmark_form.html9
-rw-r--r--app/lib/grappelli/templates/admin_tools/menu/css.html1
-rw-r--r--app/lib/grappelli/templates/admin_tools/menu/delete_confirm.html13
-rw-r--r--app/lib/grappelli/templates/admin_tools/menu/dummy.html1
-rw-r--r--app/lib/grappelli/templates/admin_tools/menu/form.html10
-rw-r--r--app/lib/grappelli/templates/admin_tools/menu/item.html15
-rw-r--r--app/lib/grappelli/templates/admin_tools/menu/menu.html64
-rw-r--r--app/lib/grappelli/templates/admin_tools/menu/menu.txt32
-rw-r--r--app/lib/grappelli/templates/admin_tools/menu/remove_bookmark_form.html7
9 files changed, 0 insertions, 152 deletions
diff --git a/app/lib/grappelli/templates/admin_tools/menu/add_bookmark_form.html b/app/lib/grappelli/templates/admin_tools/menu/add_bookmark_form.html
deleted file mode 100644
index e0fcf2a..0000000
--- a/app/lib/grappelli/templates/admin_tools/menu/add_bookmark_form.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{% url admin-tools-menu-add-bookmark as form_url %}
-{% if form_url %}
- <form id="bookmark-form" action="{{ form_url }}" method="POST">
- <input type="hidden" name="next" value="{% firstof url request.get_full_path|urlencode %}" />
- <input type="hidden" name="url" value="{% firstof url request.get_full_path|urlencode %}" />
- <input type="hidden" name="title" value="{{ title }}" />
- <button id="bookmark-button" type="submit"></button>
- </form>
-{% endif %}
diff --git a/app/lib/grappelli/templates/admin_tools/menu/css.html b/app/lib/grappelli/templates/admin_tools/menu/css.html
deleted file mode 100644
index 71aefdb..0000000
--- a/app/lib/grappelli/templates/admin_tools/menu/css.html
+++ /dev/null
@@ -1 +0,0 @@
-<!-- admin_tools/menu/css.html --> \ No newline at end of file
diff --git a/app/lib/grappelli/templates/admin_tools/menu/delete_confirm.html b/app/lib/grappelli/templates/admin_tools/menu/delete_confirm.html
deleted file mode 100644
index e32a678..0000000
--- a/app/lib/grappelli/templates/admin_tools/menu/delete_confirm.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% extends "admin/base_site.html" %}
-
-{% block content %}
-
-<p>Are you sure you want to delete this bookmark?</p>
-
-<p>{{ bookmark.name }} - {{ bookmark.url }}</p>
-
-<form action="." method="POST">
- <p><input type="submit" value="Delete" /></p>
-</form>
-
-{% endblock %}
diff --git a/app/lib/grappelli/templates/admin_tools/menu/dummy.html b/app/lib/grappelli/templates/admin_tools/menu/dummy.html
deleted file mode 100644
index f04fcf5..0000000
--- a/app/lib/grappelli/templates/admin_tools/menu/dummy.html
+++ /dev/null
@@ -1 +0,0 @@
-{% extends template %}
diff --git a/app/lib/grappelli/templates/admin_tools/menu/form.html b/app/lib/grappelli/templates/admin_tools/menu/form.html
deleted file mode 100644
index 7da463a..0000000
--- a/app/lib/grappelli/templates/admin_tools/menu/form.html
+++ /dev/null
@@ -1,10 +0,0 @@
-{% extends "admin/base_site.html" %}
-
-{% block content %}
-
-<form action="." method="POST">
- {{ form.as_p }}
- <p><input type="submit" value="Save" /></p>
-</form>
-
-{% endblock %}
diff --git a/app/lib/grappelli/templates/admin_tools/menu/item.html b/app/lib/grappelli/templates/admin_tools/menu/item.html
deleted file mode 100644
index 9bf8bbd..0000000
--- a/app/lib/grappelli/templates/admin_tools/menu/item.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{% 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 %}
diff --git a/app/lib/grappelli/templates/admin_tools/menu/menu.html b/app/lib/grappelli/templates/admin_tools/menu/menu.html
deleted file mode 100644
index f43dc23..0000000
--- a/app/lib/grappelli/templates/admin_tools/menu/menu.html
+++ /dev/null
@@ -1,64 +0,0 @@
-{% load i18n admin_tools_menu_tags %}
-{% if menu.children %}
- <script type="text/javascript" src="{{ media_url }}/admin_tools/js/utils.js"></script>
- <script type="text/javascript" charset="utf-8">
- // Load js files syncronously and conditionally
- var js_files = [
- {
- src : '{{ media_url }}/admin_tools/js/jquery/jquery.min.js',
- test: function() { return typeof(jQuery) == 'undefined'; }
- },
- {
- src : '{{ media_url }}/admin_tools/js/json.min.js',
- test: function() { return typeof(JSON.stringify) == 'undefined'; }
- },
- {
- src : '{{ media_url }}/admin_tools/js/menu.js',
- test: function() { return true; }
- }{% for js in menu.Media.js %},
- {
- src : '{{ media_url }}/{{ js }}',
- test: function() { return true; }
- }{% endfor %}
- ];
- loadScripts(js_files, function(){
- jQuery(function($) {
- {% if has_bookmark_item %}
- process_bookmarks(
- "{{ request.get_full_path }}",
- "{{ title }}",
- "{% trans 'Please enter a name for the bookmark' %}"
- );
- {% endif %}
- });
- });
- </script>
- {% comment %}
- {% for item in menu.children %}
- <ul class="navigation-menu">
- {% admin_tools_render_menu_item item forloop.counter %}
- {% ifequal item.css_classes|join:' ' "bookmark" %}
- <li class="actions">
- {% if bookmark %}
- {% include "admin_tools/menu/remove_bookmark_form.html" %}
- {% else %}
- {% include "admin_tools/menu/add_bookmark_form.html" %}
- {% endif %}
- </li>
- {% endifequal %}
- </ul>
- {% endfor %}
- {% endcomment %}
- {% for item in menu.children %}
- <ul class="navigation-menu">
- {% admin_tools_render_menu_item item forloop.counter %}
- </ul>
- {% ifequal item.css_classes|join:' ' "bookmark" %}
- {% if bookmark %}
- {% include "admin_tools/menu/remove_bookmark_form.html" %}
- {% else %}
- {% include "admin_tools/menu/add_bookmark_form.html" %}
- {% endif %}
- {% endifequal %}
- {% endfor %}
-{% endif %}
diff --git a/app/lib/grappelli/templates/admin_tools/menu/menu.txt b/app/lib/grappelli/templates/admin_tools/menu/menu.txt
deleted file mode 100644
index 72d20da..0000000
--- a/app/lib/grappelli/templates/admin_tools/menu/menu.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-from django.core.urlresolvers import reverse
-from django.utils.translation import ugettext_lazy as _
-from admin_tools.menu import items, Menu
-
-# to activate your custom menu add the following to your settings.py:
-#
-# ADMIN_TOOLS_MENU = '{{ project }}.{{ file }}.CustomMenu'
-
-class CustomMenu(Menu):
- """
- Custom Menu for {{ project }} admin site.
- """
- def __init__(self, **kwargs):
- Menu.__init__(self, **kwargs)
- self.children.append(items.MenuItem(
- title=_('Dashboard'),
- url=reverse('admin:index')
- ))
- self.children.append(items.AppList(
- title=_('Applications'),
- models=('add.your.app.models.here',)
- ))
- self.children.append(items.AppList(
- title=_('Administration'),
- models=('django.contrib',)
- ))
-
- def init_with_context(self, context):
- """
- Use this method if you need to access the request context.
- """
- pass
diff --git a/app/lib/grappelli/templates/admin_tools/menu/remove_bookmark_form.html b/app/lib/grappelli/templates/admin_tools/menu/remove_bookmark_form.html
deleted file mode 100644
index 7d9567f..0000000
--- a/app/lib/grappelli/templates/admin_tools/menu/remove_bookmark_form.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{% url admin-tools-menu-remove-bookmark bookmark.id as form_url %}
-{% if form_url %}
-<form id="bookmark-form" action="{{ form_url }}" method="POST">
- <input type="hidden" name="next" value="{% firstof url request.get_full_path|urlencode %}" />
- <button id="bookmark-button" class="bookmarked" type="submit"></button>
-</form>
-{% endif %}