appypod-rattail/gen/ui/widgets/float.pt

39 lines
1.8 KiB
Plaintext
Raw Normal View History

<tal:comment replace="nothing">View macro for a Float.</tal:comment>
<metal:view define-macro="view">
<span tal:replace="value"></span>
<input type="hidden" tal:condition="masterCss"
tal:attributes="class masterCss; value value; name name; id name"/>
</metal:view>
<tal:comment replace="nothing">Edit macro for an Float.</tal:comment>
<metal:edit define-macro="edit">
<input tal:define="maxChars python: test(widget['maxChars'], widget['maxChars'], '')"
tal:attributes="id name; name name; size widget/width; maxlength maxChars;
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"/>
</metal:cell>
<tal:comment replace="nothing">Search macro for an Float.</tal:comment>
<metal:search define-macro="search"
tal:define="maxChars python: test(widget['maxChars'], widget['maxChars'], '')">
2012-06-03 11:34:56 -05:00
<label tal:content="python: _(widget['labelId'])"></label><br>&nbsp;&nbsp;
<tal:from define="fromName python: '%s*float' % widgetName">
2012-06-03 11:34:56 -05:00
<label tal:attributes="for fromName" tal:content="python: _('search_from')"></label>
<input type="text"
tal:attributes="name fromName; maxlength maxChars;
value python: widget['sdefault'][0];
size widget/swidth"/>
</tal:from>
<tal:to define="toName python: '%s_to' % name">
2012-06-03 11:34:56 -05:00
<label tal:attributes="for toName" tal:content="python: _('search_to')"></label>
<input type="text"
tal:attributes="name toName; maxlength maxChars;
value python: widget['sdefault'][1];
size widget/swidth"/>
</tal:to><br/>
</metal:search>