1.1 --- a/htdocs/styles.css Mon Feb 02 18:38:18 2015 +0100
1.2 +++ b/htdocs/styles.css Mon Feb 02 18:46:59 2015 +0100
1.3 @@ -106,6 +106,24 @@
1.4 display: none;
1.5 }
1.6
1.7 +/* Hiding/showing busy slots/periods. */
1.8 +
1.9 +input#hidebusy {
1.10 + display: none;
1.11 +}
1.12 +
1.13 +input#hidebusy:checked ~ .controls label.enable[for=hidebusy] {
1.14 + display: none;
1.15 +}
1.16 +
1.17 +input#hidebusy:not(:checked) ~ .controls label.disable[for=hidebusy] {
1.18 + display: none;
1.19 +}
1.20 +
1.21 +input#hidebusy:checked ~ .calendar tr.slot.busy {
1.22 + display: none;
1.23 +}
1.24 +
1.25 label.enable,
1.26 label.disable {
1.27 border-left: 1em solid #faa; /* th.participantheading background-color */
2.1 --- a/imip_manager.py Mon Feb 02 18:38:18 2015 +0100
2.2 +++ b/imip_manager.py Mon Feb 02 18:46:59 2015 +0100
2.3 @@ -739,12 +739,15 @@
2.4 page.input(name="newevent", type="submit", value="New event", id="newevent")
2.5 page.p.close()
2.6
2.7 - # Show a control for hiding empty slots.
2.8 + # Show controls for hiding empty and busy slots.
2.9 # The positioning of the control, paragraph and table are important here.
2.10
2.11 page.input(name="hideslots", type="checkbox", value="hide", id="hideslots")
2.12 + page.input(name="hidebusy", type="checkbox", value="hide", id="hidebusy")
2.13
2.14 page.p(class_="controls")
2.15 + page.label("Hide busy time periods", for_="hidebusy", class_="enable")
2.16 + page.label("Show busy time periods", for_="hidebusy", class_="disable")
2.17 page.label("Hide unused time periods", for_="hideslots", class_="enable")
2.18 page.label("Show unused time periods", for_="hideslots", class_="disable")
2.19 page.p.close()
2.20 @@ -962,7 +965,7 @@
2.21
2.22 css = " ".join(
2.23 ["slot"] +
2.24 - (not have_active and ["empty"] or []) +
2.25 + (have_active and ["busy"] or ["empty"]) +
2.26 (continuation and ["daystart"] or [])
2.27 )
2.28