From 01d2eae7bcffd4c36684be2a15afec8da78fabd3 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Sun, 10 Jul 2016 11:14:24 +0100 Subject: [PATCH] More invoice UI improvements - makes colouring consistent - also closes #242 --- RIGS/templates/RIGS/invoice_detail.html | 7 +++++-- RIGS/templates/RIGS/invoice_list.html | 19 +++++++++++++++++-- templates/base.html | 4 ++-- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/RIGS/templates/RIGS/invoice_detail.html b/RIGS/templates/RIGS/invoice_detail.html index 2973c358..af26ad21 100644 --- a/RIGS/templates/RIGS/invoice_detail.html +++ b/RIGS/templates/RIGS/invoice_detail.html @@ -38,8 +38,11 @@
-
-
Event Details
+
+
Event Details + {% if object.void %}(VOID){% elif object.is_closed %}(PAID){% else %}(OUTSTANDING){% endif %} + +
Event Number
diff --git a/RIGS/templates/RIGS/invoice_list.html b/RIGS/templates/RIGS/invoice_list.html index 5bd7ef70..7dc6d8ee 100644 --- a/RIGS/templates/RIGS/invoice_list.html +++ b/RIGS/templates/RIGS/invoice_list.html @@ -29,8 +29,23 @@ {% for object in object_list %} {{ object.pk }} - N{{ object.event.pk|stringformat:"05d" }}: {{ object.event.name }}
- {{ object.event.get_status_display }} + N{{ object.event.pk|stringformat:"05d" }}: {{ object.event.name }}
+ {{ object.event.get_status_display }} + {% if not object.event.mic %}(No MIC){% endif %} + {% if object.event.organisation %} {{ object.event.organisation.name }} diff --git a/templates/base.html b/templates/base.html index 7a2d15f9..24cc30bc 100644 --- a/templates/base.html +++ b/templates/base.html @@ -76,9 +76,9 @@