From 3e8b34be2fdeccf16c8b46f1ee518f970853768d Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 24 Oct 2017 16:59:48 -0400 Subject: Adding in materialize source and templates --- .../templates/dispatch/invoice/detail-table.html | 89 ++++++++++++++++ .../templates/dispatch/invoice/detail.html | 38 +++++++ app/dispatch/templates/dispatch/invoice/list.html | 41 ++++++++ app/dispatch/templates/dispatch/printable.html | 112 +++++++++++++++++++++ 4 files changed, 280 insertions(+) create mode 100644 app/dispatch/templates/dispatch/invoice/detail-table.html create mode 100644 app/dispatch/templates/dispatch/invoice/detail.html create mode 100644 app/dispatch/templates/dispatch/invoice/list.html create mode 100644 app/dispatch/templates/dispatch/printable.html (limited to 'app/dispatch/templates') diff --git a/app/dispatch/templates/dispatch/invoice/detail-table.html b/app/dispatch/templates/dispatch/invoice/detail-table.html new file mode 100644 index 0000000..acb6e01 --- /dev/null +++ b/app/dispatch/templates/dispatch/invoice/detail-table.html @@ -0,0 +1,89 @@ +
+
+

+ Invoice #{{object.invoice_id}} +

+
+
+
+
+ + + + + +
+ Invoice Date: +
+ Due Date: +
+ {{object.invoice_date}} +
+ {{object.due_date}} +
+
+
+ {{object.owner.name}} +
+ {{object.owner.address}} +
+ {{object.owner.city}}, {{object.owner.state}} {{object.owner.zip_code}} +
+
+
+
+ {{object.bill_to.name}} +
+ {{object.bill_to.address}} +
+ {{object.bill_to.city}}, {{object.bill_to.state}} {{object.bill_to.zip_code}} +
+
+ +
+
+ + + + + + + + {% for item in object.items %} + + + + + + {% endfor %} + + + + + + + + + + + + + + + + +
DateDescriptionTotal
{{item.date|date:"m/d/Y"}}{{item.description}}{{item.total}}
Total Price:{{object.total}}
Amount Due:{{object.total}}
+
+
+ + diff --git a/app/dispatch/templates/dispatch/invoice/detail.html b/app/dispatch/templates/dispatch/invoice/detail.html new file mode 100644 index 0000000..d7b30f6 --- /dev/null +++ b/app/dispatch/templates/dispatch/invoice/detail.html @@ -0,0 +1,38 @@ +{% extends 'dispatch/base.html' %} + +{% block title %}Invoice for {{object.invoice_date}} by {{object.owner}}{% endblock %} + +{% block content %} +
+
+

Invoice for {{object.invoice_date}} by {{object.owner}}

+
+
+ +
+ +
+{% include "dispatch/invoice/detail-table.html" %} +
+ +
+ +
+
+ Delete + Print +
+
+ +
+ + + + + + +{%endblock%} diff --git a/app/dispatch/templates/dispatch/invoice/list.html b/app/dispatch/templates/dispatch/invoice/list.html new file mode 100644 index 0000000..292edd7 --- /dev/null +++ b/app/dispatch/templates/dispatch/invoice/list.html @@ -0,0 +1,41 @@ +{% extends 'dispatch/base.html' %} + +{% block title %}Invoices{% endblock %} + +{% block content %} +
+
+

Invoices

+
+
+ + + + + + + + + + + + + + + {{object_list}} + {% for invoice in object_list %} + + + + + + + + + + + {% endfor %} + + +
UserOwnerBill ToInvoice IDInvoice DateDue DateAmount
{{invoice.user}}{{invoice.owner}}{{invoice.bill_to}}{{invoice.invoice_id}}{{invoice.invoice_date}}{{invoice.due_date}}{{invoice.total}}View
+{% endblock %} diff --git a/app/dispatch/templates/dispatch/printable.html b/app/dispatch/templates/dispatch/printable.html new file mode 100644 index 0000000..9f9a181 --- /dev/null +++ b/app/dispatch/templates/dispatch/printable.html @@ -0,0 +1,112 @@ +{% load static %} +{% load custom_tags %} + + + + + {% block title %}{% endblock %} + + + + + + + + + + + +
+
+ {% block content %} + {% endblock %} +
+
+ + + + + + + + + + + -- cgit v1.2.3