From: Guillaume Pellerin Date: Wed, 17 Aug 2016 14:33:21 +0000 (+0200) Subject: mv admin templates X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=145c17c6c3a8b77ff55740561f4f12da37d5372d;p=mezzo.git mv admin templates --- diff --git a/app/templates/admin/base_site.html b/app/templates/admin/base_site.html new file mode 100644 index 00000000..c8bfbc5d --- /dev/null +++ b/app/templates/admin/base_site.html @@ -0,0 +1,77 @@ +{% extends "admin/base.html" %} +{% load mezzanine_tags i18n staticfiles %} + +{% block title %}{{ title }} | Mezzanine{% endblock %} + +{% block extrahead %} + + + +c +{% 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/admin/includes/app_list.html b/app/templates/admin/includes/app_list.html new file mode 100644 index 00000000..7d20d3db --- /dev/null +++ b/app/templates/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/admin/includes/content_typed_change_list.html b/app/templates/admin/includes/content_typed_change_list.html new file mode 100644 index 00000000..d78a185e --- /dev/null +++ b/app/templates/admin/includes/content_typed_change_list.html @@ -0,0 +1,32 @@ +{% load pages_tags i18n %} + + + +
+ +
diff --git a/app/templates/admin/includes/dropdown_menu.html b/app/templates/admin/includes/dropdown_menu.html new file mode 100644 index 00000000..1d3153c6 --- /dev/null +++ b/app/templates/admin/includes/dropdown_menu.html @@ -0,0 +1,45 @@ +{% load i18n mezzanine_tags %} +
+ +
+
diff --git a/app/templates/admin/includes/recent_actions.html b/app/templates/admin/includes/recent_actions.html new file mode 100644 index 00000000..c075b910 --- /dev/null +++ b/app/templates/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/admin/index.html b/app/templates/admin/index.html new file mode 100644 index 00000000..22d2ca47 --- /dev/null +++ b/app/templates/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/admin/login.html b/app/templates/admin/login.html new file mode 100644 index 00000000..d9a670ed --- /dev/null +++ b/app/templates/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 %} + diff --git a/app/templates/core/admin/base_site.html b/app/templates/core/admin/base_site.html deleted file mode 100644 index eb23ab24..00000000 --- a/app/templates/core/admin/base_site.html +++ /dev/null @@ -1,77 +0,0 @@ -{% 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 deleted file mode 100644 index 7d20d3db..00000000 --- a/app/templates/core/admin/includes/app_list.html +++ /dev/null @@ -1,37 +0,0 @@ -{% 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 deleted file mode 100644 index d78a185e..00000000 --- a/app/templates/core/admin/includes/content_typed_change_list.html +++ /dev/null @@ -1,32 +0,0 @@ -{% load pages_tags i18n %} - - - -
- -
diff --git a/app/templates/core/admin/includes/dropdown_menu.html b/app/templates/core/admin/includes/dropdown_menu.html deleted file mode 100644 index 1d3153c6..00000000 --- a/app/templates/core/admin/includes/dropdown_menu.html +++ /dev/null @@ -1,45 +0,0 @@ -{% load i18n mezzanine_tags %} -
- -
-
diff --git a/app/templates/core/admin/includes/recent_actions.html b/app/templates/core/admin/includes/recent_actions.html deleted file mode 100644 index c075b910..00000000 --- a/app/templates/core/admin/includes/recent_actions.html +++ /dev/null @@ -1,18 +0,0 @@ -{% 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 deleted file mode 100644 index 22d2ca47..00000000 --- a/app/templates/core/admin/index.html +++ /dev/null @@ -1,26 +0,0 @@ -{% 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 deleted file mode 100644 index d9a670ed..00000000 --- a/app/templates/core/admin/login.html +++ /dev/null @@ -1,71 +0,0 @@ -{% 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 %} -