From dbaf7af91132ff93718678f2a5b42fee3d1b6acd Mon Sep 17 00:00:00 2001 From: kinitrupti Date: Mon, 21 Nov 2016 12:16:09 +0530 Subject: Admin css fixed --- tbc/static/admin/templates/admin/404.html | 12 ++ tbc/static/admin/templates/admin/500.html | 17 +++ tbc/static/admin/templates/admin/actions.html | 16 +++ tbc/static/admin/templates/admin/app_index.html | 18 +++ .../admin/templates/admin/auth/user/add_form.html | 14 +++ .../templates/admin/auth/user/change_password.html | 60 ++++++++++ tbc/static/admin/templates/admin/base.html | 88 +++++++++++++++ tbc/static/admin/templates/admin/base_site.html | 9 ++ tbc/static/admin/templates/admin/change_form.html | 122 +++++++++++++++++++++ tbc/static/admin/templates/admin/change_list.html | 98 +++++++++++++++++ .../admin/templates/admin/change_list_results.html | 38 +++++++ .../admin/templates/admin/date_hierarchy.html | 10 ++ .../admin/templates/admin/delete_confirmation.html | 46 ++++++++ .../admin/delete_selected_confirmation.html | 49 +++++++++ .../admin/templates/admin/edit_inline/stacked.html | 30 +++++ .../admin/templates/admin/edit_inline/tabular.html | 83 ++++++++++++++ tbc/static/admin/templates/admin/filter.html | 8 ++ .../admin/templates/admin/includes/fieldset.html | 29 +++++ .../admin/includes/object_delete_summary.html | 7 ++ tbc/static/admin/templates/admin/index.html | 82 ++++++++++++++ .../admin/templates/admin/invalid_setup.html | 13 +++ tbc/static/admin/templates/admin/login.html | 69 ++++++++++++ .../admin/templates/admin/object_history.html | 42 +++++++ tbc/static/admin/templates/admin/pagination.html | 12 ++ .../admin/templates/admin/popup_response.html | 15 +++ .../templates/admin/prepopulated_fields_js.html | 28 +++++ .../templates/admin/related_widget_wrapper.html | 27 +++++ tbc/static/admin/templates/admin/search_form.html | 17 +++ tbc/static/admin/templates/admin/submit_line.html | 11 ++ .../admin/templates/registration/logged_out.html | 12 ++ .../registration/password_change_done.html | 15 +++ .../registration/password_change_form.html | 61 +++++++++++ .../registration/password_reset_complete.html | 20 ++++ .../registration/password_reset_confirm.html | 33 ++++++ .../registration/password_reset_done.html | 19 ++++ .../registration/password_reset_email.html | 14 +++ .../registration/password_reset_form.html | 22 ++++ 37 files changed, 1266 insertions(+) create mode 100644 tbc/static/admin/templates/admin/404.html create mode 100644 tbc/static/admin/templates/admin/500.html create mode 100644 tbc/static/admin/templates/admin/actions.html create mode 100644 tbc/static/admin/templates/admin/app_index.html create mode 100644 tbc/static/admin/templates/admin/auth/user/add_form.html create mode 100644 tbc/static/admin/templates/admin/auth/user/change_password.html create mode 100644 tbc/static/admin/templates/admin/base.html create mode 100644 tbc/static/admin/templates/admin/base_site.html create mode 100644 tbc/static/admin/templates/admin/change_form.html create mode 100644 tbc/static/admin/templates/admin/change_list.html create mode 100644 tbc/static/admin/templates/admin/change_list_results.html create mode 100644 tbc/static/admin/templates/admin/date_hierarchy.html create mode 100644 tbc/static/admin/templates/admin/delete_confirmation.html create mode 100644 tbc/static/admin/templates/admin/delete_selected_confirmation.html create mode 100644 tbc/static/admin/templates/admin/edit_inline/stacked.html create mode 100644 tbc/static/admin/templates/admin/edit_inline/tabular.html create mode 100644 tbc/static/admin/templates/admin/filter.html create mode 100644 tbc/static/admin/templates/admin/includes/fieldset.html create mode 100644 tbc/static/admin/templates/admin/includes/object_delete_summary.html create mode 100644 tbc/static/admin/templates/admin/index.html create mode 100644 tbc/static/admin/templates/admin/invalid_setup.html create mode 100644 tbc/static/admin/templates/admin/login.html create mode 100644 tbc/static/admin/templates/admin/object_history.html create mode 100644 tbc/static/admin/templates/admin/pagination.html create mode 100644 tbc/static/admin/templates/admin/popup_response.html create mode 100644 tbc/static/admin/templates/admin/prepopulated_fields_js.html create mode 100644 tbc/static/admin/templates/admin/related_widget_wrapper.html create mode 100644 tbc/static/admin/templates/admin/search_form.html create mode 100644 tbc/static/admin/templates/admin/submit_line.html create mode 100644 tbc/static/admin/templates/registration/logged_out.html create mode 100644 tbc/static/admin/templates/registration/password_change_done.html create mode 100644 tbc/static/admin/templates/registration/password_change_form.html create mode 100644 tbc/static/admin/templates/registration/password_reset_complete.html create mode 100644 tbc/static/admin/templates/registration/password_reset_confirm.html create mode 100644 tbc/static/admin/templates/registration/password_reset_done.html create mode 100644 tbc/static/admin/templates/registration/password_reset_email.html create mode 100644 tbc/static/admin/templates/registration/password_reset_form.html (limited to 'tbc/static/admin/templates') diff --git a/tbc/static/admin/templates/admin/404.html b/tbc/static/admin/templates/admin/404.html new file mode 100644 index 0000000..9bf4293 --- /dev/null +++ b/tbc/static/admin/templates/admin/404.html @@ -0,0 +1,12 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block title %}{% trans 'Page not found' %}{% endblock %} + +{% block content %} + +

{% trans 'Page not found' %}

+ +

{% trans "We're sorry, but the requested page could not be found." %}

+ +{% endblock %} diff --git a/tbc/static/admin/templates/admin/500.html b/tbc/static/admin/templates/admin/500.html new file mode 100644 index 0000000..4842faa --- /dev/null +++ b/tbc/static/admin/templates/admin/500.html @@ -0,0 +1,17 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block title %}{% trans 'Server error (500)' %}{% endblock %} + +{% block content %} +

{% trans 'Server Error (500)' %}

+

{% trans "There's been an error. It's been reported to the site administrators via email and should be fixed shortly. Thanks for your patience." %}

+ +{% endblock %} diff --git a/tbc/static/admin/templates/admin/actions.html b/tbc/static/admin/templates/admin/actions.html new file mode 100644 index 0000000..aaaa245 --- /dev/null +++ b/tbc/static/admin/templates/admin/actions.html @@ -0,0 +1,16 @@ +{% load i18n %} +
+ {% for field in action_form %}{% if field.label %}{% endif %}{% endfor %} + + {% if actions_selection_counter %} + + {{ selection_note }} + {% if cl.result_count != cl.result_list|length %} + {{ selection_note_all }} + + {% blocktrans with cl.result_count as total_count %}Select all {{ total_count }} {{ module_name }}{% endblocktrans %} + + {% trans "Clear selection" %} + {% endif %} + {% endif %} +
diff --git a/tbc/static/admin/templates/admin/app_index.html b/tbc/static/admin/templates/admin/app_index.html new file mode 100644 index 0000000..6868b49 --- /dev/null +++ b/tbc/static/admin/templates/admin/app_index.html @@ -0,0 +1,18 @@ +{% extends "admin/index.html" %} +{% load i18n %} + +{% block bodyclass %}{{ block.super }} app-{{ app_label }}{% endblock %} + +{% if not is_popup %} +{% block breadcrumbs %} + +{% endblock %} +{% endif %} + +{% block sidebar %}{% endblock %} diff --git a/tbc/static/admin/templates/admin/auth/user/add_form.html b/tbc/static/admin/templates/admin/auth/user/add_form.html new file mode 100644 index 0000000..c8889eb --- /dev/null +++ b/tbc/static/admin/templates/admin/auth/user/add_form.html @@ -0,0 +1,14 @@ +{% extends "admin/change_form.html" %} +{% load i18n %} + +{% block form_top %} + {% if not is_popup %} +

{% trans "First, enter a username and password. Then, you'll be able to edit more user options." %}

+ {% else %} +

{% trans "Enter a username and password." %}

+ {% endif %} +{% endblock %} + +{% block after_field_sets %} + +{% endblock %} diff --git a/tbc/static/admin/templates/admin/auth/user/change_password.html b/tbc/static/admin/templates/admin/auth/user/change_password.html new file mode 100644 index 0000000..c788571 --- /dev/null +++ b/tbc/static/admin/templates/admin/auth/user/change_password.html @@ -0,0 +1,60 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_static %} +{% load admin_urls %} + +{% block extrahead %}{{ block.super }} + +{% endblock %} +{% block extrastyle %}{{ block.super }}{% endblock %} +{% block bodyclass %}{{ block.super }} {{ opts.app_label }}-{{ opts.model_name }} change-form{% endblock %} +{% if not is_popup %} +{% block breadcrumbs %} + +{% endblock %} +{% endif %} +{% block content %}
+
{% csrf_token %}{% block form_top %}{% endblock %} +
+{% if is_popup %}{% endif %} +{% if form.errors %} +

+ {% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %} +

+{% endif %} + +

{% blocktrans with username=original %}Enter a new password for the user {{ username }}.{% endblocktrans %}

+ +
+ +
+ {{ form.password1.errors }} + {{ form.password1.label_tag }} {{ form.password1 }} + {% if form.password1.help_text %} +

{{ form.password1.help_text|safe }}

+ {% endif %} +
+ +
+ {{ form.password2.errors }} + {{ form.password2.label_tag }} {{ form.password2 }} + {% if form.password2.help_text %} +

{{ form.password2.help_text|safe }}

+ {% endif %} +
+ +
+ +
+ +
+ + +
+
+{% endblock %} diff --git a/tbc/static/admin/templates/admin/base.html b/tbc/static/admin/templates/admin/base.html new file mode 100644 index 0000000..ad8663f --- /dev/null +++ b/tbc/static/admin/templates/admin/base.html @@ -0,0 +1,88 @@ +{% load i18n admin_static %} +{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %} + + +{% block title %}{% endblock %} + +{% block extrastyle %}{% endblock %} +{% if LANGUAGE_BIDI %}{% endif %} +{% block extrahead %}{% endblock %} +{% block blockbots %}{% endblock %} + +{% load i18n %} + + + + +
+ + {% if not is_popup %} + + + + {% block breadcrumbs %} + + {% endblock %} + {% endif %} + + {% block messages %} + {% if messages %} + + {% endif %} + {% endblock messages %} + + +
+ {% block pretitle %}{% endblock %} + {% block content_title %}{% if title %}

{{ title }}

{% endif %}{% endblock %} + {% block content %} + {% block object-tools %}{% endblock %} + {{ content }} + {% endblock %} + {% block sidebar %}{% endblock %} +
+
+ + + {% block footer %}{% endblock %} +
+ + + + diff --git a/tbc/static/admin/templates/admin/base_site.html b/tbc/static/admin/templates/admin/base_site.html new file mode 100644 index 0000000..cae0a69 --- /dev/null +++ b/tbc/static/admin/templates/admin/base_site.html @@ -0,0 +1,9 @@ +{% extends "admin/base.html" %} + +{% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} + +{% block branding %} +

{{ site_header|default:_('Django administration') }}

+{% endblock %} + +{% block nav-global %}{% endblock %} diff --git a/tbc/static/admin/templates/admin/change_form.html b/tbc/static/admin/templates/admin/change_form.html new file mode 100644 index 0000000..0e2255f --- /dev/null +++ b/tbc/static/admin/templates/admin/change_form.html @@ -0,0 +1,122 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_urls admin_static admin_modify %} + +{% block extrahead %}{{ block.super }} + +{{ media }} +{% endblock %} + +{% block extrastyle %}{{ block.super }}{% endblock %} + +{% block coltype %}colM{% endblock %} + +{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-form{% endblock %} + +{% if not is_popup %} +{% block breadcrumbs %} + +{% endblock %} +{% endif %} + +{% block content %}
+{% block object-tools %} +{% if change %}{% if not is_popup %} + +{% endif %}{% endif %} +{% endblock %} +
{% csrf_token %}{% block form_top %}{% endblock %} +
+{% if is_popup %}{% endif %} +{% if to_field %}{% endif %} +{% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %} +{% if errors %} +

+ {% if errors|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %} +

+ {{ adminform.form.non_field_errors }} +{% endif %} + +{% block field_sets %} +{% for fieldset in adminform %} + {% include "admin/includes/fieldset.html" %} +{% endfor %} +{% endblock %} + +{% block after_field_sets %}{% endblock %} + +{% block inline_field_sets %} +{% for inline_admin_formset in inline_admin_formsets %} + {% include inline_admin_formset.opts.template %} +{% endfor %} +{% endblock %} + +{% block after_related_objects %}{% endblock %} + +{% block submit_buttons_bottom %}{% submit_row %}{% endblock %} + +{% block admin_change_form_document_ready %} + +{% endblock %} + +{# JavaScript for prepopulated fields #} +{% prepopulated_fields_js %} + +
+
+{% endblock %} diff --git a/tbc/static/admin/templates/admin/change_list.html b/tbc/static/admin/templates/admin/change_list.html new file mode 100644 index 0000000..0bd44d9 --- /dev/null +++ b/tbc/static/admin/templates/admin/change_list.html @@ -0,0 +1,98 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_urls admin_static admin_list %} + +{% block extrastyle %} + {{ block.super }} + + {% if cl.formset %} + + {% endif %} + {% if cl.formset or action_form %} + + {% 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 %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} 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 %} +

+ {% if cl.formset.total_error_count == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %} +

+ {{ 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.show_admin_actions %}{% admin_actions %}{% endif %} + {% result_list cl %} + {% if action_form and actions_on_bottom and cl.show_admin_actions %}{% admin_actions %}{% endif %} + {% endblock %} + {% block pagination %}{% pagination cl %}{% endblock %} +
+
+
+{% endblock %} diff --git a/tbc/static/admin/templates/admin/change_list_results.html b/tbc/static/admin/templates/admin/change_list_results.html new file mode 100644 index 0000000..e3d4b25 --- /dev/null +++ b/tbc/static/admin/templates/admin/change_list_results.html @@ -0,0 +1,38 @@ +{% load i18n admin_static %} +{% if result_hidden_fields %} +
{# DIV for HTML validation #} +{% for item in result_hidden_fields %}{{ item }}{% endfor %} +
+{% endif %} +{% if results %} +
+ + + +{% for header in result_headers %} +{% endfor %} + + + +{% for result in results %} +{% if result.form.non_field_errors %} + +{% endif %} +{% for item in result %}{{ item }}{% endfor %} +{% endfor %} + +
+ {% if header.sortable %} + {% if header.sort_priority > 0 %} +
+ + {% if num_sorted_fields > 1 %}{{ header.sort_priority }}{% endif %} + +
+ {% endif %} + {% endif %} +
{% if header.sortable %}{{ header.text|capfirst }}{% else %}{{ header.text|capfirst }}{% endif %}
+
+
{{ result.form.non_field_errors }}
+
+{% endif %} diff --git a/tbc/static/admin/templates/admin/date_hierarchy.html b/tbc/static/admin/templates/admin/date_hierarchy.html new file mode 100644 index 0000000..0058510 --- /dev/null +++ b/tbc/static/admin/templates/admin/date_hierarchy.html @@ -0,0 +1,10 @@ +{% if show %} +
+
+
+{% endif %} diff --git a/tbc/static/admin/templates/admin/delete_confirmation.html b/tbc/static/admin/templates/admin/delete_confirmation.html new file mode 100644 index 0000000..bc26bca --- /dev/null +++ b/tbc/static/admin/templates/admin/delete_confirmation.html @@ -0,0 +1,46 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_urls %} + +{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation{% endblock %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block content %} +{% if perms_lacking %} +

{% blocktrans with escaped_object=object %}Deleting the {{ object_name }} '{{ escaped_object }}' would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}

+ +{% elif protected %} +

{% blocktrans with escaped_object=object %}Deleting the {{ object_name }} '{{ escaped_object }}' would require deleting the following protected related objects:{% endblocktrans %}

+ +{% else %} +

{% blocktrans with escaped_object=object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktrans %}

+ {% include "admin/includes/object_delete_summary.html" %} +

{% trans "Objects" %}

+ +
{% csrf_token %} +
+ + {% if is_popup %}{% endif %} + {% if to_field %}{% endif %} + + {% trans "No, take me back" %} +
+
+{% endif %} +{% endblock %} diff --git a/tbc/static/admin/templates/admin/delete_selected_confirmation.html b/tbc/static/admin/templates/admin/delete_selected_confirmation.html new file mode 100644 index 0000000..5ebd643 --- /dev/null +++ b/tbc/static/admin/templates/admin/delete_selected_confirmation.html @@ -0,0 +1,49 @@ +{% extends "admin/base_site.html" %} +{% load i18n l10n admin_urls %} + +{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation delete-selected-confirmation{% endblock %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block content %} +{% if perms_lacking %} +

{% blocktrans %}Deleting the selected {{ objects_name }} would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}

+ +{% elif protected %} +

{% blocktrans %}Deleting the selected {{ objects_name }} would require deleting the following protected related objects:{% endblocktrans %}

+ +{% else %} +

{% blocktrans %}Are you sure you want to delete the selected {{ objects_name }}? All of the following objects and their related items will be deleted:{% endblocktrans %}

+ {% include "admin/includes/object_delete_summary.html" %} +

{% trans "Objects" %}

+ {% for deletable_object in deletable_objects %} + + {% endfor %} +
{% csrf_token %} +
+ {% for obj in queryset %} + + {% endfor %} + + + + {% trans "No, take me back" %} +
+
+{% endif %} +{% endblock %} diff --git a/tbc/static/admin/templates/admin/edit_inline/stacked.html b/tbc/static/admin/templates/admin/edit_inline/stacked.html new file mode 100644 index 0000000..2a837a1 --- /dev/null +++ b/tbc/static/admin/templates/admin/edit_inline/stacked.html @@ -0,0 +1,30 @@ +{% load i18n admin_urls admin_static %} +
+

{{ inline_admin_formset.opts.verbose_name_plural|capfirst }}

+{{ inline_admin_formset.formset.management_form }} +{{ inline_admin_formset.formset.non_form_errors }} + +{% for inline_admin_form in inline_admin_formset %}
+

{{ inline_admin_formset.opts.verbose_name|capfirst }}: {% if inline_admin_form.original %}{{ inline_admin_form.original }}{% if inline_admin_form.model_admin.show_change_link and inline_admin_form.model_admin.has_registered_model %} {% trans "Change" %}{% endif %} +{% else %}#{{ forloop.counter }}{% endif %} + {% if inline_admin_form.show_url %}{% trans "View on site" %}{% endif %} + {% if inline_admin_formset.formset.can_delete and inline_admin_form.original %}{{ inline_admin_form.deletion_field.field }} {{ inline_admin_form.deletion_field.label_tag }}{% endif %} +

+ {% if inline_admin_form.form.non_field_errors %}{{ inline_admin_form.form.non_field_errors }}{% endif %} + {% for fieldset in inline_admin_form %} + {% include "admin/includes/fieldset.html" %} + {% endfor %} + {% if inline_admin_form.needs_explicit_pk_field %}{{ inline_admin_form.pk_field.field }}{% endif %} + {{ inline_admin_form.fk_field.field }} +
{% endfor %} +
+ + diff --git a/tbc/static/admin/templates/admin/edit_inline/tabular.html b/tbc/static/admin/templates/admin/edit_inline/tabular.html new file mode 100644 index 0000000..682ea4d --- /dev/null +++ b/tbc/static/admin/templates/admin/edit_inline/tabular.html @@ -0,0 +1,83 @@ +{% load i18n admin_urls admin_static admin_modify %} +
+ +
+ + diff --git a/tbc/static/admin/templates/admin/filter.html b/tbc/static/admin/templates/admin/filter.html new file mode 100644 index 0000000..d4a61a1 --- /dev/null +++ b/tbc/static/admin/templates/admin/filter.html @@ -0,0 +1,8 @@ +{% load i18n %} +

{% blocktrans with filter_title=title %} By {{ filter_title }} {% endblocktrans %}

+ diff --git a/tbc/static/admin/templates/admin/includes/fieldset.html b/tbc/static/admin/templates/admin/includes/fieldset.html new file mode 100644 index 0000000..c45e731 --- /dev/null +++ b/tbc/static/admin/templates/admin/includes/fieldset.html @@ -0,0 +1,29 @@ +
+ {% if fieldset.name %}

{{ fieldset.name }}

{% endif %} + {% if fieldset.description %} +
{{ fieldset.description|safe }}
+ {% endif %} + {% for line in fieldset %} +
+ {% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %} + {% for field in line %} + + {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %} + {% if field.is_checkbox %} + {{ field.field }}{{ field.label_tag }} + {% else %} + {{ field.label_tag }} + {% if field.is_readonly %} +

{{ field.contents }}

+ {% else %} + {{ field.field }} + {% endif %} + {% endif %} + {% if field.field.help_text %} +

{{ field.field.help_text|safe }}

+ {% endif %} +
+ {% endfor %} + + {% endfor %} +
diff --git a/tbc/static/admin/templates/admin/includes/object_delete_summary.html b/tbc/static/admin/templates/admin/includes/object_delete_summary.html new file mode 100644 index 0000000..6a8bf65 --- /dev/null +++ b/tbc/static/admin/templates/admin/includes/object_delete_summary.html @@ -0,0 +1,7 @@ +{% load i18n %} +

{% trans "Summary" %}

+ diff --git a/tbc/static/admin/templates/admin/index.html b/tbc/static/admin/templates/admin/index.html new file mode 100644 index 0000000..fba67d7 --- /dev/null +++ b/tbc/static/admin/templates/admin/index.html @@ -0,0 +1,82 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_static %} + +{% block extrastyle %}{{ block.super }}{% endblock %} + +{% block coltype %}colMS{% endblock %} + +{% block bodyclass %}{{ block.super }} dashboard{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block content %} +
+ +{% if app_list %} + {% for app in app_list %} +
+ + + {% for model in app.models %} + + {% if model.admin_url %} + + {% else %} + + {% endif %} + + {% if model.add_url %} + + {% else %} + + {% endif %} + + {% if model.admin_url %} + + {% else %} + + {% endif %} + + {% endfor %} +
+ {{ app.name }} +
{{ model.name }}{{ model.name }}{% trans 'Add' %} {% trans 'Change' %} 
+
+ {% endfor %} +{% else %} +

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

+{% endif %} +
+{% endblock %} + +{% block sidebar %} + +{% endblock %} diff --git a/tbc/static/admin/templates/admin/invalid_setup.html b/tbc/static/admin/templates/admin/invalid_setup.html new file mode 100644 index 0000000..7c71107 --- /dev/null +++ b/tbc/static/admin/templates/admin/invalid_setup.html @@ -0,0 +1,13 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block content %} +

{% trans "Something's wrong with your database installation. Make sure the appropriate database tables have been created, and make sure the database is readable by the appropriate user." %}

+{% endblock %} diff --git a/tbc/static/admin/templates/admin/login.html b/tbc/static/admin/templates/admin/login.html new file mode 100644 index 0000000..7a0d650 --- /dev/null +++ b/tbc/static/admin/templates/admin/login.html @@ -0,0 +1,69 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_static %} + +{% block extrastyle %}{{ block.super }} +{{ form.media }} +{% endblock %} + +{% block bodyclass %}{{ block.super }} login{% endblock %} + +{% block usertools %}{% endblock %} + +{% block nav-global %}{% endblock %} + +{% block content_title %}{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block content %} +{% if form.errors and not form.non_field_errors %} +

+{% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %} +

+{% endif %} + +{% if form.non_field_errors %} +{% for error in form.non_field_errors %} +

+ {{ error }} +

+{% endfor %} +{% endif %} + +
+ +{% if user.is_authenticated %} +

+{% blocktrans with username=request.user.username trimmed %} + You are authenticated as {{ username }}, but are not authorized to + access this page. Would you like to login to a different account? +{% endblocktrans %} +

+{% endif %} + +
{% csrf_token %} +
+ {{ form.username.errors }} + {{ form.username.label_tag }} {{ form.username }} +
+
+ {{ form.password.errors }} + {{ form.password.label_tag }} {{ form.password }} + +
+ {% url 'admin_password_reset' as password_reset_url %} + {% if password_reset_url %} + + {% endif %} +
+ +
+
+ + +
+{% endblock %} diff --git a/tbc/static/admin/templates/admin/object_history.html b/tbc/static/admin/templates/admin/object_history.html new file mode 100644 index 0000000..cf3e7e2 --- /dev/null +++ b/tbc/static/admin/templates/admin/object_history.html @@ -0,0 +1,42 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_urls %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block content %} +
+
+ +{% if action_list %} + + + + + + + + + + {% for action in action_list %} + + + + + + {% endfor %} + +
{% trans 'Date/time' %}{% trans 'User' %}{% trans 'Action' %}
{{ action.action_time|date:"DATETIME_FORMAT" }}{{ action.user.get_username }}{% if action.user.get_full_name %} ({{ action.user.get_full_name }}){% endif %}{{ action.change_message }}
+{% else %} +

{% trans "This object doesn't have a change history. It probably wasn't added via this admin site." %}

+{% endif %} +
+
+{% endblock %} diff --git a/tbc/static/admin/templates/admin/pagination.html b/tbc/static/admin/templates/admin/pagination.html new file mode 100644 index 0000000..fc1e600 --- /dev/null +++ b/tbc/static/admin/templates/admin/pagination.html @@ -0,0 +1,12 @@ +{% load admin_list %} +{% load i18n %} +

+{% if pagination_required %} +{% for i in page_range %} + {% paginator_number cl i %} +{% endfor %} +{% endif %} +{{ cl.result_count }} {% if cl.result_count == 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endif %} +{% if show_all_url %}  {% trans 'Show all' %}{% endif %} +{% if cl.formset and cl.result_count %}{% endif %} +

diff --git a/tbc/static/admin/templates/admin/popup_response.html b/tbc/static/admin/templates/admin/popup_response.html new file mode 100644 index 0000000..bbe8908 --- /dev/null +++ b/tbc/static/admin/templates/admin/popup_response.html @@ -0,0 +1,15 @@ +{% load i18n %} + + {% trans 'Popup closing...' %} + + + + diff --git a/tbc/static/admin/templates/admin/prepopulated_fields_js.html b/tbc/static/admin/templates/admin/prepopulated_fields_js.html new file mode 100644 index 0000000..cbb898f --- /dev/null +++ b/tbc/static/admin/templates/admin/prepopulated_fields_js.html @@ -0,0 +1,28 @@ +{% load l10n %} + diff --git a/tbc/static/admin/templates/admin/related_widget_wrapper.html b/tbc/static/admin/templates/admin/related_widget_wrapper.html new file mode 100644 index 0000000..502bede --- /dev/null +++ b/tbc/static/admin/templates/admin/related_widget_wrapper.html @@ -0,0 +1,27 @@ +{% load i18n admin_static %} + diff --git a/tbc/static/admin/templates/admin/search_form.html b/tbc/static/admin/templates/admin/search_form.html new file mode 100644 index 0000000..f241f14 --- /dev/null +++ b/tbc/static/admin/templates/admin/search_form.html @@ -0,0 +1,17 @@ +{% load i18n admin_static %} +{% if cl.search_fields %} +
+ +{% endif %} diff --git a/tbc/static/admin/templates/admin/submit_line.html b/tbc/static/admin/templates/admin/submit_line.html new file mode 100644 index 0000000..d6db711 --- /dev/null +++ b/tbc/static/admin/templates/admin/submit_line.html @@ -0,0 +1,11 @@ +{% load i18n admin_urls %} +
+{% if show_save %}{% endif %} +{% if show_delete_link %} + {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %} + +{% endif %} +{% if show_save_as_new %}{% endif %} +{% if show_save_and_add_another %}{% endif %} +{% if show_save_and_continue %}{% endif %} +
diff --git a/tbc/static/admin/templates/registration/logged_out.html b/tbc/static/admin/templates/registration/logged_out.html new file mode 100644 index 0000000..6a18186 --- /dev/null +++ b/tbc/static/admin/templates/registration/logged_out.html @@ -0,0 +1,12 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block breadcrumbs %}{% endblock %} + +{% block content %} + +

{% trans "Thanks for spending some quality time with the Web site today." %}

+ +

{% trans 'Log in again' %}

+ +{% endblock %} diff --git a/tbc/static/admin/templates/registration/password_change_done.html b/tbc/static/admin/templates/registration/password_change_done.html new file mode 100644 index 0000000..3e557eb --- /dev/null +++ b/tbc/static/admin/templates/registration/password_change_done.html @@ -0,0 +1,15 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} +{% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}{% trans 'Documentation' %} / {% endif %}{% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %} +{% block breadcrumbs %} + +{% endblock %} + +{% block title %}{{ title }}{% endblock %} +{% block content_title %}

{{ title }}

{% endblock %} +{% block content %} +

{% trans 'Your password was changed.' %}

+{% endblock %} diff --git a/tbc/static/admin/templates/registration/password_change_form.html b/tbc/static/admin/templates/registration/password_change_form.html new file mode 100644 index 0000000..ddb90e8 --- /dev/null +++ b/tbc/static/admin/templates/registration/password_change_form.html @@ -0,0 +1,61 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_static %} +{% block extrastyle %}{{ block.super }}{% endblock %} +{% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}{% trans 'Documentation' %} / {% endif %} {% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %} +{% block breadcrumbs %} + +{% endblock %} + +{% block title %}{{ title }}{% endblock %} +{% block content_title %}

{{ title }}

{% endblock %} + +{% block content %}
+ +
{% csrf_token %} +
+{% if form.errors %} +

+ {% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %} +

+{% endif %} + + +

{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}

+ +
+ +
+ {{ form.old_password.errors }} + {{ form.old_password.label_tag }} {{ form.old_password }} +
+ +
+ {{ form.new_password1.errors }} + {{ form.new_password1.label_tag }} {{ form.new_password1 }} + {% if form.new_password1.help_text %} +

{{ form.new_password1.help_text|safe }}

+ {% endif %} +
+ +
+{{ form.new_password2.errors }} + {{ form.new_password2.label_tag }} {{ form.new_password2 }} + {% if form.new_password2.help_text %} +

{{ form.new_password2.help_text|safe }}

+ {% endif %} +
+ +
+ +
+ +
+ + +
+
+ +{% endblock %} diff --git a/tbc/static/admin/templates/registration/password_reset_complete.html b/tbc/static/admin/templates/registration/password_reset_complete.html new file mode 100644 index 0000000..19f87a5 --- /dev/null +++ b/tbc/static/admin/templates/registration/password_reset_complete.html @@ -0,0 +1,20 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block title %}{{ title }}{% endblock %} +{% block content_title %}

{{ title }}

{% endblock %} + +{% block content %} + +

{% trans "Your password has been set. You may go ahead and log in now." %}

+ +

{% trans 'Log in' %}

+ +{% endblock %} diff --git a/tbc/static/admin/templates/registration/password_reset_confirm.html b/tbc/static/admin/templates/registration/password_reset_confirm.html new file mode 100644 index 0000000..a1e0150 --- /dev/null +++ b/tbc/static/admin/templates/registration/password_reset_confirm.html @@ -0,0 +1,33 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block title %}{{ title }}{% endblock %} +{% block content_title %}

{{ title }}

{% endblock %} +{% block content %} + +{% if validlink %} + +

{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}

+ +
{% csrf_token %} +{{ form.new_password1.errors }} +

{{ form.new_password1 }}

+{{ form.new_password2.errors }} +

{{ form.new_password2 }}

+

+
+ +{% else %} + +

{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}

+ +{% endif %} + +{% endblock %} diff --git a/tbc/static/admin/templates/registration/password_reset_done.html b/tbc/static/admin/templates/registration/password_reset_done.html new file mode 100644 index 0000000..c6fc358 --- /dev/null +++ b/tbc/static/admin/templates/registration/password_reset_done.html @@ -0,0 +1,19 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block title %}{{ title }}{% endblock %} +{% block content_title %}

{{ title }}

{% endblock %} +{% block content %} + +

{% trans "We've emailed you instructions for setting your password, if an account exists with the email you entered. You should receive them shortly." %}

+ +

{% trans "If you don't receive an email, please make sure you've entered the address you registered with, and check your spam folder." %}

+ +{% endblock %} diff --git a/tbc/static/admin/templates/registration/password_reset_email.html b/tbc/static/admin/templates/registration/password_reset_email.html new file mode 100644 index 0000000..01b3bcc --- /dev/null +++ b/tbc/static/admin/templates/registration/password_reset_email.html @@ -0,0 +1,14 @@ +{% load i18n %}{% autoescape off %} +{% blocktrans %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %} + +{% trans "Please go to the following page and choose a new password:" %} +{% block reset_link %} +{{ protocol }}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} +{% endblock %} +{% trans "Your username, in case you've forgotten:" %} {{ user.get_username }} + +{% trans "Thanks for using our site!" %} + +{% blocktrans %}The {{ site_name }} team{% endblocktrans %} + +{% endautoescape %} diff --git a/tbc/static/admin/templates/registration/password_reset_form.html b/tbc/static/admin/templates/registration/password_reset_form.html new file mode 100644 index 0000000..23b68a3 --- /dev/null +++ b/tbc/static/admin/templates/registration/password_reset_form.html @@ -0,0 +1,22 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block title %}{{ title }}{% endblock %} +{% block content_title %}

{{ title }}

{% endblock %} +{% block content %} + +

{% trans "Forgotten your password? Enter your email address below, and we'll email instructions for setting a new one." %}

+ +
{% csrf_token %} +{{ form.email.errors }} +

{{ form.email }}

+
+ +{% endblock %} -- cgit