diff options
author | Kevin McCarthy <kmccarth@redhat.com> | 2007-10-19 08:59:40 -0700 |
---|---|---|
committer | Kevin McCarthy <kmccarth@redhat.com> | 2007-10-19 08:59:40 -0700 |
commit | fd8690dd63a812361401b341f8cbf857b1b98464 (patch) | |
tree | 0c7f0a9d330edc5a71fb1462e6c7535bd9f02881 /ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py | |
parent | 4427ff78f643836ef7faf379eaf376bd99da7085 (diff) | |
download | freeipa.git-fd8690dd63a812361401b341f8cbf857b1b98464.tar.gz freeipa.git-fd8690dd63a812361401b341f8cbf857b1b98464.tar.xz freeipa.git-fd8690dd63a812361401b341f8cbf857b1b98464.zip |
Add a flash message to the top of the page when there are validation errors.
Diffstat (limited to 'ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py')
-rw-r--r-- | ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py b/ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py index e0ee6ba4..f509513a 100644 --- a/ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py +++ b/ipa-server/ipa-gui/ipagui/subcontrollers/delegation.py @@ -57,6 +57,8 @@ class DelegationController(IPAController): tg_errors, kw = self.delegatevalidate(**kw) if tg_errors: + turbogears.flash("There were validation errors.<br/>" + + "Please see the messages below for details.") return dict(form=delegate_form, delegate=kw, tg_template='ipagui.templates.delegatenew') @@ -85,7 +87,8 @@ class DelegationController(IPAController): def edit(self, acistr, tg_errors=None): """Display delegate page""" if tg_errors: - turbogears.flash("There was a problem with the form!") + turbogears.flash("There were validation errors.<br/>" + + "Please see the messages below for details.") client = self.get_ipaclient() @@ -119,6 +122,8 @@ class DelegationController(IPAController): tg_errors, kw = self.delegatevalidate(**kw) if tg_errors: + turbogears.flash("There were validation errors.<br/>" + + "Please see the messages below for details.") return dict(form=delegate_form, delegate=kw, tg_template='ipagui.templates.delegatenew') |