From ef815360663034e03948dc75ae4c5d43780fd1be Mon Sep 17 00:00:00 2001 From: Tom Price Date: Thu, 19 May 2016 14:21:21 +0100 Subject: [PATCH 1/2] Add tooltips to rig type selectors. Closes #227 --- RIGS/templates/RIGS/event_form.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/RIGS/templates/RIGS/event_form.html b/RIGS/templates/RIGS/event_form.html index 0e7aa6ad..0b855f17 100644 --- a/RIGS/templates/RIGS/event_form.html +++ b/RIGS/templates/RIGS/event_form.html @@ -29,9 +29,9 @@ } function setTime02Hours() { - var id_start = "{{ form.start_date.id_for_label }}" - var id_end_date = "{{ form.end_date.id_for_label }}" - var id_end_time = "{{ form.end_time.id_for_label }}" + var id_start = "{{ form.start_date.id_for_label }}"; + var id_end_date = "{{ form.end_date.id_for_label }}"; + var id_end_time = "{{ form.end_time.id_for_label }}"; if ($('#'+id_start).val() == $('#'+id_end_date).val()) { var end_date = new Date($('#'+id_end_date).val()); end_date.setDate(end_date.getDate() + 1); @@ -67,7 +67,7 @@ $('#{{form.is_rig.auto_id}}').prop('checked', false); $('.form-is_rig').slideUp(); } - }) + }); {% endif %} function supportsDate() { @@ -106,7 +106,7 @@ }); } - }) + }); $(document).ready(function () { setupItemTable($("#{{ form.items_json.id_for_label }}").val()); @@ -150,10 +150,12 @@
- + - +
From 2913b254b4fb808a281a9952abfb304c000200d9 Mon Sep 17 00:00:00 2001 From: Tom Price Date: Thu, 19 May 2016 14:33:33 +0100 Subject: [PATCH 2/2] Fix an overflow issue with dropdown fields. Closes #204 --- RIGS/templates/RIGS/event_form.html | 1 + 1 file changed, 1 insertion(+) diff --git a/RIGS/templates/RIGS/event_form.html b/RIGS/templates/RIGS/event_form.html index 0b855f17..28e307ca 100644 --- a/RIGS/templates/RIGS/event_form.html +++ b/RIGS/templates/RIGS/event_form.html @@ -63,6 +63,7 @@ } else { $('.form-is_rig').slideDown(); } + $('.form-hws').css('overflow', 'visible'); } else { $('#{{form.is_rig.auto_id}}').prop('checked', false); $('.form-is_rig').slideUp();