From: Guillaume Pellerin Date: Wed, 17 Aug 2016 09:24:16 +0000 (+0200) Subject: Add original admin templates X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4a5bc1c81323b4ffc9a9e065d6ae0b4649db08c1;p=mezzo.git Add original admin templates --- diff --git a/app/templates/core/admin/base_site.html b/app/templates/core/admin/base_site.html new file mode 100644 index 00000000..eb23ab24 --- /dev/null +++ b/app/templates/core/admin/base_site.html @@ -0,0 +1,77 @@ +{% extends "admin/base.html" %} +{% load mezzanine_tags i18n staticfiles %} + +{% block title %}{{ title }} | Mezzanine{% endblock %} + +{% block extrahead %} + + + + +{% if not settings.GRAPPELLI_INSTALLED %} + +{% endif %} + + + +{% endblock %} + +{% block rtl_styles %} +{{ block.super }} + +{% 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 %} + +{% else %} + {% if user.is_staff %} + {% if not is_popup and not request.GET.pop %} + + + + + {% endif %} + + {% if settings.GRAPPELLI_INSTALLED %} + + {% endif %} + {% endif %} +{% endif %} +{% endblock %} diff --git a/app/templates/core/admin/includes/app_list.html b/app/templates/core/admin/includes/app_list.html new file mode 100644 index 00000000..7d20d3db --- /dev/null +++ b/app/templates/core/admin/includes/app_list.html @@ -0,0 +1,37 @@ +{% load i18n %} + +{% if app_list %} +
+ {% for app in dashboard_app_list %} +
+ + + {% for model in app.models %} + + {% if model.perms.change or model.perms.custom %} + + {% else %} + + {% endif %} + + {% if model.perms.add %} + + {% else %} + + {% endif %} + + {% if model.perms.change %} + + {% else %} + + {% endif %} + + {% endfor %} +
{% trans app.name %}
{{ model.name }}{{ model.name }}{% trans 'Add' %} {% trans 'Change' %} 
+
+ {% endfor %} +
+{% 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 new file mode 100644 index 00000000..d78a185e --- /dev/null +++ b/app/templates/core/admin/includes/content_typed_change_list.html @@ -0,0 +1,32 @@ +{% load pages_tags i18n %} + + + +
+ +
diff --git a/app/templates/core/admin/includes/dropdown_menu.html b/app/templates/core/admin/includes/dropdown_menu.html new file mode 100644 index 00000000..1d3153c6 --- /dev/null +++ b/app/templates/core/admin/includes/dropdown_menu.html @@ -0,0 +1,45 @@ +{% load i18n mezzanine_tags %} +
+ +
+
diff --git a/app/templates/core/admin/includes/recent_actions.html b/app/templates/core/admin/includes/recent_actions.html new file mode 100644 index 00000000..c075b910 --- /dev/null +++ b/app/templates/core/admin/includes/recent_actions.html @@ -0,0 +1,18 @@ +{% load i18n %} + +
+

{% trans 'Recent Actions' %}

+

{% trans 'My Actions' %}

+ {% load log %} + {% get_admin_log 10 as admin_log for_user user %} + {% if not admin_log %} +

{% trans 'None available' %}

+ {% else %} + + {% endif %} +
+ diff --git a/app/templates/core/admin/index.html b/app/templates/core/admin/index.html new file mode 100644 index 00000000..22d2ca47 --- /dev/null +++ b/app/templates/core/admin/index.html @@ -0,0 +1,26 @@ +{% extends "admin/base_site.html" %} + +{% load i18n mezzanine_tags staticfiles %} + +{% block extrahead %} +{{ block.super }} + + + +{% endblock %} + +{% block coltype %}colMS{% endblock %} +{% block bodyclass %}dashboard{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block content_title %}

{% trans "Dashboard" %}

{% endblock %} + +{% block content %}
{% dashboard_column 0 %}
{% endblock %} + +{% block sidebar %} + + {% block extendedsidebar %} + + {% endblock %} +{% endblock %} diff --git a/app/templates/core/admin/login.html b/app/templates/core/admin/login.html new file mode 100644 index 00000000..d9a670ed --- /dev/null +++ b/app/templates/core/admin/login.html @@ -0,0 +1,71 @@ +{% extends "admin/base_site.html" %} +{% load i18n staticfiles %} + +{% block extrahead %} + +{{ block.super }} + + + +{% 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 %} +

{{ error }}

+{% endfor %} +{% endif %} +{% if no_site_permission %} +

{% trans "You don't have permission to access the admin for this site." %}

+{% endif %} + +
+ {% csrf_token %} +
+
+ + +
+
+ + + +
+ {% if settings.USE_L10N and LANGUAGES|length > 1 %} + {% get_language_info_list for LANGUAGES as languages %} +
+ + +
+ {% endif %} +
+ + + + + +
+
+
+ +
+

+ {% trans "Forgot password?" %} +

+
+ +{% endblock %} +