aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/dispatch/templates')
-rw-r--r--app/dispatch/templates/dispatch/drivers/detail.html5
-rw-r--r--app/dispatch/templates/dispatch/invoice/detail-table.html11
-rw-r--r--app/dispatch/templates/dispatch/nav.html2
3 files changed, 6 insertions, 12 deletions
diff --git a/app/dispatch/templates/dispatch/drivers/detail.html b/app/dispatch/templates/dispatch/drivers/detail.html
index 8ce409d..9e4e7f3 100644
--- a/app/dispatch/templates/dispatch/drivers/detail.html
+++ b/app/dispatch/templates/dispatch/drivers/detail.html
@@ -46,7 +46,10 @@
<div class="row">
<div class="col s12">
<div class="right-align">
- <a class="btn green" href="{% url 'identity_edit' ident.pk %}">
+ {% if request.user.is_superuser %}
+ <a class="btn orange" href="{% url 'identity_default' object.pk ident.pk %}">Make Default Bill To</a>
+ {% endif %}
+ <a class="btn green" href="{% url 'identity_edit' object.pk ident.pk %}">
Edit
</a>
</div>
diff --git a/app/dispatch/templates/dispatch/invoice/detail-table.html b/app/dispatch/templates/dispatch/invoice/detail-table.html
index acb6e01..37fa2a5 100644
--- a/app/dispatch/templates/dispatch/invoice/detail-table.html
+++ b/app/dispatch/templates/dispatch/invoice/detail-table.html
@@ -56,7 +56,7 @@
<td>{{item.total}}</td>
</tr>
{% endfor %}
- <tr>
+ <tr class="spacer-row">
<td></td>
<td></td>
<td></td>
@@ -77,13 +77,4 @@
</div>
<style>
-.invoice-table table {
- border-collapse: collapse;
-}
-.invoice-table th, .invoice-table td, .invoice-table table {
- border: 1px solid black;
-}
-.invoice-table tr {
- height: 52px;
-}
</style>
diff --git a/app/dispatch/templates/dispatch/nav.html b/app/dispatch/templates/dispatch/nav.html
index a4fc8cb..a5f09e5 100644
--- a/app/dispatch/templates/dispatch/nav.html
+++ b/app/dispatch/templates/dispatch/nav.html
@@ -1,9 +1,9 @@
{% if request.user.is_authenticated %}
<li><a href="{% url 'load_list' %}">Loads</a></li>
+ <li><a href="{% url 'invoice_list' %}">Invoices</a></li>
{% if request.user.is_superuser %}
<li><a href="{% url 'driver_list' %}">Drivers</a></li>
<li><a href="{% url 'customer_list' %}">Customers</a></li>
- <li><a href="{% url 'invoice_list' %}">Invoices</a></li>
{% else %}
<li><a href="{% url 'driver_summary' request.user.id %}">Summary</a>
<li><a href="{% url 'driver_details' request.user.id %}">My Account</a></li>