diff --git a/bbb_django/bbb/templates/admin/app_index.html b/bbb_django/bbb/templates/admin/app_index.html new file mode 100644 index 0000000..878ff6d --- /dev/null +++ b/bbb_django/bbb/templates/admin/app_index.html @@ -0,0 +1,15 @@ +{% extends "admin/index.html" %} +{% load i18n %} + +{% if not is_popup %} + +{% block breadcrumbs %} +{% endblock %} + +{% endif %} + +{% block sidebar %}{% endblock %} diff --git a/bbb_django/bbb/templates/admin/base_site.html b/bbb_django/bbb/templates/admin/base_site.html new file mode 100644 index 0000000..4e71611 --- /dev/null +++ b/bbb_django/bbb/templates/admin/base_site.html @@ -0,0 +1,10 @@ +{% extends "admin/base.html" %} +{% load i18n %} + +{% block title %}{{ title }} | {% trans 'Django bbb site admin' %}{% endblock %} + +{% block branding %} +

{% trans 'Django bbb administration' %}

+{% endblock %} + +{% block nav-global %}{% endblock %} diff --git a/bbb_django/bbb/templates/admin/change_list.html b/bbb_django/bbb/templates/admin/change_list.html new file mode 100644 index 0000000..bcaef84 --- /dev/null +++ b/bbb_django/bbb/templates/admin/change_list.html @@ -0,0 +1,104 @@ +{% extends "admin/base_site.html" %} +{% load adminmedia admin_list i18n %} +{% load url from future %} +{% block extrastyle %} + {{ block.super }} + + {% if cl.formset %} + + {% endif %} + {% if cl.formset or action_form %} + {% url 'admin:jsi18n' as jsi18nurl %} + + {% endif %} + {{ media.css }} + {% if not actions_on_top and not actions_on_bottom %} + + {% endif %} +{% endblock %} + +{% block extrahead %} +{{ block.super }} +{{ media.js }} +{% if action_form %}{% if actions_on_top or actions_on_bottom %} + +{% endif %}{% endif %} +{% endblock %} + +{% block bodyclass %}change-list{% endblock %} + +{% if not is_popup %} + {% block breadcrumbs %} + + {% endblock %} +{% endif %} + +{% block coltype %}flex{% endblock %} + +{% block content %} +
+ {% block object-tools %} + {% if has_add_permission %} + + {% endif %} + {% endblock %} + {% if cl.formset.errors %} +

+ {% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} +

+ {{ cl.formset.non_form_errors }} + {% endif %} +
+ {% block search %}{% search_form cl %}{% endblock %} + {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %} + + {% block filters %} + {% if cl.has_filters %} +
+

{% trans 'Filter' %}

+ {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %} +
+ {% endif %} + {% endblock %} + +
{% csrf_token %} + {% if cl.formset %} +
{{ cl.formset.management_form }}
+ {% endif %} + + {% block result_list %} + {% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %} + {% result_list cl %} + {% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %} + {% endblock %} + {% block pagination %}{% pagination cl %}{% endblock %} +
+
+
+{% endblock %} diff --git a/bbb_django/bbb/templates/admin/index.html b/bbb_django/bbb/templates/admin/index.html new file mode 100644 index 0000000..aa1094b --- /dev/null +++ b/bbb_django/bbb/templates/admin/index.html @@ -0,0 +1,80 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block extrastyle %}{{ block.super }}{% endblock %} + +{% block coltype %}colMS{% endblock %} + +{% block bodyclass %}dashboard{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block content %} +
+ +{% if app_list %} + {% for app in app_list %} +
+ + + {% for model in app.models %} + + {% if model.perms.change %} + + {% else %} + + {% endif %} + + {% if model.perms.add %} + + {% else %} + + {% endif %} + + {% if model.perms.change %} + + {% else %} + + {% endif %} + + {% endfor %} +
{% trans app.name %}
{% trans model.name %}{% trans model.name %}{% trans 'Add' %} {% trans 'Change' %} 
+
+ {% endfor %} +{% else %} +

{% trans "You don't have permission to edit anything." %}

+{% endif %} +
+{% endblock %} + +{% block sidebar %} + +{% endblock %}