Skip to content

Commit

Permalink
fix messages error
Browse files Browse the repository at this point in the history
  • Loading branch information
amleczko committed Apr 7, 2012
1 parent 8654033 commit fbc9dd0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions deform_bootstrap/templates/mapping_item.pt
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit fbc9dd0

Please sign in to comment.