1.1 --- a/imipweb/calendar.py Thu Oct 22 18:59:57 2015 +0200
1.2 +++ b/imipweb/calendar.py Thu Oct 22 22:07:51 2015 +0200
1.3 @@ -917,7 +917,7 @@
1.4 empty = columns - len(active)
1.5
1.6 if empty:
1.7 - self._empty_slot(point, endpoint, empty)
1.8 + self._empty_slot(point, endpoint, empty, True)
1.9
1.10 page.tr.close()
1.11
1.12 @@ -965,7 +965,7 @@
1.13 else:
1.14 page.input(name="slot", type="checkbox", value=value, id=identifier, class_="newevent selector")
1.15
1.16 - def _empty_slot(self, point, endpoint, colspan):
1.17 + def _empty_slot(self, point, endpoint, colspan, at_end=False):
1.18
1.19 """
1.20 Show an empty slot cell for the given 'point' and 'endpoint', with the
1.21 @@ -973,7 +973,7 @@
1.22 """
1.23
1.24 page = self.page
1.25 - page.td(class_="empty%s" % (point.indicator == Point.PRINCIPAL and " container" or ""), colspan=colspan)
1.26 + page.td(class_="empty%s%s" % (point.indicator == Point.PRINCIPAL and " container" or "", at_end and " padding" or ""), colspan=colspan)
1.27 if point.indicator == Point.PRINCIPAL:
1.28 value, identifier = self._slot_value_and_identifier(point, endpoint)
1.29 page.label("Select/deselect period", class_="newevent popup", for_=identifier)