* Added a simple box to display the current resource usage (see #105)

* Cleanup (see #204)
* Fixed javascript issues
This commit is contained in:
Antoine Nguyen
2012-04-11 15:07:04 +02:00
parent 303c84eb64
commit 13c699e855
27 changed files with 106 additions and 323 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ class AccountFormGeneral(forms.ModelForm):
role = None
if self.cleaned_data.has_key("role"):
role = self.cleaned_data["role"]
elif self.user.group == "DomainAdmins":
elif self.user.group == "DomainAdmins" and self.user != account:
role = "SimpleUsers"
if role is not None:
account.groups.clear()
+2 -2
View File
@@ -203,6 +203,6 @@ def gender(value, target):
return value
@register.simple_tag
def get_footer_content(user, objtype):
res = events.raiseQueryEvent("AdminFooterDisplay", user, objtype)
def get_extra_admin_content(user, target, currentpage):
res = events.raiseQueryEvent("ExtraAdminContent", user, target, currentpage)
return "".join(res)
+1
View File
@@ -355,6 +355,7 @@ def editaccount(request, accountid, tplname="common/tabforms.html"):
ctx = dict(
title=account.username,
formid="accountform",
action=reverse(editaccount, args=[accountid]),
action_label=_("Update"),
action_classes="submit"