diff --git a/pylons_app/templates/base/base.html b/pylons_app/templates/base/base.html --- a/pylons_app/templates/base/base.html +++ b/pylons_app/templates/base/base.html @@ -99,4 +99,15 @@ <%def name="js()"> + + + +<%def name="get_form_error(element)"> + %if hasattr(c,'form_errors') and type(c.form_errors) == dict: + %if c.form_errors.get(element,False): + + ${c.form_errors.get(element,'')} + + %endif + %endif \ No newline at end of file