From d9f51299809bfb6b3ac589b7c42016d0ef240299 Mon Sep 17 00:00:00 2001 From: lxf Date: Sat, 6 Nov 2021 09:42:47 -0400 Subject: moved templates to top level directory --- templates/admin/base.html | 102 ++++++++++++ .../admin/birds/birdsighting/change_form.html | 135 ++++++++++++++++ templates/admin/buttons.html | 63 ++++++++ templates/admin/ccg_notes/change_form.html | 152 ++++++++++++++++++ templates/admin/income/monthly.html | 57 +++++++ templates/admin/income_month.html | 159 +++++++++++++++++++ templates/admin/index.html | 174 +++++++++++++++++++++ templates/admin/insert_images.html | 127 +++++++++++++++ templates/admin/insert_products.html | 82 ++++++++++ templates/admin/links/link/change_form.html | 138 ++++++++++++++++ templates/admin/message.html | 20 +++ templates/admin/pages/change_form.html | 141 +++++++++++++++++ templates/admin/photos/luxgallery/change_form.html | 135 ++++++++++++++++ templates/admin/save_link.html | 123 +++++++++++++++ templates/admin/upload_zip.html | 57 +++++++ 15 files changed, 1665 insertions(+) create mode 100644 templates/admin/base.html create mode 100644 templates/admin/birds/birdsighting/change_form.html create mode 100644 templates/admin/buttons.html create mode 100644 templates/admin/ccg_notes/change_form.html create mode 100644 templates/admin/income/monthly.html create mode 100644 templates/admin/income_month.html create mode 100644 templates/admin/index.html create mode 100644 templates/admin/insert_images.html create mode 100644 templates/admin/insert_products.html create mode 100755 templates/admin/links/link/change_form.html create mode 100644 templates/admin/message.html create mode 100644 templates/admin/pages/change_form.html create mode 100644 templates/admin/photos/luxgallery/change_form.html create mode 100644 templates/admin/save_link.html create mode 100644 templates/admin/upload_zip.html (limited to 'templates/admin') diff --git a/templates/admin/base.html b/templates/admin/base.html new file mode 100644 index 0000000..fd468f1 --- /dev/null +++ b/templates/admin/base.html @@ -0,0 +1,102 @@ +{% load i18n 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 responsive %} + + + + {% if LANGUAGE_BIDI %}{% endif %} +{% 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 adminembed %}{% endblock %} + +
+ + {% block footer %}{% endblock %} +
+ + + + diff --git a/templates/admin/birds/birdsighting/change_form.html b/templates/admin/birds/birdsighting/change_form.html new file mode 100644 index 0000000..31c9914 --- /dev/null +++ b/templates/admin/birds/birdsighting/change_form.html @@ -0,0 +1,135 @@ +{% 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/templates/admin/buttons.html b/templates/admin/buttons.html new file mode 100644 index 0000000..fbfa400 --- /dev/null +++ b/templates/admin/buttons.html @@ -0,0 +1,63 @@ + + +
+ +
+ diff --git a/templates/admin/ccg_notes/change_form.html b/templates/admin/ccg_notes/change_form.html new file mode 100644 index 0000000..a240f90 --- /dev/null +++ b/templates/admin/ccg_notes/change_form.html @@ -0,0 +1,152 @@ +{% 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 %} + Get Location +
+{% 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/templates/admin/income/monthly.html b/templates/admin/income/monthly.html new file mode 100644 index 0000000..920d074 --- /dev/null +++ b/templates/admin/income/monthly.html @@ -0,0 +1,57 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_urls admin_static %} + +{% block breadcrumbs %} + +{% endblock %} +{% block content %} + +

{% trans "EDR Invoice for the month of" %} {{object.title}}

+ + +
+
+ + + + + + + + + + + + + + {% for object in object_list %} + +{% endfor %} + + + +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
{{object.time_start|date:"M d"}}{{object.time_start|date:"h:i"}}{{object.time_end|date:"h:i"}}{{object.total}}-{{object.rounded_total}}{{object.work_done}}
 
Total Hours:{{total_hours}}
Total Billed:${{total_billed}}
+
+

Generate Invoice

+ +{% endblock %} diff --git a/templates/admin/income_month.html b/templates/admin/income_month.html new file mode 100644 index 0000000..125e435 --- /dev/null +++ b/templates/admin/income_month.html @@ -0,0 +1,159 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_urls admin_static %} + +{# Admin styling code largely taken from http://www.dmertl.com/blog/?p=116 #} + +{% block extrastyle %} + {{ block.super }} + + + + + + + + + + +{% endblock %} + +{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block content_title %}{% endblock %} + +{% block content %} + +

{% trans "Income for the month of" %} {{date|date:"F Y"}}

+

{% trans "Billed" %}

+ + +
+
+ + + + + + + + + + + + + +{% for gig in billed %} + + +{%endfor%} + + + +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
{{gig.title}}${{gig.payment}}{{gig.publisher}}{{gig.invoice_date|date:"M d, Y"}}{{gig.get_pay_date|date:"M d, Y"}}
 
Total Billed:${{billed_total.total_payment}}
+
+ +

{% trans "Unbilled" %}

+
+ + + + + + + + + + + + +{% for gig in unbilled %} + + +{%endfor%} + + + +
+ +
+
+ +
+
+ +
+
+ +
+
{{gig.title}}${{gig.payment}}{{gig.publisher}}{{gig.get_status_display}}
 
Total Billed:${{unbilled_total.total_payment}}
+
+

{% trans "Total Outstanding:" %} ${{total_outstanding.total_payment}}

+

Also have these stories pitched, but not accepted

+
+ + + + + + + + + + + +{% for gig in pitched %} + + +{%endfor%} + +
+ +
+
+ +
+
+ +
+
{{gig.title}}${{gig.payment}}{{gig.publisher}}
+
+ +

{% trans "" %} {% with total_outstanding.total_payment|add:"-2000" as underover %}{% if underover > 0 %}${{underover}} more than budget{%else%}Need to generate another ${{underover|cut:"-"}} to cover expenses{%endif%}{%endwith%}

+ +
+ +
+

{% trans "Income by Month" %}

+ +
+{% endblock %} diff --git a/templates/admin/index.html b/templates/admin/index.html new file mode 100644 index 0000000..78ada5b --- /dev/null +++ b/templates/admin/index.html @@ -0,0 +1,174 @@ +{% extends "admin/base_site.html" %} +{% load admin_list static 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.admin_url %} + + {% else %} + + {% endif %} + + {% if model.add_url %} + + {% else %} + + {% endif %} + + {% if model.admin_url %} + + {% else %} + + {% endif %} + + {% if model.name == "Gigs"%} + + {% endif %} + {% endfor %} +
+ + {% blocktrans with name=app.name %}{{ name }}{% endblocktrans %} + +
{{ model.name }}{{ model.name }}{% trans 'Add' %} {% trans 'Change' %} 
Income for month
+
+ {% endfor %} +{% else %} +

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

+{% endif %} +
+{% endblock %} + +{% block sidebar %} +{% endblock %} +{% block adminembed %} +
+ +
+{% endblock %} diff --git a/templates/admin/insert_images.html b/templates/admin/insert_images.html new file mode 100644 index 0000000..feaa88f --- /dev/null +++ b/templates/admin/insert_images.html @@ -0,0 +1,127 @@ +{% load get_image_by_size %} + + + + + + + +
{% for object in object_list %} +
+ {% if object.get_type != "Audio" %} +
+ +
{{object.id}} {% if object.caption %}– {{object.caption}}{%endif%}
+
+ + {% else %} +
+ +
+ + {% endif %} +
+{% endfor %} +
+ + + + + + diff --git a/templates/admin/insert_products.html b/templates/admin/insert_products.html new file mode 100644 index 0000000..b38389e --- /dev/null +++ b/templates/admin/insert_products.html @@ -0,0 +1,82 @@ +{% load get_image_by_size %} + + + + + + + + +
{% for object in object_list %} +
+
+ {{object.get_full_name}} +
+ +
+{% endfor %} +
+ + + + + + diff --git a/templates/admin/links/link/change_form.html b/templates/admin/links/link/change_form.html new file mode 100755 index 0000000..5a5753a --- /dev/null +++ b/templates/admin/links/link/change_form.html @@ -0,0 +1,138 @@ +{% extends "admin/base_site.html" %} +{% load get_image_by_size %} +{% load i18n admin_urls 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/templates/admin/message.html b/templates/admin/message.html new file mode 100644 index 0000000..348b15d --- /dev/null +++ b/templates/admin/message.html @@ -0,0 +1,20 @@ +{% extends 'admin/base_site.html' %} + +{% block content %} +{{message}}... +{% endblock %} + +{% block extrahead %} + +{% endblock %} + diff --git a/templates/admin/pages/change_form.html b/templates/admin/pages/change_form.html new file mode 100644 index 0000000..fcc9302 --- /dev/null +++ b/templates/admin/pages/change_form.html @@ -0,0 +1,141 @@ +{% extends "admin/base_site.html" %} +{% load admin_list static i18n admin_urls 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 %} + Get Location +
+{% 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/templates/admin/photos/luxgallery/change_form.html b/templates/admin/photos/luxgallery/change_form.html new file mode 100644 index 0000000..1cdfde0 --- /dev/null +++ b/templates/admin/photos/luxgallery/change_form.html @@ -0,0 +1,135 @@ +{% 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/templates/admin/save_link.html b/templates/admin/save_link.html new file mode 100644 index 0000000..56047cd --- /dev/null +++ b/templates/admin/save_link.html @@ -0,0 +1,123 @@ +{% extends "admin/base_site.html" %} +{% load get_image_by_size %} +{% 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/templates/admin/upload_zip.html b/templates/admin/upload_zip.html new file mode 100644 index 0000000..2a5345a --- /dev/null +++ b/templates/admin/upload_zip.html @@ -0,0 +1,57 @@ +{% extends "admin/base_site.html" %} +{% load i18n admin_urls admin_static %} + +{# Admin styling code largely taken from http://www.dmertl.com/blog/?p=116 #} + +{% block extrastyle %} + {{ block.super }} + + + + + + + + + +{% endblock %} + +{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %} + +{% block breadcrumbs %} + +{% endblock %} + +{% block content_title %}{% endblock %} + +{% block content %} + +

{% trans "Upload a zip archive of photos" %}

+ + {% if form.errors %} +

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

+ {{ form.non_field_errors }} + {% endif %} + +
+ {% csrf_token %} +
+ {% for fieldset in adminform %} + {% include "admin/includes/fieldset.html" %} + {% endfor %} +
+
+ +
+
+ +{% endblock %} -- cgit v1.2.3-70-g09d2