# HG changeset patch # User Paul Boddie # Date 1423348549 -3600 # Node ID 3fe1e159ccc59a3a2aeb1cad98b87e53b7fc3bb4 # Parent 2066cba01a44c6892e801ce3bd2bf834ca508b4b Fixed CSS class usage for show/hide labels. diff -r 2066cba01a44 -r 3fe1e159ccc5 htdocs/styles.css --- a/htdocs/styles.css Sat Feb 07 23:17:05 2015 +0100 +++ b/htdocs/styles.css Sat Feb 07 23:35:49 2015 +0100 @@ -116,14 +116,12 @@ input#showdays, /* Hide the enable labels when controls are already enabled. */ +/* Hide the disable labels when controls are already disabled. */ input#hidebusy:checked ~ .controls label.enable[for=hidebusy], -input#showdays:checked ~ .controls label.enable[for=showdays], - -/* Hide the disable labels when controls are already disabled. */ - +input#showdays:checked ~ .controls label.disable[for=showdays], input#hidebusy:not(:checked) ~ .controls label.disable[for=hidebusy], -input#showdays:not(:checked) ~ .controls label.disable[for=showdays], +input#showdays:not(:checked) ~ .controls label.enable[for=showdays], /* Hide calendar rows depending on the selected controls. */ diff -r 2066cba01a44 -r 3fe1e159ccc5 imip_manager.py --- a/imip_manager.py Sat Feb 07 23:17:05 2015 +0100 +++ b/imip_manager.py Sat Feb 07 23:35:49 2015 +0100 @@ -908,14 +908,14 @@ # Show controls for hiding empty days and busy slots. # The positioning of the control, paragraph and table are important here. - page.input(name="showdays", type="checkbox", value="hide", id="showdays", accesskey="D") + page.input(name="showdays", type="checkbox", value="show", id="showdays", accesskey="D") page.input(name="hidebusy", type="checkbox", value="hide", id="hidebusy", accesskey="B") page.p(class_="controls") page.label("Hide busy time periods", for_="hidebusy", class_="hidebusy enable") page.label("Show busy time periods", for_="hidebusy", class_="hidebusy disable") - page.label("Show empty days", for_="showdays", class_="showdays enable") - page.label("Hide empty days", for_="showdays", class_="showdays disable") + page.label("Show empty days", for_="showdays", class_="showdays disable") + page.label("Hide empty days", for_="showdays", class_="showdays enable") page.p.close() freebusy = self.store.get_freebusy(self.user)