1.1 --- a/htdocs/styles.css Thu Oct 22 18:59:57 2015 +0200
1.2 +++ b/htdocs/styles.css Thu Oct 22 22:07:51 2015 +0200
1.3 @@ -79,10 +79,14 @@
1.4 td.event {
1.5 background-color: #ff8;
1.6 border: 2px solid #000;
1.7 +}
1.8 +
1.9 +td.empty:not(.padding),
1.10 +td.event {
1.11 width: 10em;
1.12 }
1.13
1.14 -td.empty {
1.15 +td.empty.padding {
1.16 min-width: 10em;
1.17 }
1.18
2.1 --- a/imipweb/calendar.py Thu Oct 22 18:59:57 2015 +0200
2.2 +++ b/imipweb/calendar.py Thu Oct 22 22:07:51 2015 +0200
2.3 @@ -917,7 +917,7 @@
2.4 empty = columns - len(active)
2.5
2.6 if empty:
2.7 - self._empty_slot(point, endpoint, empty)
2.8 + self._empty_slot(point, endpoint, empty, True)
2.9
2.10 page.tr.close()
2.11
2.12 @@ -965,7 +965,7 @@
2.13 else:
2.14 page.input(name="slot", type="checkbox", value=value, id=identifier, class_="newevent selector")
2.15
2.16 - def _empty_slot(self, point, endpoint, colspan):
2.17 + def _empty_slot(self, point, endpoint, colspan, at_end=False):
2.18
2.19 """
2.20 Show an empty slot cell for the given 'point' and 'endpoint', with the
2.21 @@ -973,7 +973,7 @@
2.22 """
2.23
2.24 page = self.page
2.25 - page.td(class_="empty%s" % (point.indicator == Point.PRINCIPAL and " container" or ""), colspan=colspan)
2.26 + page.td(class_="empty%s%s" % (point.indicator == Point.PRINCIPAL and " container" or "", at_end and " padding" or ""), colspan=colspan)
2.27 if point.indicator == Point.PRINCIPAL:
2.28 value, identifier = self._slot_value_and_identifier(point, endpoint)
2.29 page.label("Select/deselect period", class_="newevent popup", for_=identifier)