setting default schedule time to "today"
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Jan 2006 20:41:03 +0000 (20:41 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Jan 2006 20:41:03 +0000 (20:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2605 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/reporter/templates/stage3.ttk

index 5bed698..138dec8 100644 (file)
@@ -1,5 +1,9 @@
 [%
 
+USE date;
+USE start = DateTime(now = 1);
+USE two_digits = format('%02d');
+
 PROCESS inputs;
 PROCESS class_manip;
 PROCESS widget_manip;
@@ -66,14 +70,12 @@ END;
 BLOCK schedule_stage3;
        WRAPPER form method='POST';
                'Run Date:';
-               INCLUDE text name='runtime' value='yyyy-mm-dd';
+               INCLUDE text name='runtime' value= start.year _ '-' _ two_digits(start.month) _ '-' _ two_digits(start.day);
                '<br>';
 
                'Optional Recurrence:';
                INCLUDE text name='recurrence-count' value='0';
                WRAPPER select name='recurrence-interval';
-                       INCLUDE option value='minutes' content='Minutes(s)'; # for testing
-                       INCLUDE option value='hours' content='Hours(s)'; # for testing
                        INCLUDE option value='days' content='Day(s)';
                        INCLUDE option value='weeks' content='Week(s)';
                        INCLUDE option value='months' content='Month(s)';