]> git.parisson.com Git - mezzo.git/commitdiff
mv admin templates
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 17 Aug 2016 14:33:21 +0000 (16:33 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 17 Aug 2016 14:33:21 +0000 (16:33 +0200)
14 files changed:
app/templates/admin/base_site.html [new file with mode: 0644]
app/templates/admin/includes/app_list.html [new file with mode: 0644]
app/templates/admin/includes/content_typed_change_list.html [new file with mode: 0644]
app/templates/admin/includes/dropdown_menu.html [new file with mode: 0644]
app/templates/admin/includes/recent_actions.html [new file with mode: 0644]
app/templates/admin/index.html [new file with mode: 0644]
app/templates/admin/login.html [new file with mode: 0644]
app/templates/core/admin/base_site.html [deleted file]
app/templates/core/admin/includes/app_list.html [deleted file]
app/templates/core/admin/includes/content_typed_change_list.html [deleted file]
app/templates/core/admin/includes/dropdown_menu.html [deleted file]
app/templates/core/admin/includes/recent_actions.html [deleted file]
app/templates/core/admin/index.html [deleted file]
app/templates/core/admin/login.html [deleted file]

diff --git a/app/templates/admin/base_site.html b/app/templates/admin/base_site.html
new file mode 100644 (file)
index 0000000..c8bfbc5
--- /dev/null
@@ -0,0 +1,77 @@
+{% extends "admin/base.html" %}
+{% load mezzanine_tags i18n staticfiles %}
+
+{% block title %}{{ title }} | Mezzanine{% endblock %}
+
+{% block extrahead %}
+<link rel="stylesheet" href="{% static "mezzanine/css/admin/global.css" %}">
+<style>
+    /* These are set in PageAdmin's view methods, and mezzanine.utils.admin.SingletonAdmin */
+    {% if hide_delete_link or singleton %}.submit-row .deletelink {display:none !important;}{% endif %}
+    {% if hide_slug_field %}.slug {display:none !important;}{% endif %}
+    {% if singleton %}.change-view-save-another {display:none !important;}{% endif %}
+</style>
+<script>
+    {% url "static_proxy" as static_proxy_url %}
+    {% url "fb_browse" as fb_browse_url %}
+    {% url "displayable_links_js" as link_list_url %}
+    {% url "admin:index" as admin_index_url %}
+    {% get_current_language as LANGUAGE_CODE %}
+    window.__home_link = '<a href="{% url "home" %}">{% trans "View site" %}</a>';
+    window.__csrf_token = '{{ csrf_token }}';
+    window.__admin_keywords_submit_url = '{% url "admin_keywords_submit" %}';
+    window.__filebrowser_url = '{{ fb_browse_url }}';
+    window.__link_list_url = '{{ link_list_url }}';
+    window.__tinymce_css = '{% static "mezzanine/css/tinymce.css" %}';
+    window.__admin_url = '{{ admin_index_url }}';
+    window.__static_proxy = '{{ static_proxy_url }}';
+    window.__admin_media_prefix__ = '{% static "admin" %}/';
+    window.__grappelli_installed = {{ settings.GRAPPELLI_INSTALLED|lower }};
+    window.__admin_menu_collapsed = {{ settings.ADMIN_MENU_COLLAPSED|lower }};
+    window.__language_code = '{{ LANGUAGE_CODE }}';
+</script>
+c
+{% if not settings.GRAPPELLI_INSTALLED %}
+<script src="{% static "mezzanine/js/"|add:settings.JQUERY_FILENAME %}"></script>
+{% endif %}
+
+<script>
+jQuery(function($) {
+    $('.admin-title').click(function() {location = window.__admin_url;});
+    // This line can be removed after a decent amount of time has passed since
+    // https://github.com/stephenmcd/grappelli-safe/pull/56/files occurring.
+    $("#id_sitepermissions-__prefix__-sites").parent().parent().parent().remove();
+});
+</script>
+
+{% endblock %}
+
+{% block rtl_styles %}
+{{ block.super }}
+<link rel="stylesheet" type="text/css" href="{% static "mezzanine/css/admin/rtl.css" %}" />
+{% endblock %}
+
+{% block before_content %}
+{% if user.is_staff and not is_popup and not request.GET.pop %}
+{% admin_dropdown_menu %}
+{% endif %}
+{% endblock %}
+
+{% block footer %}
+{% if form.this_is_the_login_form %}
+    <script src="{% static "mezzanine/js/admin/login.js" %}"></script>
+{% else %}
+    {% if user.is_staff %}
+        {% if not is_popup and not request.GET.pop %}
+        <link rel="stylesheet" href="{% static "mezzanine/chosen/chosen.css" %}">
+        <script src="{% static "mezzanine/chosen/chosen-0.9.12.jquery.js" %}"></script>
+        <script src="{% static "mezzanine/js/admin/navigation.js" %}"></script>
+
+        {% endif %}
+        <script src="{% static "mezzanine/js/admin/ajax_csrf.js" %}"></script>
+        {% if settings.GRAPPELLI_INSTALLED %}
+        <script src="{% static "mezzanine/js/admin/collapse_backport.js" %}"></script>
+        {% endif %}
+    {% endif %}
+{% endif %}
+{% endblock %}
diff --git a/app/templates/admin/includes/app_list.html b/app/templates/admin/includes/app_list.html
new file mode 100644 (file)
index 0000000..7d20d3d
--- /dev/null
@@ -0,0 +1,37 @@
+{% load i18n %}
+
+{% if app_list %}
+<div class="group-collapsible">
+   {% for app in dashboard_app_list %}
+   <div class="module" id="app_{{ app.name|lower }}">
+       <table>
+           <caption>{% trans app.name %}</caption>
+           {% for model in app.models %}
+           <tr class="model-{{ model.object_name|lower }}">
+           {% if model.perms.change or model.perms.custom %}
+               <th scope="row" width="100%"><a
+                    href="{{ model.admin_url }}">{{ model.name }}</a></th>
+           {% else %}
+               <th scope="row" width="100%">{{ model.name }}</th>
+           {% endif %}
+
+           {% if model.perms.add %}
+               <td><a href="{{ model.add_url }}"
+                    class="addlink">{% trans 'Add' %}</a></td>
+           {% else %}
+               <td>&nbsp;</td>
+           {% endif %}
+
+           {% if model.perms.change %}
+               <td><a href="{{ model.admin_url }}"
+                    class="changelink">{% trans 'Change' %}</a></td>
+           {% else %}
+               <td>&nbsp;</td>
+           {% endif %}
+           </tr>
+           {% endfor %}
+       </table>
+   </div>
+   {% endfor %}
+</div>
+{% endif %}
diff --git a/app/templates/admin/includes/content_typed_change_list.html b/app/templates/admin/includes/content_typed_change_list.html
new file mode 100644 (file)
index 0000000..d78a185
--- /dev/null
@@ -0,0 +1,32 @@
+{% load pages_tags i18n %}
+
+<script type="text/javascript">
+jQuery(function($) {
+    $('.addlist').change(function() {
+        var addUrl = this[this.selectedIndex].value;
+        // If the browser's back button is hit from the add interface,
+        // the browser may maintain the state of the select list in the
+        // list interface, in which case the previously selected option
+        // will still be selected. This would mean the first option
+        // (eg "Add ..."") could be selected, which contains no URL to
+        // redirect to, so we guard against that, also set selectedIndex
+        // back to zero, to also protect against this scenario.
+        if (addUrl) {
+            location.href = addUrl;
+            this.selectedIndex = 0;
+        }
+    });
+});
+</script>
+
+<div id="addlist-primary">
+    <select class="addlist">
+        <option value="">{% trans "Add" %} ...</option>
+        {% for model in content_models %}
+          {% set_model_permissions model %}
+          {% if model.perms.add %}
+            <option value="{{ model.add_url }}">{{ model.meta_verbose_name|capfirst }}</option>
+          {% endif %}
+        {% endfor %}
+    </select>
+</div>
diff --git a/app/templates/admin/includes/dropdown_menu.html b/app/templates/admin/includes/dropdown_menu.html
new file mode 100644 (file)
index 0000000..1d3153c
--- /dev/null
@@ -0,0 +1,45 @@
+{% load i18n mezzanine_tags %}
+<div id="side-panel">
+<div class="dropdown-menu">
+<ul>
+    {% for app in dropdown_menu_app_list %}
+    <li>
+        <a href="#">{% trans app.name %}</a>
+        <ul class="dropdown-menu-menu">
+        {% for model in app.models %}
+            {% if model.perms.add or model.perms.change or model.perms.custom %}
+            <li{% if forloop.first %} class="first"{% endif %}><a
+                href="{% if not model.perms.change and not model.perms.custom %}{{ model.add_url }}{% else %}{{ model.admin_url }}{% endif %}">{{ model.name }}</a></li>
+            {% endif %}
+        {% endfor %}
+        </ul>
+    </li>
+    {% endfor %}
+</ul>
+
+{% if settings.USE_L10N and LANGUAGES|length > 1 %}
+{% get_language_info_list for LANGUAGES as languages %}
+<form>
+    <select id="id_language" onchange="window.location.href=this.value;">
+        {% for lang in languages %}
+        <option{% if LANGUAGE_CODE == lang.code %} selected="selected"{% endif %} value="{% translate_url lang.code %}">{{ lang.name_local }}</option>
+        {% endfor %}
+    </select>
+</form>
+{% endif %}
+
+{% if dropdown_menu_sites and dropdown_menu_sites|length > 1 %}
+<form action="{% url "set_site" %}">
+<input type="hidden" name="next" value="{{ request.path }}">
+<select name="site_id" onchange="this.form.submit();">
+{% for site in dropdown_menu_sites %}
+<option value="{{ site.id }}"
+    {% if site.id == dropdown_menu_selected_site_id %} selected{% endif %}
+    >{{ site }}</option>
+{% endfor %}
+</select>
+</form>
+{% endif %}
+</div>
+<div id="side-panel-toggle"></div>
+</div>
diff --git a/app/templates/admin/includes/recent_actions.html b/app/templates/admin/includes/recent_actions.html
new file mode 100644 (file)
index 0000000..c075b91
--- /dev/null
@@ -0,0 +1,18 @@
+{% load i18n %}
+
+<div class="module" id="recent-actions-module">
+    <h2>{% trans 'Recent Actions' %}</h2>
+    <h3>{% trans 'My Actions' %}</h3>
+        {% load log %}
+        {% get_admin_log 10 as admin_log for_user user %}
+        {% if not admin_log %}
+        <p>{% trans 'None available' %}</p>
+        {% else %}
+        <ul class="actionlist" style="margin:0;">
+        {% for entry in admin_log %}
+        <li style="list-style-type:none;" class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">{% if not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr }}{% if not entry.is_deletion %}</a>{% endif %}<br /><span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span></li>
+        {% endfor %}
+        </ul>
+        {% endif %}
+</div>
+
diff --git a/app/templates/admin/index.html b/app/templates/admin/index.html
new file mode 100644 (file)
index 0000000..22d2ca4
--- /dev/null
@@ -0,0 +1,26 @@
+{% extends "admin/base_site.html" %}
+
+{% load i18n mezzanine_tags staticfiles %}
+
+{% block extrahead %}
+{{ block.super }}
+<link rel="stylesheet" href="{% static settings.MEZZANINE_ADMIN_PREFIX|add:"css/dashboard.css" %}">
+<link rel="stylesheet" href="{% static "mezzanine/css/admin/dashboard.css" %}">
+<!--[if IE 7]><style>.dashboard #content {padding-top: 80px;}</style><![endif]-->
+{% endblock %}
+
+{% block coltype %}colMS{% endblock %}
+{% block bodyclass %}dashboard{% endblock %}
+
+{% block breadcrumbs %}<div class="breadcrumbs">{% trans "Home" %}</div>{% endblock %}
+
+{% block content_title %}<h1>{% trans "Dashboard" %}</h1>{% endblock %}
+
+{% block content %}<div id="content-main">{% dashboard_column 0 %}</div>{% endblock %}
+
+{% block sidebar %}
+    <div id="content-related" class="dashboard1">{% dashboard_column 2 %}</div>
+    {% block extendedsidebar %}
+    <div id="content-related" class="dashboard2">{% dashboard_column 1 %}</div>
+    {% endblock %}
+{% endblock %}
diff --git a/app/templates/admin/login.html b/app/templates/admin/login.html
new file mode 100644 (file)
index 0000000..d9a670e
--- /dev/null
@@ -0,0 +1,71 @@
+{% extends "admin/base_site.html" %}
+{% load i18n staticfiles %}
+
+{% block extrahead %}
+<link rel="stylesheet" type="text/css" href="{% static settings.MEZZANINE_ADMIN_PREFIX|add:"css/login.css" %}">
+{{ block.super }}
+<link rel="stylesheet" href="{% static "mezzanine/chosen/chosen.css" %}">
+<script src="{% static "mezzanine/chosen/chosen-0.9.12.jquery.js" %}"></script>
+<script> jQuery(function($) {$('select').chosen();}); </script>
+{% endblock %}
+
+{% block bodyclass %}login{% endblock %}
+{% block content_title %}{% endblock %}
+{% block breadcrumbs %}{% endblock %}
+
+{% block content %}
+
+{% if form.non_field_errors %}
+{% for error in form.non_field_errors %}
+<p class="errornote">{{ error }}</p>
+{% endfor %}
+{% endif %}
+{% if no_site_permission %}
+<p class="errornote">{% trans "You don't have permission to access the admin for this site." %}</p>
+{% endif %}
+
+<form action="{{ app_path }}" method="post" id="login-form">
+    {% csrf_token %}
+    <div id="content-main">
+        <div class="form-row">
+            <label for="id_username" class="required">{% trans 'Username or email:' %}</label>
+            <input type="text" required name="username" id="id_username" value="{{ request.POST.username }}">
+        </div>
+        <div class="form-row">
+            <label for="id_password" class="required">{% trans 'Password:' %}</label>
+            <input type="password" required  name="password" id="id_password">
+            <input type="hidden" name="this_is_the_login_form" value="1" />
+        </div>
+        {% if settings.USE_L10N and LANGUAGES|length > 1 %}
+        {% get_language_info_list for LANGUAGES as languages %}
+        <div class="form-row">
+            <label for="id_language" class="required">{% trans "Language" %}:</label>
+            <select id="id_language" onchange="window.location.href=this.value;">
+                {% for lang in languages %}
+                {% language lang.code %}
+                <option{% if LANGUAGE_CODE == lang.code %} selected="selected"{% endif %} value="{% url 'admin:index' %}">{{ lang.name_local }}</option>
+                {% endlanguage %}
+                {% endfor %}
+            </select>
+        </div>
+        {% endif %}
+        <div class="form-row" id="extra-login-fields">
+            <label class="required">{% trans "Interface:" %}</label>
+            <input class="interface" type="radio" name="mezzanine_login_interface" id="interface_admin"
+                value="admin"{% if request.REQUEST.mezzanine_login_interface != "site" %} checked{% endif %} />
+            <label class="interface" for="interface_admin">{% trans "Admin" %}</label>
+            <input class="interface" type="radio" name="mezzanine_login_interface" id="interface_site"
+                value="site"{% if request.REQUEST.mezzanine_login_interface == "site" %} checked{% endif %} />
+            <label class="interface" for="interface_site">{% trans "Site" %}</label>
+        </div>
+    </div>
+    <div class="submit-row">
+        <label>&nbsp;</label><input type="submit" value="{% trans 'Log in' %}" />
+    </div>
+    <p id="forgot-password">
+        <a href="{% url "password_reset" %}">{% trans "Forgot password?" %}</a>
+    </p>
+</form>
+
+{% endblock %}
+
diff --git a/app/templates/core/admin/base_site.html b/app/templates/core/admin/base_site.html
deleted file mode 100644 (file)
index eb23ab2..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-{% extends "admin/base.html" %}
-{% load mezzanine_tags i18n staticfiles %}
-
-{% block title %}{{ title }} | Mezzanine{% endblock %}
-
-{% block extrahead %}
-<link rel="stylesheet" href="{% static "mezzanine/css/admin/global.css" %}">
-<style>
-    /* These are set in PageAdmin's view methods, and mezzanine.utils.admin.SingletonAdmin */
-    {% if hide_delete_link or singleton %}.submit-row .deletelink {display:none !important;}{% endif %}
-    {% if hide_slug_field %}.slug {display:none !important;}{% endif %}
-    {% if singleton %}.change-view-save-another {display:none !important;}{% endif %}
-</style>
-<script>
-    {% url "static_proxy" as static_proxy_url %}
-    {% url "fb_browse" as fb_browse_url %}
-    {% url "displayable_links_js" as link_list_url %}
-    {% url "admin:index" as admin_index_url %}
-    {% get_current_language as LANGUAGE_CODE %}
-    window.__home_link = '<a href="{% url "home" %}">{% trans "View site" %}</a>';
-    window.__csrf_token = '{{ csrf_token }}';
-    window.__admin_keywords_submit_url = '{% url "admin_keywords_submit" %}';
-    window.__filebrowser_url = '{{ fb_browse_url }}';
-    window.__link_list_url = '{{ link_list_url }}';
-    window.__tinymce_css = '{% static "mezzanine/css/tinymce.css" %}';
-    window.__admin_url = '{{ admin_index_url }}';
-    window.__static_proxy = '{{ static_proxy_url }}';
-    window.__admin_media_prefix__ = '{% static "admin" %}/';
-    window.__grappelli_installed = {{ settings.GRAPPELLI_INSTALLED|lower }};
-    window.__admin_menu_collapsed = {{ settings.ADMIN_MENU_COLLAPSED|lower }};
-    window.__language_code = '{{ LANGUAGE_CODE }}';
-</script>
-
-{% if not settings.GRAPPELLI_INSTALLED %}
-<script src="{% static "mezzanine/js/"|add:settings.JQUERY_FILENAME %}"></script>
-{% endif %}
-
-<script>
-jQuery(function($) {
-    $('.admin-title').click(function() {location = window.__admin_url;});
-    // This line can be removed after a decent amount of time has passed since
-    // https://github.com/stephenmcd/grappelli-safe/pull/56/files occurring.
-    $("#id_sitepermissions-__prefix__-sites").parent().parent().parent().remove();
-});
-</script>
-
-{% endblock %}
-
-{% block rtl_styles %}
-{{ block.super }}
-<link rel="stylesheet" type="text/css" href="{% static "mezzanine/css/admin/rtl.css" %}" />
-{% endblock %}
-
-{% block before_content %}
-{% if user.is_staff and not is_popup and not request.GET.pop %}
-{% admin_dropdown_menu %}
-{% endif %}
-{% endblock %}
-
-{% block footer %}
-{% if form.this_is_the_login_form %}
-    <script src="{% static "mezzanine/js/admin/login.js" %}"></script>
-{% else %}
-    {% if user.is_staff %}
-        {% if not is_popup and not request.GET.pop %}
-        <link rel="stylesheet" href="{% static "mezzanine/chosen/chosen.css" %}">
-        <script src="{% static "mezzanine/chosen/chosen-0.9.12.jquery.js" %}"></script>
-        <script src="{% static "mezzanine/js/admin/navigation.js" %}"></script>
-
-        {% endif %}
-        <script src="{% static "mezzanine/js/admin/ajax_csrf.js" %}"></script>
-        {% if settings.GRAPPELLI_INSTALLED %}
-        <script src="{% static "mezzanine/js/admin/collapse_backport.js" %}"></script>
-        {% endif %}
-    {% endif %}
-{% endif %}
-{% endblock %}
diff --git a/app/templates/core/admin/includes/app_list.html b/app/templates/core/admin/includes/app_list.html
deleted file mode 100644 (file)
index 7d20d3d..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-{% load i18n %}
-
-{% if app_list %}
-<div class="group-collapsible">
-   {% for app in dashboard_app_list %}
-   <div class="module" id="app_{{ app.name|lower }}">
-       <table>
-           <caption>{% trans app.name %}</caption>
-           {% for model in app.models %}
-           <tr class="model-{{ model.object_name|lower }}">
-           {% if model.perms.change or model.perms.custom %}
-               <th scope="row" width="100%"><a
-                    href="{{ model.admin_url }}">{{ model.name }}</a></th>
-           {% else %}
-               <th scope="row" width="100%">{{ model.name }}</th>
-           {% endif %}
-
-           {% if model.perms.add %}
-               <td><a href="{{ model.add_url }}"
-                    class="addlink">{% trans 'Add' %}</a></td>
-           {% else %}
-               <td>&nbsp;</td>
-           {% endif %}
-
-           {% if model.perms.change %}
-               <td><a href="{{ model.admin_url }}"
-                    class="changelink">{% trans 'Change' %}</a></td>
-           {% else %}
-               <td>&nbsp;</td>
-           {% endif %}
-           </tr>
-           {% endfor %}
-       </table>
-   </div>
-   {% endfor %}
-</div>
-{% endif %}
diff --git a/app/templates/core/admin/includes/content_typed_change_list.html b/app/templates/core/admin/includes/content_typed_change_list.html
deleted file mode 100644 (file)
index d78a185..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-{% load pages_tags i18n %}
-
-<script type="text/javascript">
-jQuery(function($) {
-    $('.addlist').change(function() {
-        var addUrl = this[this.selectedIndex].value;
-        // If the browser's back button is hit from the add interface,
-        // the browser may maintain the state of the select list in the
-        // list interface, in which case the previously selected option
-        // will still be selected. This would mean the first option
-        // (eg "Add ..."") could be selected, which contains no URL to
-        // redirect to, so we guard against that, also set selectedIndex
-        // back to zero, to also protect against this scenario.
-        if (addUrl) {
-            location.href = addUrl;
-            this.selectedIndex = 0;
-        }
-    });
-});
-</script>
-
-<div id="addlist-primary">
-    <select class="addlist">
-        <option value="">{% trans "Add" %} ...</option>
-        {% for model in content_models %}
-          {% set_model_permissions model %}
-          {% if model.perms.add %}
-            <option value="{{ model.add_url }}">{{ model.meta_verbose_name|capfirst }}</option>
-          {% endif %}
-        {% endfor %}
-    </select>
-</div>
diff --git a/app/templates/core/admin/includes/dropdown_menu.html b/app/templates/core/admin/includes/dropdown_menu.html
deleted file mode 100644 (file)
index 1d3153c..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-{% load i18n mezzanine_tags %}
-<div id="side-panel">
-<div class="dropdown-menu">
-<ul>
-    {% for app in dropdown_menu_app_list %}
-    <li>
-        <a href="#">{% trans app.name %}</a>
-        <ul class="dropdown-menu-menu">
-        {% for model in app.models %}
-            {% if model.perms.add or model.perms.change or model.perms.custom %}
-            <li{% if forloop.first %} class="first"{% endif %}><a
-                href="{% if not model.perms.change and not model.perms.custom %}{{ model.add_url }}{% else %}{{ model.admin_url }}{% endif %}">{{ model.name }}</a></li>
-            {% endif %}
-        {% endfor %}
-        </ul>
-    </li>
-    {% endfor %}
-</ul>
-
-{% if settings.USE_L10N and LANGUAGES|length > 1 %}
-{% get_language_info_list for LANGUAGES as languages %}
-<form>
-    <select id="id_language" onchange="window.location.href=this.value;">
-        {% for lang in languages %}
-        <option{% if LANGUAGE_CODE == lang.code %} selected="selected"{% endif %} value="{% translate_url lang.code %}">{{ lang.name_local }}</option>
-        {% endfor %}
-    </select>
-</form>
-{% endif %}
-
-{% if dropdown_menu_sites and dropdown_menu_sites|length > 1 %}
-<form action="{% url "set_site" %}">
-<input type="hidden" name="next" value="{{ request.path }}">
-<select name="site_id" onchange="this.form.submit();">
-{% for site in dropdown_menu_sites %}
-<option value="{{ site.id }}"
-    {% if site.id == dropdown_menu_selected_site_id %} selected{% endif %}
-    >{{ site }}</option>
-{% endfor %}
-</select>
-</form>
-{% endif %}
-</div>
-<div id="side-panel-toggle"></div>
-</div>
diff --git a/app/templates/core/admin/includes/recent_actions.html b/app/templates/core/admin/includes/recent_actions.html
deleted file mode 100644 (file)
index c075b91..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-{% load i18n %}
-
-<div class="module" id="recent-actions-module">
-    <h2>{% trans 'Recent Actions' %}</h2>
-    <h3>{% trans 'My Actions' %}</h3>
-        {% load log %}
-        {% get_admin_log 10 as admin_log for_user user %}
-        {% if not admin_log %}
-        <p>{% trans 'None available' %}</p>
-        {% else %}
-        <ul class="actionlist" style="margin:0;">
-        {% for entry in admin_log %}
-        <li style="list-style-type:none;" class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">{% if not entry.is_deletion %}<a href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr }}{% if not entry.is_deletion %}</a>{% endif %}<br /><span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span></li>
-        {% endfor %}
-        </ul>
-        {% endif %}
-</div>
-
diff --git a/app/templates/core/admin/index.html b/app/templates/core/admin/index.html
deleted file mode 100644 (file)
index 22d2ca4..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-{% extends "admin/base_site.html" %}
-
-{% load i18n mezzanine_tags staticfiles %}
-
-{% block extrahead %}
-{{ block.super }}
-<link rel="stylesheet" href="{% static settings.MEZZANINE_ADMIN_PREFIX|add:"css/dashboard.css" %}">
-<link rel="stylesheet" href="{% static "mezzanine/css/admin/dashboard.css" %}">
-<!--[if IE 7]><style>.dashboard #content {padding-top: 80px;}</style><![endif]-->
-{% endblock %}
-
-{% block coltype %}colMS{% endblock %}
-{% block bodyclass %}dashboard{% endblock %}
-
-{% block breadcrumbs %}<div class="breadcrumbs">{% trans "Home" %}</div>{% endblock %}
-
-{% block content_title %}<h1>{% trans "Dashboard" %}</h1>{% endblock %}
-
-{% block content %}<div id="content-main">{% dashboard_column 0 %}</div>{% endblock %}
-
-{% block sidebar %}
-    <div id="content-related" class="dashboard1">{% dashboard_column 2 %}</div>
-    {% block extendedsidebar %}
-    <div id="content-related" class="dashboard2">{% dashboard_column 1 %}</div>
-    {% endblock %}
-{% endblock %}
diff --git a/app/templates/core/admin/login.html b/app/templates/core/admin/login.html
deleted file mode 100644 (file)
index d9a670e..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-{% extends "admin/base_site.html" %}
-{% load i18n staticfiles %}
-
-{% block extrahead %}
-<link rel="stylesheet" type="text/css" href="{% static settings.MEZZANINE_ADMIN_PREFIX|add:"css/login.css" %}">
-{{ block.super }}
-<link rel="stylesheet" href="{% static "mezzanine/chosen/chosen.css" %}">
-<script src="{% static "mezzanine/chosen/chosen-0.9.12.jquery.js" %}"></script>
-<script> jQuery(function($) {$('select').chosen();}); </script>
-{% endblock %}
-
-{% block bodyclass %}login{% endblock %}
-{% block content_title %}{% endblock %}
-{% block breadcrumbs %}{% endblock %}
-
-{% block content %}
-
-{% if form.non_field_errors %}
-{% for error in form.non_field_errors %}
-<p class="errornote">{{ error }}</p>
-{% endfor %}
-{% endif %}
-{% if no_site_permission %}
-<p class="errornote">{% trans "You don't have permission to access the admin for this site." %}</p>
-{% endif %}
-
-<form action="{{ app_path }}" method="post" id="login-form">
-    {% csrf_token %}
-    <div id="content-main">
-        <div class="form-row">
-            <label for="id_username" class="required">{% trans 'Username or email:' %}</label>
-            <input type="text" required name="username" id="id_username" value="{{ request.POST.username }}">
-        </div>
-        <div class="form-row">
-            <label for="id_password" class="required">{% trans 'Password:' %}</label>
-            <input type="password" required  name="password" id="id_password">
-            <input type="hidden" name="this_is_the_login_form" value="1" />
-        </div>
-        {% if settings.USE_L10N and LANGUAGES|length > 1 %}
-        {% get_language_info_list for LANGUAGES as languages %}
-        <div class="form-row">
-            <label for="id_language" class="required">{% trans "Language" %}:</label>
-            <select id="id_language" onchange="window.location.href=this.value;">
-                {% for lang in languages %}
-                {% language lang.code %}
-                <option{% if LANGUAGE_CODE == lang.code %} selected="selected"{% endif %} value="{% url 'admin:index' %}">{{ lang.name_local }}</option>
-                {% endlanguage %}
-                {% endfor %}
-            </select>
-        </div>
-        {% endif %}
-        <div class="form-row" id="extra-login-fields">
-            <label class="required">{% trans "Interface:" %}</label>
-            <input class="interface" type="radio" name="mezzanine_login_interface" id="interface_admin"
-                value="admin"{% if request.REQUEST.mezzanine_login_interface != "site" %} checked{% endif %} />
-            <label class="interface" for="interface_admin">{% trans "Admin" %}</label>
-            <input class="interface" type="radio" name="mezzanine_login_interface" id="interface_site"
-                value="site"{% if request.REQUEST.mezzanine_login_interface == "site" %} checked{% endif %} />
-            <label class="interface" for="interface_site">{% trans "Site" %}</label>
-        </div>
-    </div>
-    <div class="submit-row">
-        <label>&nbsp;</label><input type="submit" value="{% trans 'Log in' %}" />
-    </div>
-    <p id="forgot-password">
-        <a href="{% url "password_reset" %}">{% trans "Forgot password?" %}</a>
-    </p>
-</form>
-
-{% endblock %}
-