From 8dfb6cc0dbd16dae8593907aec415005e7e65799 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 27 Dec 2005 19:10:11 +0000 Subject: [PATCH] adding month-comparative widget; fixing week picking widget git-svn-id: svn://svn.open-ils.org/ILS/trunk@2536 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../widgets/comparative-timerange.month | 24 +++++++++++++++++++ .../templates/widgets/specific-timerange.week | 13 +++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 Open-ILS/src/reporter/templates/widgets/comparative-timerange.month diff --git a/Open-ILS/src/reporter/templates/widgets/comparative-timerange.month b/Open-ILS/src/reporter/templates/widgets/comparative-timerange.month new file mode 100644 index 0000000000..1f339e70d0 --- /dev/null +++ b/Open-ILS/src/reporter/templates/widgets/comparative-timerange.month @@ -0,0 +1,24 @@ +[% + +PROCESS inputs; + +WRAPPER select name=input_prefix _ ":target"; + count = 1; + WHILE count < 37; + INCLUDE option value=count selected=(count == 1 ? 1 : 0); + count = count + 1; + END; +END; + +' months before runtime
Compared to '; + +WRAPPER select name=input_prefix _ ":compare"; + count = 1; + WHILE count < 37; + INCLUDE option value=count selected=(count == 12 ? 1 : 0); + count = count + 1; + END; +END; +' months before target'; + +%] diff --git a/Open-ILS/src/reporter/templates/widgets/specific-timerange.week b/Open-ILS/src/reporter/templates/widgets/specific-timerange.week index 762d165880..a6f7086ddd 100644 --- a/Open-ILS/src/reporter/templates/widgets/specific-timerange.week +++ b/Open-ILS/src/reporter/templates/widgets/specific-timerange.week @@ -2,10 +2,17 @@ PROCESS inputs; -'Week of year: '; -WRAPPER select name=input_prefix; +USE date; +USE start = DateTime(now = 1); + +'Year: '; +INCLUDE name=input_prefix _ ':year' text size=4 value=start.year; + + +'
Week of year: '; +WRAPPER select name=input_prefix _ ':week'; count = 1; - WHILE count < 53; + WHILE count < 54; INCLUDE option value=count; count = count + 1; END; -- 2.43.2