From d051f230dc3f641beca7c17ae64b7cc86a2c0ccc Mon Sep 17 00:00:00 2001 From: Tom Price Date: Tue, 9 Aug 2016 15:46:08 +0100 Subject: [PATCH] Enable ajax-bootstrap-select. Requires some work as is currently not overly happy --- RIGS/templates/RIGS/event_form.html | 17 ++--------------- app/styles/app.scss | 2 ++ bower.json | 4 +++- db.sqlite3 | Bin 577536 -> 577536 bytes ember-cli-build.js | 9 +++++++++ templates/base.html | 3 ++- 6 files changed, 18 insertions(+), 17 deletions(-) diff --git a/RIGS/templates/RIGS/event_form.html b/RIGS/templates/RIGS/event_form.html index b2b4dcd7..cbcaf83f 100644 --- a/RIGS/templates/RIGS/event_form.html +++ b/RIGS/templates/RIGS/event_form.html @@ -5,21 +5,8 @@ {% block title %}{% if object.pk %}Event {% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %} {{ object.pk }}{% endif %}{% else %}New Event{% endif %}{% endblock %} -{% block css %} - - -{% endblock %} - -{% block preload_js %} - - -{% endblock %} - {% block js %} - - - @@ -76,7 +63,7 @@ var input = document.createElement('input'); input.setAttribute('type','date'); var notADateValue = 'not-a-date'; - input.setAttribute('value', notADateValue); + input.setAttribute('value', notADateValue); return !(input.value === notADateValue); } if(supportsDate()){ @@ -360,7 +347,7 @@ {% render_field form.status class+="form-control" %} - +