2010-08-05 11:23:17 -05:00
|
|
|
<tal:comment replace="nothing">View macro for a Float.</tal:comment>
|
|
|
|
<metal:view define-macro="view">
|
2011-11-10 14:59:02 -06:00
|
|
|
<span tal:replace="value"></span>
|
|
|
|
<input type="hidden" tal:condition="masterCss"
|
|
|
|
tal:attributes="class masterCss; value value; name name; id name"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</metal:view>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Edit macro for an Float.</tal:comment>
|
|
|
|
<metal:edit define-macro="edit">
|
2011-05-05 09:44:06 -05:00
|
|
|
<input tal:define="maxChars python: test(widget['maxChars'], widget['maxChars'], '')"
|
|
|
|
tal:attributes="id name; name name; size widget/width; maxlength maxChars;
|
2010-08-05 11:23:17 -05:00
|
|
|
value python: test(inRequest, requestValue, value)" type="text"/>
|
|
|
|
</metal:edit>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Cell macro for an Float.</tal:comment>
|
|
|
|
<metal:cell define-macro="cell">
|
2011-11-25 11:01:20 -06:00
|
|
|
<metal:call use-macro="app/ui/widgets/float/macros/view"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</metal:cell>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Search macro for an Float.</tal:comment>
|
2011-05-05 09:44:06 -05:00
|
|
|
<metal:search define-macro="search"
|
|
|
|
tal:define="maxChars python: test(widget['maxChars'], widget['maxChars'], '')">
|
2010-08-05 11:23:17 -05:00
|
|
|
<label tal:content="python: tool.translate(widget['labelId'])"></label><br>
|
|
|
|
<tal:from define="fromName python: '%s*float' % widgetName">
|
|
|
|
<label tal:attributes="for fromName" tal:content="python: tool.translate('search_from')"></label>
|
2011-05-05 09:44:06 -05:00
|
|
|
<input type="text" tal:attributes="name fromName; maxlength maxChars" size="4"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</tal:from>
|
|
|
|
<tal:to define="toName python: '%s_to' % name">
|
|
|
|
<label tal:attributes="for toName" tal:content="python: tool.translate('search_to')"></label>
|
2011-05-05 09:44:06 -05:00
|
|
|
<input type="text" tal:attributes="name toName; maxlength maxChars" size="4"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</tal:to><br/>
|
|
|
|
</metal:search>
|