1.1 --- a/htdocs/styles.css Mon Feb 02 18:16:49 2015 +0100
1.2 +++ b/htdocs/styles.css Mon Feb 02 18:38:18 2015 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /* Table styling. */
1.5
1.6 -table#calendar,
1.7 -table#object {
1.8 +table.calendar,
1.9 +table.object {
1.10 border: 2px solid #000;
1.11 }
1.12
1.13 @@ -94,14 +94,20 @@
1.14 display: none;
1.15 }
1.16
1.17 -input#hideslots:checked ~ p label.enable[for=hideslots] {
1.18 +input#hideslots:checked ~ .controls label.enable[for=hideslots] {
1.19 + display: none;
1.20 +}
1.21 +
1.22 +input#hideslots:not(:checked) ~ .controls label.disable[for=hideslots] {
1.23 display: none;
1.24 }
1.25
1.26 -input#hideslots:not(:checked) ~ p label.disable[for=hideslots] {
1.27 +input#hideslots:checked ~ .calendar tr.slot.daystart.empty {
1.28 display: none;
1.29 }
1.30
1.31 -input#hideslots:checked ~ table tr.slot.daystart.empty {
1.32 - display: none;
1.33 +label.enable,
1.34 +label.disable {
1.35 + border-left: 1em solid #faa; /* th.participantheading background-color */
1.36 + padding-left: 0.25em;
1.37 }
2.1 --- a/imip_manager.py Mon Feb 02 18:16:49 2015 +0100
2.2 +++ b/imip_manager.py Mon Feb 02 18:38:18 2015 +0100
2.3 @@ -525,7 +525,7 @@
2.4
2.5 # Provide a summary of the object.
2.6
2.7 - page.table(id="object", cellspacing=5, cellpadding=5)
2.8 + page.table(class_="object", cellspacing=5, cellpadding=5)
2.9 page.thead()
2.10 page.tr()
2.11 page.th("Event", class_="mainheading", colspan=2)
2.12 @@ -735,7 +735,7 @@
2.13
2.14 # Show a button for scheduling a new event.
2.15
2.16 - page.p()
2.17 + page.p(class_="controls")
2.18 page.input(name="newevent", type="submit", value="New event", id="newevent")
2.19 page.p.close()
2.20
2.21 @@ -744,7 +744,7 @@
2.22
2.23 page.input(name="hideslots", type="checkbox", value="hide", id="hideslots")
2.24
2.25 - page.p()
2.26 + page.p(class_="controls")
2.27 page.label("Hide unused time periods", for_="hideslots", class_="enable")
2.28 page.label("Show unused time periods", for_="hideslots", class_="disable")
2.29 page.p.close()
2.30 @@ -864,7 +864,7 @@
2.31 partitioned_group_types.append(group_type)
2.32 partitioned_group_sources.append(group_source)
2.33
2.34 - page.table(cellspacing=5, cellpadding=5, id="calendar")
2.35 + page.table(cellspacing=5, cellpadding=5, class_="calendar")
2.36 self.show_calendar_participant_headings(partitioned_group_types, partitioned_group_sources, group_columns)
2.37 self.show_calendar_days(days, partitioned_groups, partitioned_group_types, group_columns)
2.38 page.table.close()