1.1 --- a/imip_manager.py Mon Feb 02 18:38:18 2015 +0100
1.2 +++ b/imip_manager.py Mon Feb 02 18:46:59 2015 +0100
1.3 @@ -739,12 +739,15 @@
1.4 page.input(name="newevent", type="submit", value="New event", id="newevent")
1.5 page.p.close()
1.6
1.7 - # Show a control for hiding empty slots.
1.8 + # Show controls for hiding empty and busy slots.
1.9 # The positioning of the control, paragraph and table are important here.
1.10
1.11 page.input(name="hideslots", type="checkbox", value="hide", id="hideslots")
1.12 + page.input(name="hidebusy", type="checkbox", value="hide", id="hidebusy")
1.13
1.14 page.p(class_="controls")
1.15 + page.label("Hide busy time periods", for_="hidebusy", class_="enable")
1.16 + page.label("Show busy time periods", for_="hidebusy", class_="disable")
1.17 page.label("Hide unused time periods", for_="hideslots", class_="enable")
1.18 page.label("Show unused time periods", for_="hideslots", class_="disable")
1.19 page.p.close()
1.20 @@ -962,7 +965,7 @@
1.21
1.22 css = " ".join(
1.23 ["slot"] +
1.24 - (not have_active and ["empty"] or []) +
1.25 + (have_active and ["busy"] or ["empty"]) +
1.26 (continuation and ["daystart"] or [])
1.27 )
1.28