source: trunk/grails-app/views/appCore/start.gsp @ 545

Last change on this file since 545 was 545, checked in by gav, 14 years ago

Update report templates, add downloadTemplate action and general tidy up of reports.

File size: 9.6 KB
Line 
1<html>
2<head>
3    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
4    <meta name="layout" content="main" />
5    <title>Start</title>
6    <nav:resources override="true"/>
7    <resource:tabView skin="tabviewCustom" />
8    <resource:dateChooser />
9</head>
10    <body>
11        <div class="nav">
12            <nav:renderSubItems group="nav"/>
13        </div>
14        <div class="body">
15            <g:if test="${flash.message}">
16                <div class="message">${flash.message}</div>
17            </g:if>
18            <g:hasErrors bean="${appCore}">
19                <div class="errors">
20                    <g:renderErrors bean="${appCore}" as="list" />
21                </div>
22            </g:hasErrors>
23
24            <richui:tabView id="tabView">
25
26                <richui:tabLabels>
27                    <richui:tabLabel selected="true" title="Quick Links" />
28                    <richui:tabLabel selected="${0}" title="Reports" />
29                    <richui:tabLabel selected="${0}" title="Options" />
30                    <richui:tabLabel selected="${0}" title="About" />
31                </richui:tabLabels>
32
33                <richui:tabContents>
34
35<!-- Tasks tab -->
36                    <richui:tabContent>
37                        <br />
38                        <br />
39                        <div class="dialog">
40                            <table>
41                                <tbody>
42
43                                    <tr class="prop">
44                                        <td valign="top" class="name">
45                                            <label>My Tasks:</label>
46                                        </td>
47                                        <td valign="top" class="value">
48                                            <g:link controller="taskDetailed"
49                                                            action="search"
50                                                            params="[quickSearch: 'myTodays']">
51                                                            Today
52                                            </g:link>
53                                        </td>
54                                    </tr>
55           
56                                    <tr class="prop">
57                                        <td valign="top" class="name">
58                                            <label>All Tasks:</label>
59                                        </td>
60                                        <td valign="top" class="value">
61                                            <g:link controller="taskDetailed"
62                                                            action="search"
63                                                            params="[quickSearch: 'pastWeek']">
64                                                            Past Week
65                                            </g:link>
66                                            <br />
67                                            <g:link controller="taskDetailed"
68                                                            action="searchCalendar"
69                                                            params="[quickSearch: 'searchPlannersRange']">
70                                                            Calendar
71                                            </g:link>
72                                        </td>
73                                    </tr>
74
75<!--                                    More Quick Links:
76                                    Open Tasks
77                                    Closed Tasks
78                                    Tasks I lead.
79                                    Week calender
80                                    Recent
81                                    Today's Entries
82                                    My Entries.
83                                    Date ranges-->
84
85                                </tbody>
86                            </table>
87                        </div> <!--End dialog-->
88                    </richui:tabContent>
89<!-- End Tasks tab -->
90
91<!-- Reports tab -->
92                    <richui:tabContent>
93                        <br />
94                        <br />
95                        <div class="dialog">
96                            <table>
97                                <tbody>
98
99                                    <tr class="prop">
100                                        <td valign="top" class="name">
101                                            <label>Frequently Used:</label>
102                                        </td>
103                                        <td valign="top" class="value">
104                                            <g:jasperReport controller="report"
105                                                                            action="reactiveRatio"
106                                                                            jasper="reactiveRatio"
107                                                                            name="Reactive Ratio"
108                                                                            format="PDF, XLS">
109                                                <richui:dateChooser name="startDate" id="reactiveRatio_startDate" format="dd-MM-yyyy" value="${new Date()-7}" />
110                                                to
111                                                <richui:dateChooser name="endDate" id="reactiveRatio_endDate" format="dd-MM-yyyy" value="${new Date()}" />
112                                            </g:jasperReport>
113                                            <br />
114                                            <g:jasperReport controller="report"
115                                                                            action="immediateCallouts"
116                                                                            jasper="immediateCallouts"
117                                                                            name="Immediate Callouts"
118                                                                            format="PDF, XLS">
119                                                <richui:dateChooser name="startDate" id="immediateCallouts_startDate" format="dd-MM-yyyy" value="${new Date()-7}" />
120                                                to
121                                                <richui:dateChooser name="endDate" id="immediateCallouts_endDate" format="dd-MM-yyyy" value="${new Date()}" />
122                                            </g:jasperReport>
123                                            <br />
124                                            <g:jasperReport controller="report"
125                                                                            action="templatePortrait"
126                                                                            jasper="templatePortrait"
127                                                                            name="Template (Portrait)"
128                                                                            format="PDF, XLS"/>
129                                            <g:link controller="report" action="downloadTemplate" params="[fileName: 'templatePortrait.jrxml']">
130                                                Download
131                                            </g:link>
132                                            <br />
133                                            <g:jasperReport controller="report"
134                                                                            action="templateLandscape"
135                                                                            jasper="templateLandscape"
136                                                                            name="Template (Landscape)"
137                                                                            format="PDF, XLS"/>
138                                            <g:link controller="report" action="downloadTemplate" params="[fileName: 'templateLandscape.jrxml']">
139                                                Download
140                                            </g:link>
141                                            <br />
142                                        </td>
143                                    </tr>
144
145                                </tbody>
146                            </table>
147                        </div> <!--End dialog-->
148                    </richui:tabContent>
149<!-- End Reports tab  -->
150
151<!-- Options tab -->
152                    <richui:tabContent>
153                        <br />
154                        <br />
155                        <div class="dialog">
156                            <table>
157                                <tbody>
158
159                                    <tr class="prop">
160                                        <td valign="top" class="name">
161                                            <label>Change:</label>
162                                        </td>
163                                        <td valign="top" class="value">
164                                            <a href="${createLink(action:'changePassword')}"> Password</a>
165                                            <br />
166                                            <a href="${createLink(action:'changeSessionTimeout')}">Session Timeout</a>
167                                        </td>
168                                    </tr>
169
170                                </tbody>
171                            </table>
172                        </div> <!--End dialog-->
173                    </richui:tabContent>
174<!-- End Options tab -->
175
176<!-- About tab -->
177                    <richui:tabContent>
178                        <g:render template="/about" />
179                    </richui:tabContent>
180<!-- End About tab -->
181
182                </richui:tabContents>
183            </richui:tabView>
184
185        </div> <!--End body-->
186    </body>
187</html>
Note: See TracBrowser for help on using the repository browser.