aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/templates
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2017-10-28 10:38:02 -0400
committerMitch Riedstra <mitch@riedstra.us>2017-10-28 10:38:02 -0400
commitd1c5b666d8e55572cdceb3401222d8e4dfecdb58 (patch)
tree0c210ee51539b735834e3d23765994b8b6739300 /app/dispatch/templates
parentc74a4e1b2251cac6adbb812d0f3a98cca89dfcc8 (diff)
downloaddispatch-tracker-d1c5b666d8e55572cdceb3401222d8e4dfecdb58.tar.gz
dispatch-tracker-d1c5b666d8e55572cdceb3401222d8e4dfecdb58.tar.xz
Ability to edit your Invoice Number. Clean up some of the forms for non-admins
Diffstat (limited to 'app/dispatch/templates')
-rw-r--r--app/dispatch/templates/dispatch/drivers/detail.html48
-rw-r--r--app/dispatch/templates/dispatch/userinvoicenumber/edit.html18
2 files changed, 63 insertions, 3 deletions
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 @@
</div>
<div class="row">
- <div class="col s12">
+ <div class="col s6">
+ <h5>General Information</h5>
+ </div>
+ <div class="col s6">
<div class="right-align">
+ <a class="btn blue" href="{% url 'driver_summary' object.pk %}">View Summary</a>
<a class="btn green" href="{% url 'driver_edit' object.pk %}">Edit</a>
</div>
</div>
@@ -42,9 +46,13 @@
</div>
+
{% if ident is not None %}
<div class="row">
- <div class="col s12">
+ <div class="col s6">
+ <h5>Invoice Identity</h5>
+ </div>
+ <div class="col s6">
<div class="right-align">
{% if request.user.is_superuser %}
<a class="btn orange" href="{% url 'identity_default' object.pk ident.pk %}">Make Default Bill To</a>
@@ -86,7 +94,7 @@
<div class="row">
<div class="col s12">
<div class="right-align">
- <a class="btn green" href="{% url 'identity_create' object.pk %}">Create New Identity</a>
+ <a class="btn green" href="{% url 'identity_create' object.pk ident.pk %}">Create New Identity</a>
</div>
</div>
</div>
@@ -97,4 +105,38 @@
</div>
{% endif %}
+
+<div class="row">
+ <div class="col s6">
+ <h5>
+ Current Invoice Number
+ </h5>
+ </div>
+ <div class="col s6">
+ <div class="right-align">
+ <a class="btn green" href="{% url 'userinvoicenumber_edit' object.pk invoice_number.pk %}">
+ Edit
+ </a>
+ </div>
+ </div>
+</div>
+
+<div class="row">
+ <div class="col s12">
+ <table>
+ <tr>
+ <th>Invoice Number</th>
+ <td>{{invoice_number.number}}</td>
+ </tr>
+ </table>
+ </div>
+</div>
+
+<div class="row">
+ <div class="col s12">
+ <p>This number will automatically increment when new invoices
+ are generated from the load summary page</p>
+ </div>
+</div>
+
{% 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 %}
+<div class="row">
+ <div class="col s12 m6">
+ <h1>
+ Invoice Number for {{object.user.username}}
+ </h1>
+ </div>
+</div>
+
+<form action="" method="post">{% csrf_token %}
+ {{ form.as_p }}
+ <input type="submit" class="btn blue" value="Update" />
+</form>
+{% endblock %}