From a40923f88dcccc88a968518d7a7b649d237934c2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 2 Aug 2018 13:46:31 +0000 Subject: [PATCH] Bug 21148: Dropdowns styled by the Select2 plugin do not highlight missing required fields This patch adds some CSS to target mandatory fields on the add item screen which are styled by the Select2 plugin. To test you must have at least one item field marked mandatory and linked to an authorized value. Open the add item form for an existing record. Try to submit the form without making a selection in the mandatory dropdown. You should get an alert warning you that you have empty mandatory fields, and the field should be highlighted in yellow. --- koha-tmpl/intranet-tmpl/prog/css/select2.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/css/select2.css b/koha-tmpl/intranet-tmpl/prog/css/select2.css index 82367f6..c9550fd 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/select2.css +++ b/koha-tmpl/intranet-tmpl/prog/css/select2.css @@ -6,3 +6,7 @@ background: initial; background-color : #FFFF99; } + +.select2-container.missing .select2-choice { + background: #ffc none; +} \ No newline at end of file -- 2.1.4