Skip to content

Commit

Permalink
Fixup genshi layout templates for formencode
Browse files Browse the repository at this point in the history
  • Loading branch information
paj committed Dec 2, 2010
1 parent 8db9cee commit a303ea0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tw2/forms/templates/list_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<py:for each="c in w.children_hidden">
${c.display()}
</py:for>
<li py:for="i,c in enumerate(w.children_non_hidden)" class="${(i % 2 and 'even' or 'odd') + ((c.validator and c.validator.required) and ' required' or '') + (c.error_msg and ' error' or '')}" title="${w.hover_help and c.help_text or None}" py:attrs="c.container_attrs">
<li py:for="i,c in enumerate(w.children_non_hidden)" class="${(i % 2 and 'even' or 'odd') + ((c.validator and getattr(c.validator, 'required', None)) and ' required' or '') + (c.error_msg and ' error' or '')}" title="${w.hover_help and c.help_text or None}" py:attrs="c.container_attrs">
<label>$c.label</label>
${c.display()}
<py:if test="not w.hover_help">$c.help_text</py:if>
Expand Down
2 changes: 1 addition & 1 deletion tw2/forms/templates/table_layout.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<table xmlns:py="http://genshi.edgewall.org/" py:attrs="w.attrs">
<tr py:for="i,c in enumerate(w.children_non_hidden)" class="${(i % 2 and 'even' or 'odd') + ((c.validator and c.validator.required) and ' required' or '') + (c.error_msg and ' error' or '')}" title="${w.hover_help and c.help_text or None}" py:attrs="c.container_attrs" id="${c.compound_id}:container">
<tr py:for="i,c in enumerate(w.children_non_hidden)" class="${(i % 2 and 'even' or 'odd') + ((c.validator and getattr(c.validator, 'required', None)) and ' required' or '') + (c.error_msg and ' error' or '')}" title="${w.hover_help and c.help_text or None}" py:attrs="c.container_attrs" id="${c.compound_id}:container">
<th py:if="c.label">$c.label</th>
<td py:attrs="(not c.label) and dict(colspan='2') or None">
${c.display()}
Expand Down

0 comments on commit a303ea0

Please sign in to comment.