1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
4 | <meta name="layout" content="main" /> |
---|
5 | <title>Task Search</title> |
---|
6 | <filterpane:includes /> |
---|
7 | <g:javascript src="overlayPane.js" /> |
---|
8 | <nav:resources override="true"/> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div class="nav"> |
---|
12 | <nav:renderSubItems group="nav"/> |
---|
13 | </div> |
---|
14 | |
---|
15 | <div class="body"> |
---|
16 | <g:if test="${flash.message}"> |
---|
17 | <div class="message">${flash.message}</div> |
---|
18 | </g:if> |
---|
19 | <g:if test="${params.message}"> |
---|
20 | <div class="message">${params.message}</div> |
---|
21 | </g:if> |
---|
22 | <g:hasErrors bean="${appCore}"> |
---|
23 | <div class="errors"> |
---|
24 | <g:renderErrors bean="${appCore}" as="list" /> |
---|
25 | </div> |
---|
26 | </g:hasErrors> |
---|
27 | <filterpane:currentCriteria domainBean="Task" |
---|
28 | action="search" |
---|
29 | dateFormat="${'EEE, dd-MMM-yyyy'}" |
---|
30 | removeImgDir="images" |
---|
31 | removeImgFile="bullet_delete.png" |
---|
32 | title="Advanced Search"/> |
---|
33 | |
---|
34 | <div class="paginateButtons"> |
---|
35 | <span class="searchButtons"> |
---|
36 | <a href='' onclick="showElement('searchPane'); return false;">Quick</a> |
---|
37 | </span> |
---|
38 | Results:${taskInstanceTotal} |
---|
39 | <span class="searchButtons"> |
---|
40 | <filterpane:filterButton text="Advanced" appliedText="Advanced" /> |
---|
41 | </span> |
---|
42 | </div> |
---|
43 | |
---|
44 | <div class="list"> |
---|
45 | <table> |
---|
46 | <thead> |
---|
47 | <tr> |
---|
48 | |
---|
49 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
50 | |
---|
51 | <g:sortableColumn property="targetStartDate" title="Target Start Date" params="${filterParams}" /> |
---|
52 | |
---|
53 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
54 | |
---|
55 | <g:sortableColumn property="leadPerson" title="Lead Person" params="${filterParams}" /> |
---|
56 | |
---|
57 | <g:sortableColumn property="taskPriority" title="Task Priority" params="${filterParams}" /> |
---|
58 | |
---|
59 | <g:sortableColumn property="taskStatus" title="Task Status" params="${filterParams}" /> |
---|
60 | |
---|
61 | <th></th> |
---|
62 | |
---|
63 | </tr> |
---|
64 | </thead> |
---|
65 | <tbody> |
---|
66 | <g:each in="${taskInstanceList}" status="i" var="taskInstance"> |
---|
67 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'/> |
---|
68 | |
---|
69 | <td>${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
70 | |
---|
71 | <td><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
72 | |
---|
73 | <td>${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
74 | |
---|
75 | <td>${fieldValue(bean:taskInstance, field:'leadPerson')}</td> |
---|
76 | |
---|
77 | <td>${fieldValue(bean:taskInstance, field:'taskPriority')}</td> |
---|
78 | |
---|
79 | <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td> |
---|
80 | |
---|
81 | <td> |
---|
82 | <g:link action="show" id="${taskInstance.id}"> |
---|
83 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
84 | </g:link> |
---|
85 | </td> |
---|
86 | |
---|
87 | </tr> |
---|
88 | </g:each> |
---|
89 | </tbody> |
---|
90 | </table> |
---|
91 | </div> |
---|
92 | <div class="paginateButtons"> |
---|
93 | <g:paginate total="${taskInstanceTotal}" params="${filterParams}" /> |
---|
94 | </div> |
---|
95 | |
---|
96 | <filterpane:filterPane domainBean="Task" |
---|
97 | title="Advanced Search" |
---|
98 | action="search" |
---|
99 | class="overlayPane" |
---|
100 | additionalProperties="id" |
---|
101 | associatedProperties="taskPriority.name, |
---|
102 | leadPerson.lastName, |
---|
103 | leadPerson.firstName, |
---|
104 | taskGroup.name, |
---|
105 | associatedAssets.name, |
---|
106 | primaryAsset.name, |
---|
107 | taskStatus.name, |
---|
108 | taskType.name" |
---|
109 | filterPropertyValues="${['taskPriority.name':[values:TaskPriority.list()], |
---|
110 | 'leadPerson.lastName':[values:Person.executeQuery('select distinct t.lastName from Person t')], |
---|
111 | 'leadPerson.firstName':[values:Person.executeQuery('select distinct t.firstName from Person t')], |
---|
112 | 'taskGroup.name':[values:TaskGroup.list()], |
---|
113 | 'associatedAssets.name':[values:Asset.list()], |
---|
114 | 'primaryAsset.name':[values:Asset.list()], |
---|
115 | 'taskStatus.name':[values:TaskStatus.list()], |
---|
116 | 'taskType.name':[values:TaskType.list()], |
---|
117 | targetCompletionDate:[years:2020..2000,precision:'day'], |
---|
118 | targetStartDate:[years:2020..2000,precision:'day'] |
---|
119 | ]}"/> |
---|
120 | </div> <!-- end body --> |
---|
121 | |
---|
122 | <!-- Start Search Pane --> |
---|
123 | <div class="overlayPane" id="searchPane" style="display:none;"> |
---|
124 | <h2>Quick Search</h2> |
---|
125 | <g:form method="post" id="searchForm" name="searchForm" > |
---|
126 | <table> |
---|
127 | <tbody> |
---|
128 | |
---|
129 | <tr class="prop"> |
---|
130 | <td valign="top" class="name"> |
---|
131 | <label>My Tasks:</label> |
---|
132 | </td> |
---|
133 | <td valign="top" class="value"> |
---|
134 | <g:link controller="taskDetailed" |
---|
135 | action="search" |
---|
136 | params="[quickSearch: 'searchMyTodays']"> |
---|
137 | Today's |
---|
138 | </g:link> |
---|
139 | <br /> |
---|
140 | <g:link controller="taskDetailed" |
---|
141 | action="search" |
---|
142 | params="[quickSearch: 'searchMyInTheLastWeek']"> |
---|
143 | In the last week |
---|
144 | </g:link> |
---|
145 | </td> |
---|
146 | </tr> |
---|
147 | |
---|
148 | <tr class="prop"> |
---|
149 | <td valign="top" class="name"> |
---|
150 | <label>Tasks:</label> |
---|
151 | </td> |
---|
152 | <td valign="top" class="value"> |
---|
153 | <g:link controller="taskDetailed" |
---|
154 | action="search" |
---|
155 | params="[quickSearch: 'searchTodays']"> |
---|
156 | Today's |
---|
157 | </g:link> |
---|
158 | <br /> |
---|
159 | <g:link controller="taskDetailed" |
---|
160 | action="search" |
---|
161 | params="[quickSearch: 'searchInTheLastWeek']"> |
---|
162 | In the last week |
---|
163 | </g:link> |
---|
164 | </td> |
---|
165 | </tr> |
---|
166 | |
---|
167 | </tbody> |
---|
168 | </table> |
---|
169 | <div class="buttons"> |
---|
170 | <span class="button"> |
---|
171 | <input type="button" value="${g.message(code:'fp.tag.filterPane.button.cancel.text', default:'Cancel')}" onclick="return hideElement('searchPane');" /> |
---|
172 | </span> |
---|
173 | <!-- <span class="button"> |
---|
174 | <input type="button" value="${g.message(code:'fp.tag.filterPane.button.clear.text', default:'Clear')}" onclick="return clearFilterPane('searchForm');" /> |
---|
175 | </span> |
---|
176 | <span class="button"> |
---|
177 | <g:actionSubmit class="search" value="Search" /> |
---|
178 | </span>--> |
---|
179 | </div> |
---|
180 | </g:form> |
---|
181 | </div> <!-- end search pane --> |
---|
182 | |
---|
183 | </body> |
---|
184 | </html> |
---|