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
+1 -1
View File
@@ -45,7 +45,7 @@ class DomainsTable(tables.Table):
class ExtensionsTable(tables.Table):
idkey = "id"
selection = tables.SelectionColumn("selection", width="4%", first=True)
selection = tables.SelectionColumn("selection", width="4%", header=False)
name = tables.Column("name", label=ugettext_noop("Name"), width="15%")
version = tables.Column("version", label=ugettext_noop("Version"), width="6%")
descr = tables.Column("description", label=ugettext_noop("Description"))
+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/>" \