You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.4 KiB
36 lines
1.4 KiB
<span tal:define="error_class error_class|field.widget.error_class; |
|
description description|field.description; |
|
title title|field.title; |
|
hidden hidden|field.widget.hidden; |
|
category category|field.widget.category; |
|
item_template item_template|field.widget.item_readonly_template; |
|
amount_field field.children[0]; |
|
currency_field field.children[1]; |
|
oid oid|amount_field.oid; |
|
required required|amount_field.required;" |
|
i18n:domain="deform" |
|
class="moneyinput"> |
|
|
|
${field.start_mapping()} |
|
<div tal:repeat="child field.children" |
|
tal:replace="structure child.render_template(item_template)" > |
|
</div> |
|
${field.end_mapping()} |
|
|
|
<p class="help-inline" |
|
tal:define="errstr 'error-%s' % field.oid" |
|
tal:repeat="msg amount_field.error.messages()|currency_field.error.messages()" |
|
i18n:translate="" |
|
tal:attributes="id repeat.msg.index==0 and errstr or |
|
('%s-%s' % (errstr, repeat.msg.index))" |
|
tal:condition="(amount_field.error or currency_field.error) and not field.widget.hidden"> |
|
${msg} |
|
</p> |
|
|
|
<p tal:condition="field.description and not field.widget.hidden" |
|
class="help-inline" > |
|
${field.description} |
|
</p> |
|
|
|
</span> |
|
|
|
|