mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-27 06:18:43 +01:00
* see #92: Some graphical fixes,
* Documentation update, * Ugly hacks to make the stats plugin work as before.
This commit is contained in:
+2
-2
@@ -152,12 +152,12 @@ class SuperAdminsTable(tables.Table):
|
||||
selection = tables.SelectionColumn("selection", width="4%", first=True)
|
||||
_1_user_name = tables.Column("user_name", label=_("User name"))
|
||||
_2_full_name = tables.Column("full_name", label=_("Full name"))
|
||||
_3_enabled = tables.Column("enabled", label=_("Enabled_m"), width="10%")
|
||||
_3_enabled = tables.Column("enabled", label=gender("Enabled", "m"), width="10%")
|
||||
|
||||
class DomainAdminsTable(tables.Table):
|
||||
idkey = "id"
|
||||
selection = tables.SelectionColumn("selection", width="4%", first=True)
|
||||
_1_domain = tables.Column("domain", label=_("Domain"))
|
||||
_2_full_name = tables.Column("full_name", label=_("Full name"))
|
||||
_3_enabled = tables.Column("enabled", label=_("Enabled_m"), width="10%")
|
||||
_3_enabled = tables.Column("enabled", label=gender("Enabled", "m"), width="10%")
|
||||
|
||||
|
||||
@@ -87,12 +87,19 @@ def dommenu_entry(name, label, img, listurl, newurl):
|
||||
def domains_menu(selection, user, domid):
|
||||
args = domid != "" and ("?domid=%s" % domid) or ""
|
||||
entries = []
|
||||
if selection == "stats":
|
||||
disabled = True
|
||||
else:
|
||||
disabled = False
|
||||
|
||||
entries += [{"name" : "new",
|
||||
"label" : _("New"),
|
||||
"img" : static_url("pics/add.png")},
|
||||
"img" : static_url("pics/add.png"),
|
||||
"disabled" : disabled},
|
||||
{"name" : "remove",
|
||||
"label" : _("Remove"),
|
||||
"img" : static_url("pics/remove.png")
|
||||
"img" : static_url("pics/remove.png"),
|
||||
"disabled" : disabled
|
||||
}]
|
||||
|
||||
entries += [{"separator" : True}]
|
||||
|
||||
@@ -450,6 +450,7 @@ def permissions(request, tplname='admin/permissions.html'):
|
||||
permtables += [
|
||||
{"id" : "super_admins",
|
||||
"title" : _("Super administrators"),
|
||||
"rel" : "300 140",
|
||||
"content" : SuperAdminsPerms().get(request)}
|
||||
]
|
||||
|
||||
@@ -458,6 +459,7 @@ def permissions(request, tplname='admin/permissions.html'):
|
||||
permtables += [
|
||||
{"id" : "domain_admins",
|
||||
"title" : _("Domain administrators"),
|
||||
"rel" : "300 180",
|
||||
"content" : DomainAdminsPerms().get(request)}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user