2010-08-05 11:23:17 -05:00
|
|
|
<tal:comment replace="nothing">View macro for an Integer.</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 Integer.</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 Integer.</tal:comment>
|
|
|
|
<metal:cell define-macro="cell">
|
2011-11-25 11:01:20 -06:00
|
|
|
<metal:call use-macro="app/ui/widgets/integer/macros/view"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</metal:cell>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Search macro for an Integer.</tal:comment>
|
2011-05-05 09:44:06 -05:00
|
|
|
<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>
|
2010-08-05 11:23:17 -05:00
|
|
|
<tal:from define="fromName python: '%s*int' % widgetName">
|
2012-06-03 11:34:56 -05:00
|
|
|
<label tal:attributes="for fromName" tal:content="python: _('search_from')"></label>
|
[gen] Added param Search.default allowing to define a default Search. The default search, if present, will be triggered when clicking on the main link for a class, instead of the query that collects all instances of this class; appy.gen.Type: removed 3 obsolete params: 'index', 'editDefault' and 'optional'. For achieving the same result than using 'editDefault', one may define 'by hand' an attribute on the Tool for storing the editable default value, and define, on the appropriate field in param 'default', a method that returns the value of the tool attribute; Added Type.defaultForSearch, allowing, for some sub-types, to define a default value when displaying the corresponding widget on the search screen; added a default 'state' field allowing to include workflow state among search criteria in the search screens; removed obsolete test applications.
2012-10-31 07:20:25 -05:00
|
|
|
<input type="text" size="4"
|
|
|
|
tal:attributes="name fromName; maxlength maxChars;
|
2012-12-14 02:23:33 -06:00
|
|
|
value python: widget['sdefault'][0]"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</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>
|
[gen] Added param Search.default allowing to define a default Search. The default search, if present, will be triggered when clicking on the main link for a class, instead of the query that collects all instances of this class; appy.gen.Type: removed 3 obsolete params: 'index', 'editDefault' and 'optional'. For achieving the same result than using 'editDefault', one may define 'by hand' an attribute on the Tool for storing the editable default value, and define, on the appropriate field in param 'default', a method that returns the value of the tool attribute; Added Type.defaultForSearch, allowing, for some sub-types, to define a default value when displaying the corresponding widget on the search screen; added a default 'state' field allowing to include workflow state among search criteria in the search screens; removed obsolete test applications.
2012-10-31 07:20:25 -05:00
|
|
|
<input type="text" size="4"
|
|
|
|
tal:attributes="name toName; maxlength maxChars;
|
2012-12-14 02:23:33 -06:00
|
|
|
value python: widget['sdefault'][1]"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</tal:to><br/>
|
|
|
|
</metal:search>
|