From cdc83542edda0910caf3e2dfbf1637d3163cb1aa Mon Sep 17 00:00:00 2001 From: Tom Price Date: Tue, 2 Dec 2014 01:44:35 +0000 Subject: [PATCH] Added full MIC name displaying to event detail Optimised displaying of values in autocomplete boxes on the event form (removed extra AJAX request) Highlighted missing MIC better due to bootstrap changes --- RIGS/templates/RIGS/event_detail.html | 4 ++-- RIGS/templates/RIGS/event_form.html | 21 ++++----------------- RIGS/templates/RIGS/rigboard.html | 10 +++++++--- 3 files changed, 13 insertions(+), 22 deletions(-) diff --git a/RIGS/templates/RIGS/event_detail.html b/RIGS/templates/RIGS/event_detail.html index 96b13d81..9e56e10f 100644 --- a/RIGS/templates/RIGS/event_detail.html +++ b/RIGS/templates/RIGS/event_detail.html @@ -60,9 +60,9 @@
{{object.venue}}
Event MIC
-
{{event.mic.get_full_name}}
+
{{ event.mic.name }}
-
 
+
 
{% if event.is_rig %}
Crew Meet
diff --git a/RIGS/templates/RIGS/event_form.html b/RIGS/templates/RIGS/event_form.html index 34435adc..90698f29 100644 --- a/RIGS/templates/RIGS/event_form.html +++ b/RIGS/templates/RIGS/event_form.html @@ -106,11 +106,7 @@
@@ -137,11 +133,7 @@
@@ -295,14 +287,9 @@ + data-target="{{ form.mic.id_for_label }}" + value="{{ object.mic.name|default_if_none:"" }}"/> {#% include 'RIGS/eventitem_table.html' %#} diff --git a/RIGS/templates/RIGS/rigboard.html b/RIGS/templates/RIGS/rigboard.html index c64f42ab..f38fe68c 100644 --- a/RIGS/templates/RIGS/rigboard.html +++ b/RIGS/templates/RIGS/rigboard.html @@ -47,7 +47,7 @@ {% elif event.mic %} warning {% else %} - danger + danger text-danger {% endif %} "> {{ event.pk }} @@ -100,8 +100,12 @@ {% endif %} - - {{ event.mic.initials }} + + {% if event.mic or not event.is_rig %} + {{ event.mic.initials }} + {% else %} + + {% endif %} {% endfor %}