From 037f19a137cec99a1ba14c138b5cf97e425767f0 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Litza Date: Tue, 27 Dec 2011 22:13:17 +0100 Subject: Give MANY more filter options on shift view --- public/css/base.css | 18 ++++++++++++++++++ public/css/forms.js | 17 +++++++++++++++++ public/css/style11.css | 11 ++++++++++- 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 public/css/forms.js (limited to 'public') diff --git a/public/css/base.css b/public/css/base.css index 6fe914c4..30227ce5 100644 --- a/public/css/base.css +++ b/public/css/base.css @@ -351,3 +351,21 @@ tr:hover .hidden { .form ul { list-style: none; } + +.selection ul { + list-style: none; + padding: 0; +} + +.selection.rooms, +.selection.days, +.selection.types, +.selection.filled { + display: inline-block; + vertical-align: top; + margin-right: 15px; +} + +#filter { + padding: 10px; +} diff --git a/public/css/forms.js b/public/css/forms.js new file mode 100644 index 00000000..8a6e2c69 --- /dev/null +++ b/public/css/forms.js @@ -0,0 +1,17 @@ +function check_all(id) { + var obj = document.getElementById(id); + var boxes = obj.getElementsByTagName("input"); + for(var i = 0; i < boxes.length; i++) { + if(boxes[i].type == "checkbox") + boxes[i].checked = true; + } +} + +function uncheck_all(id) { + var obj = document.getElementById(id); + var boxes = obj.getElementsByTagName("input"); + for(var i = 0; i < boxes.length; i++) { + if(boxes[i].type == "checkbox") + boxes[i].checked = false; + } +} diff --git a/public/css/style11.css b/public/css/style11.css index b983d632..86720e6a 100644 --- a/public/css/style11.css +++ b/public/css/style11.css @@ -8,4 +8,13 @@ tr:hover > td { background: #f0f0f0; -} \ No newline at end of file +} + +.selection ul li.heading { + text-align: center; + font-weight: bold; +} + +.selection ul li:nth-child(even) { + background: #f0f0f0; +} -- cgit v1.2.3-54-g00ecf