diff options
author | luxagraf <sng@luxagraf.net> | 2010-10-23 19:46:20 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2010-10-23 19:46:20 -0400 |
commit | c59a2a69fb38b92b6c45bcf7431d2b1a3c5dce3c (patch) | |
tree | 2fc44ca867839d5e591e21467b6e4526f7a9f080 /lib/grappelli/templates/admin/_grappelli_admin_tools | |
parent | ed77da873e675f02f12cbab9be27f342f825444b (diff) |
added grappelli, filebrowser, chunks and tagging to lcal repo
Diffstat (limited to 'lib/grappelli/templates/admin/_grappelli_admin_tools')
4 files changed, 188 insertions, 0 deletions
diff --git a/lib/grappelli/templates/admin/_grappelli_admin_tools/app_index.html b/lib/grappelli/templates/admin/_grappelli_admin_tools/app_index.html new file mode 100644 index 0000000..bc896be --- /dev/null +++ b/lib/grappelli/templates/admin/_grappelli_admin_tools/app_index.html @@ -0,0 +1,20 @@ +{% extends "admin/_grappelli_admin_tools/index.html" %} +{% load i18n admin_tools_dashboard_tags %} + +<!-- BREADCRUMBS --> +{% if not is_popup %} + {% block breadcrumbs %} + <div id="breadcrumbs"><a href="../"> + {% trans "Home" %}</a> › + {% for app in app_list %} + {% trans app.name %} + {% endfor %} + </div> + {% endblock %} +{% endif %} + +{% block content %} + {% admin_tools_render_dashboard 'app_index' %} +{% endblock %} + +{% block sidebar %}{% endblock %} diff --git a/lib/grappelli/templates/admin/_grappelli_admin_tools/base.html b/lib/grappelli/templates/admin/_grappelli_admin_tools/base.html new file mode 100644 index 0000000..742273a --- /dev/null +++ b/lib/grappelli/templates/admin/_grappelli_admin_tools/base.html @@ -0,0 +1,125 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}> +<head> + <title>{% block title %}{% endblock %}</title> + {% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %} + + <!-- LOADING --> + {% load theming_tags adminmedia i18n grp_tags %} + + <!-- STYLESHEETS --> + {% block stylesheets %} + <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/base.css" /> + {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %} + <link rel="stylesheet" href="{% admin_media_prefix %}jquery/ui/css/custom-theme/jquery-ui-1.8.custom.css" type="text/css" media="screen" title="no title" charset="utf-8"> + <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/jquery-ui-grappelli-extensions.css" /> + {% endblock %} + + {% block extrastyle %}{% endblock %} + + <!-- JAVASCRIPTS --> + {% block javascripts %} + <script type="text/javascript"> + // GLOBALS + // TODO: klemens: drop ADMIN_URL + var ADMIN_URL = "{% url admin:index %}", + MODEL_URL_ARRAY = {% get_content_types %}, + DATE_FORMAT = "{% get_date_format %}", + TIME_FORMAT = "{% get_time_format %}", + DATETIME_FORMAT = "{% get_datetime_format %}"; + </script> + <script type="text/javascript" src="{% admin_media_prefix %}jquery/jquery-1.4.2.min.js"></script> + <script type="text/javascript" src="{% admin_media_prefix %}jquery/ui/js/jquery-ui-1.8.custom.min.js"></script> + <script type="text/javascript" src="{% admin_media_prefix %}js/grappelli.init.js"></script> + <script type="text/javascript" src="{% admin_media_prefix %}js/grappelli.timepicker.js"></script> + <script type="text/javascript" src="{% admin_media_prefix %}js/grappelli.RelatedObjectLookups.js"></script> + <script type="text/javascript" src="{% admin_media_prefix %}js/grappelli.min.js"></script> + {% endblock %} + + {% block extrahead %}{% endblock %} +</head> +<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}"> + <div id="container"> + + <!-- HEADER --> + {% if not is_popup %} + <div id="header"> + <div class="branding">{% block branding %}{% endblock %}</div> + <!-- Title --> + <div class="admin-title">{% if grappelli_admin_title %}{{ grappelli_admin_title }}{% else %}{% get_admin_title %}{% endif %}</div> + {% if user.is_active and user.is_staff %} + <ul id="user-tools"> + <!-- Username --> + <li class="user-options-container collapse closed"> + <a href="javascript://" class="user-options-handler collapse-handler">{% firstof user.first_name user.username %}</a> + <ul class="user-options"> + <!-- Change Password --> + {% url admin:password_change as password_change_url %} + {% if password_change_url %} + <li><a href="{{ password_change_url }}"> + {% else %} + <li><a href="{{ root_path }}password_change/"> + {% endif %} + {% trans 'Change password' %}</a></li> + <!-- Logout --> + {% url admin:logout as logout_url %} + {% if logout_url %} + <li><a href="{{ logout_url }}"> + {% else %} + <li><a href="{{ root_path }}logout/"> + {% endif %} + {% trans 'Log out' %}</a></li> + </ul> + </li> + <!-- Userlinks --> + {% block userlinks %} + <!-- JS tests --> + {% url test-index as testindexurl %} + {% if testindexurl %} + <li><a href="{{ testindexurl }}">{% trans 'Tests' %}</a></li> + {% endif %} + <!-- Documentation --> + {% url django-admindocs-docroot as docsroot %} + {% if docsroot %} + <li><a href="{{ docsroot }}">{% trans 'Documentation' %}</a></li> + {% endif %} + {% endblock %} + </ul> + {% endif %} + {% block nav-global %}{% endblock %} + </div> + + <!-- BREADCRUMBS --> + {% block breadcrumbs %} + <div id="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} › {{ title }}{% endif %}</div> + {% endblock %} + {% endif %} + + <!-- MESSAGES --> + {% if messages %} + <ul class="messagelist"> + {% for message in messages %} + <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li> + {% endfor %} + </ul> + {% endif %} + + <!-- CONTENT --> + <div id="content" class="{% block content-class %}{% endblock %}"> + {% block pretitle %}{% endblock %} + {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %} + {% block object-tools %}{% endblock %} + {% block content %} + {{ content }} + {% block filters %}{% endblock %} + {% endblock %} + <br class="clear" /> + </div> + + <!-- FOOTER --> + {% block footer %}<div id="footer"></div>{% endblock %} + + </div> +</body> +</html> + diff --git a/lib/grappelli/templates/admin/_grappelli_admin_tools/base_site.html b/lib/grappelli/templates/admin/_grappelli_admin_tools/base_site.html new file mode 100644 index 0000000..0012bb6 --- /dev/null +++ b/lib/grappelli/templates/admin/_grappelli_admin_tools/base_site.html @@ -0,0 +1,25 @@ +{% extends "admin/_grappelli_admin_tools/base.html" %} +{% load i18n admin_tools_menu_tags %} + +{% block title %}{{ title }} | {% trans 'Django site admin' %}{% endblock %} + +{% block extrastyle %} + {{ block.super }} + {% if user.is_active and user.is_staff %} + {% if not is_popup %} + {% admin_tools_render_menu_css %} + {% endif %} + {% endif %} +{% endblock %} + +{% block branding %} + <h1 id="site-name">{% trans 'Django administration' %}</h1> +{% endblock %} + +{% block nav-global %} + {% if user.is_active and user.is_staff %} + {% if not is_popup %} + {% admin_tools_render_menu %} + {% endif %} + {% endif %} +{% endblock %} diff --git a/lib/grappelli/templates/admin/_grappelli_admin_tools/index.html b/lib/grappelli/templates/admin/_grappelli_admin_tools/index.html new file mode 100644 index 0000000..2f3bb13 --- /dev/null +++ b/lib/grappelli/templates/admin/_grappelli_admin_tools/index.html @@ -0,0 +1,18 @@ +{% extends "admin/_grappelli_admin_tools/base_site.html" %} +{% load i18n admin_tools_dashboard_tags %} + +{% block extrastyle %} +{{ block.super }} +{% block dashboard_css %}{% admin_tools_render_dashboard_css %}{% endblock %} +{% endblock %} + +<!-- COLTYPE/BODYCLASS --> +{% block bodyclass %}admin-tools dashboard{% endblock %} +{% block content-class %}content-grid{% endblock %} + +{% block breadcrumbs %}<div id="breadcrumbs">{% trans "Home" %}</div>{% endblock %} +{% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %} + +{% block content %} + {% admin_tools_render_dashboard %} +{% endblock %} |