From d1c5b666d8e55572cdceb3401222d8e4dfecdb58 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sat, 28 Oct 2017 10:38:02 -0400 Subject: Ability to edit your Invoice Number. Clean up some of the forms for non-admins --- .../templates/dispatch/drivers/detail.html | 48 ++++++++++++++++++++-- .../templates/dispatch/userinvoicenumber/edit.html | 18 ++++++++ 2 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 app/dispatch/templates/dispatch/userinvoicenumber/edit.html (limited to 'app/dispatch/templates') diff --git a/app/dispatch/templates/dispatch/drivers/detail.html b/app/dispatch/templates/dispatch/drivers/detail.html index 9e4e7f3..26a2ba8 100644 --- a/app/dispatch/templates/dispatch/drivers/detail.html +++ b/app/dispatch/templates/dispatch/drivers/detail.html @@ -12,8 +12,12 @@
-
+
+
General Information
+
+ @@ -42,9 +46,13 @@
+ {% if ident is not None %}
-
+
+
Invoice Identity
+
+
{% if request.user.is_superuser %} Make Default Bill To @@ -86,7 +94,7 @@ @@ -97,4 +105,38 @@
{% endif %} + +
+
+
+ Current Invoice Number +
+
+
+ +
+
+ +
+
+ + + + + +
Invoice Number{{invoice_number.number}}
+
+
+ +
+
+

This number will automatically increment when new invoices + are generated from the load summary page

+
+
+ {% endblock %} diff --git a/app/dispatch/templates/dispatch/userinvoicenumber/edit.html b/app/dispatch/templates/dispatch/userinvoicenumber/edit.html new file mode 100644 index 0000000..e858d3f --- /dev/null +++ b/app/dispatch/templates/dispatch/userinvoicenumber/edit.html @@ -0,0 +1,18 @@ +{% extends 'dispatch/base.html' %} + +{% block title %}Edit Invoice Number for {{object.user.username}}{% endblock %} + +{% block content %} +
+
+

+ Invoice Number for {{object.user.username}} +

+
+
+ +
{% csrf_token %} + {{ form.as_p }} + +
+{% endblock %} -- cgit v1.2.3