1.1 --- a/htdocs/styles.css Sat Feb 07 23:17:05 2015 +0100
1.2 +++ b/htdocs/styles.css Sat Feb 07 23:35:49 2015 +0100
1.3 @@ -116,14 +116,12 @@
1.4 input#showdays,
1.5
1.6 /* Hide the enable labels when controls are already enabled. */
1.7 +/* Hide the disable labels when controls are already disabled. */
1.8
1.9 input#hidebusy:checked ~ .controls label.enable[for=hidebusy],
1.10 -input#showdays:checked ~ .controls label.enable[for=showdays],
1.11 -
1.12 -/* Hide the disable labels when controls are already disabled. */
1.13 -
1.14 +input#showdays:checked ~ .controls label.disable[for=showdays],
1.15 input#hidebusy:not(:checked) ~ .controls label.disable[for=hidebusy],
1.16 -input#showdays:not(:checked) ~ .controls label.disable[for=showdays],
1.17 +input#showdays:not(:checked) ~ .controls label.enable[for=showdays],
1.18
1.19 /* Hide calendar rows depending on the selected controls. */
1.20
2.1 --- a/imip_manager.py Sat Feb 07 23:17:05 2015 +0100
2.2 +++ b/imip_manager.py Sat Feb 07 23:35:49 2015 +0100
2.3 @@ -908,14 +908,14 @@
2.4 # Show controls for hiding empty days and busy slots.
2.5 # The positioning of the control, paragraph and table are important here.
2.6
2.7 - page.input(name="showdays", type="checkbox", value="hide", id="showdays", accesskey="D")
2.8 + page.input(name="showdays", type="checkbox", value="show", id="showdays", accesskey="D")
2.9 page.input(name="hidebusy", type="checkbox", value="hide", id="hidebusy", accesskey="B")
2.10
2.11 page.p(class_="controls")
2.12 page.label("Hide busy time periods", for_="hidebusy", class_="hidebusy enable")
2.13 page.label("Show busy time periods", for_="hidebusy", class_="hidebusy disable")
2.14 - page.label("Show empty days", for_="showdays", class_="showdays enable")
2.15 - page.label("Hide empty days", for_="showdays", class_="showdays disable")
2.16 + page.label("Show empty days", for_="showdays", class_="showdays disable")
2.17 + page.label("Hide empty days", for_="showdays", class_="showdays enable")
2.18 page.p.close()
2.19
2.20 freebusy = self.store.get_freebusy(self.user)