Skip to content

Commit

Permalink
minor fix for list template.
Browse files Browse the repository at this point in the history
  • Loading branch information
percious committed Feb 9, 2010
1 parent b907f3b commit 9120c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tw2/forms/templates/table_layout.mak
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%namespace name="tw" module="tw2.core.mako_util"/>\
<table ${tw.attrs(attrs=w.attrs)}>
% for i,c in enumerate(w.children_non_hidden):
<tr class="${(i % 2 and 'even' or 'odd') + ((c.validator and c.validator.required) and ' required' or '') + (c.error_msg and ' error' or '')}" \
<tr class="${(i % 2 and 'even' or 'odd') + ((c.validator and getattr(c.validator, 'required', None)) and ' required' or '') + (c.error_msg and ' error' or '')}" \
%if w.hover_help and c.help_text:
title="${c.help_text}" \
%endif
Expand Down

0 comments on commit 9120c41

Please sign in to comment.