From 3d80e054c10f1dca4088fec9b552d8d8b338c903 Mon Sep 17 00:00:00 2001 From: gaazzopa Date: Fri, 6 Nov 2020 20:06:29 +0100 Subject: [PATCH] Added datepicker validation --- cara/apps/calculator/static/css/form.css | 8 ++++-- cara/apps/calculator/static/form.html | 6 ++-- cara/apps/calculator/static/js/form.js | 36 ++++++++++++++++++++++-- 3 files changed, 42 insertions(+), 8 deletions(-) diff --git a/cara/apps/calculator/static/css/form.css b/cara/apps/calculator/static/css/form.css index 9eb2b9c5..20441bbf 100644 --- a/cara/apps/calculator/static/css/form.css +++ b/cara/apps/calculator/static/css/form.css @@ -2,6 +2,10 @@ color: gray; } -disabled { +.disabled { color: black; -} \ No newline at end of file +} + +.red { + box-shadow: 0px 0px 2px 1px red; +} diff --git a/cara/apps/calculator/static/form.html b/cara/apps/calculator/static/form.html index 22059db8..d7ac9946 100644 --- a/cara/apps/calculator/static/form.html +++ b/cara/apps/calculator/static/form.html @@ -18,7 +18,7 @@ Beta v1.0.0 Please send feedback to CARA-dev@cern.ch

CARA Covid Airborne Risk Assessment tool

-
+
@@ -94,8 +94,8 @@ Beta v1.0.0 Please send feedback to When is the event?
   - -
+ +