From 285df1aac044e3cadd099c7d4847c59414071d9b Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 4 Jan 2006 20:41:03 +0000 Subject: [PATCH] setting default schedule time to "today" git-svn-id: svn://svn.open-ils.org/ILS/trunk@2605 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/reporter/templates/stage3.ttk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/reporter/templates/stage3.ttk b/Open-ILS/src/reporter/templates/stage3.ttk index 5bed69862a..138dec8218 100644 --- a/Open-ILS/src/reporter/templates/stage3.ttk +++ b/Open-ILS/src/reporter/templates/stage3.ttk @@ -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); '
'; '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)'; -- 2.43.2