mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
+1
-1
@@ -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
@@ -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/>" \
|
||||
|
||||
Reference in New Issue
Block a user