Changeset - 8dd7305fbc2d
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 15 years ago 2010-05-21 20:37:34
marcin@python-works.com
moved get_form_error to base
1 file changed with 11 insertions and 0 deletions:
0 comments (0 inline, 0 general)
pylons_app/templates/base/base.html
Show inline comments
 
@@ -99,4 +99,15 @@
 

	
 
<%def name="js()">
 
<script type="text/javascript" src="/js/yui/utilities/utilities.js"></script>
 
</%def>
 

	
 
<!-- DEFINITION OF FORM ERROR FETCHER -->
 
<%def name="get_form_error(element)">
 
	%if hasattr(c,'form_errors') and type(c.form_errors) == dict:
 
        %if c.form_errors.get(element,False):
 
            <span class="error-message">
 
                ${c.form_errors.get(element,'')}
 
            </span>
 
        %endif
 
	%endif           
 
</%def>
 
\ No newline at end of file
0 comments (0 inline, 0 general)