]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/reporter/templates/widgets/specific-timerange.day
big ol reporter cleanup for the meeting
[Evergreen.git] / Open-ILS / src / reporter / templates / widgets / specific-timerange.day
1 [%
2
3 USE date;
4 USE start = DateTime(now = 1);
5
6 PROCESS inputs;
7
8 BLOCK editor;
9 WRAPPER html/table ;
10         WRAPPER html/row;
11                 INCLUDE html/cell content='Year';
12                 INCLUDE html/cell content='Month';
13                 INCLUDE html/cell content='Day';
14         END;
15
16         y = (current_value.year ? current_value.year : start.year);
17         m = (current_value.month ? current_value.month : start.month);
18         d = (current_value.day ? current_value.day : start.day);
19
20         WRAPPER html/row;
21                 WRAPPER html/cell;
22                         INCLUDE text name=input_prefix _ ':year' size=4 value=y;
23                 END;
24                 WRAPPER html/cell;
25                         INCLUDE text name=input_prefix _ ':month' size=4 value=m;
26                 END;
27                 WRAPPER html/cell;
28                         INCLUDE text name=input_prefix _ ':day' size=4 value=d;
29                 END;
30         END;
31
32 END;
33 END;
34
35 BLOCK display;
36 current_value.year _ '-' _ current_value.month _ '-' _ current_value.day;
37 END;
38
39 %]