From ddf3c2dad46a0c9586aec04d1a2621198df0bc2f Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Mon, 23 Apr 2012 17:43:29 +0200 Subject: [PATCH] wip: UI refactoring * Display help messages for form fields see #204 --- auth/forms.py | 3 +-- .../templates/amavis_quarantine/viewheader.html | 2 +- static/js/global.js | 1 + templates/common/generic_field.html | 2 ++ templates/common/mailheaders.html | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/auth/forms.py b/auth/forms.py index 7a1b4b5fb..6ec848dfb 100644 --- a/auth/forms.py +++ b/auth/forms.py @@ -8,6 +8,5 @@ class LoginForm(forms.Form): ) password = forms.CharField( label=_("Password"), - widget=forms.PasswordInput(attrs={"class" : "span3"}), - help_text=_("Password used to authenticate") + widget=forms.PasswordInput(attrs={"class" : "span3"}) ) diff --git a/extensions/amavis_quarantine/templates/amavis_quarantine/viewheader.html b/extensions/amavis_quarantine/templates/amavis_quarantine/viewheader.html index 3cd8ab7c5..6e5efab6c 100644 --- a/extensions/amavis_quarantine/templates/amavis_quarantine/viewheader.html +++ b/extensions/amavis_quarantine/templates/amavis_quarantine/viewheader.html @@ -1,4 +1,4 @@ -
+
 {% for k, v in headers %}{{ k }}: {{ v }}
 {% endfor %}
 
diff --git a/static/js/global.js b/static/js/global.js index 42e468791..72c9b7a95 100644 --- a/static/js/global.js +++ b/static/js/global.js @@ -40,6 +40,7 @@ function modalbox(e, css, defhref, defcb, defclosecb) { } var $div = $('') .one('shown', function() { + $(".help").popover(); if (modalcb != undefined) { if (typeof modalcb === "function") modalcb(); else eval(modalcb + '()'); } diff --git a/templates/common/generic_field.html b/templates/common/generic_field.html index 530b3903f..f0d21c98f 100644 --- a/templates/common/generic_field.html +++ b/templates/common/generic_field.html @@ -1,5 +1,7 @@ +{% load i18n %}