--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ztfy/utils/browser/templates/daterange_input.pt Tue Nov 20 17:51:28 2012 +0100
@@ -0,0 +1,25 @@
+<div tal:attributes="class string:daterange ${view/klass}" i18n:domain="ztfy.utils">
+ <label tal:attributes="for view/begin_id" i18n:translate="">Between:</label>
+ <input type="text" class="date-field" tal:attributes="id view/begin_id;
+ name view/begin_name;
+ value view/begin_date;" />
+ <label tal:attributes="for view/end_id" i18n:translate="">and:</label>
+ <input type="text" class="date-field" tal:attributes="id view/end_id;
+ name view/end_name;
+ value view/end_date;" />
+</div>
+<script type="text/javascript" tal:content="structure string:
+ // <![CDATA[
+ $$(document).ready(function() {
+ if (typeof($$.i18n_calendar) == 'undefined') {
+ var lang = $$('html').attr('lang') || $$('html').attr('xml:lang');
+ $$.i18n_calendar = lang;
+ $$.getScript('/--static--/ztfy.jqueryui/js/lang/calendar-' + lang + '-utf8.js');
+ }
+ $$('#${view/begin_id},#${view/end_id}').dynDateTime({
+ showsTime: false,
+ ifFormat: '${view/pattern}'
+ });
+ });
+ // ]]>
+" />
\ No newline at end of file