Removed checkbox from the heading row.

fixes #222
This commit is contained in:
Antoine Nguyen
2012-04-06 15:51:06 +02:00
parent 342196b935
commit 774cf030c4
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -40,7 +40,9 @@ class SelectionColumn(Column):
usefull to select rows for grouped actions (modify, delete, etc.)
"""
def __str__(self):
return "<input type='checkbox' name='selectall' id='selectall' />"
if self.header:
return "<input type='checkbox' name='selectall' id='selectall' />"
return ""
def render(self, value, selection):
return "<input type='checkbox' id='%s' name='select_%s' value='%s' %s/>" \