Permalink
Browse files

fix messages error

  • Loading branch information...
1 parent 8654033 commit fbc9dd081bd4c51f6a179b2072a684ee22ff4ce2 @amleczko amleczko committed Apr 7, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 deform_bootstrap/templates/mapping_item.pt
@@ -26,21 +26,22 @@
tal:attributes="id repeat.msg.index==0 and errstr or
('%s-%s' % (errstr, repeat.msg.index))"
class="${field.widget.error_class}">
- <tal:block i18n:translate="">${msg}</tal:block>
+ <tal:block i18n:translate="" condition="msg">${msg}</tal:block>
</span>
</span>
<span tal:replace="structure field.serialize(cstruct)" />
<span class="help-inline"
- tal:condition="field.error and not field.widget.hidden and not field.typ.__class__.__name__=='Mapping' and not inline">
+ tal:condition="field.error and not field.widget.hidden and not field.typ.__class__.__name__=='Mapping' and not inline">
+
<span
tal:define="errstr 'error-%s' % field.oid"
tal:repeat="msg field.error.messages()"
tal:omit-tag=""
tal:attributes="id repeat.msg.index==0 and errstr or
('%s-%s' % (errstr, repeat.msg.index))"
- class="${field.widget.error_class}">
- <tal:block i18n:translate="">${msg}</tal:block>
+ class="${field.widget.error_class}">
+ <tal:block i18n:translate="" condition="msg">${msg}</tal:block>
</span>
</span>
<p class="help-block" tal:condition="field.description">

0 comments on commit fbc9dd0

Please sign in to comment.