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 | <nav:resources override="true"/> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <nav:renderSubItems group="nav"/> |
---|
12 | </div> |
---|
13 | |
---|
14 | <div class="body"> |
---|
15 | <g:if test="${flash.message}"> |
---|
16 | <div class="message">${flash.message}</div> |
---|
17 | </g:if> |
---|
18 | <g:if test="${params.message}"> |
---|
19 | <div class="message">${params.message}</div> |
---|
20 | </g:if> |
---|
21 | <g:hasErrors bean="${appCore}"> |
---|
22 | <div class="errors"> |
---|
23 | <g:renderErrors bean="${appCore}" as="list" /> |
---|
24 | </div> |
---|
25 | </g:hasErrors> |
---|
26 | <filterpane:currentCriteria domainBean="Task" |
---|
27 | action="search" |
---|
28 | dateFormat="${'EEE, dd-MMM-yyyy'}" |
---|
29 | removeImgDir="images" |
---|
30 | removeImgFile="bullet_delete.png" |
---|
31 | title="Quick Search"/> |
---|
32 | |
---|
33 | <div class="list"> |
---|
34 | <table> |
---|
35 | <thead> |
---|
36 | <tr> |
---|
37 | |
---|
38 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
39 | |
---|
40 | <g:sortableColumn property="targetStartDate" title="Target Start Date" params="${filterParams}" /> |
---|
41 | |
---|
42 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
43 | |
---|
44 | <g:sortableColumn property="leadPerson" title="Lead Person" params="${filterParams}" /> |
---|
45 | |
---|
46 | <g:sortableColumn property="taskPriority" title="Task Priority" params="${filterParams}" /> |
---|
47 | |
---|
48 | <g:sortableColumn property="taskStatus" title="Task Status" params="${filterParams}" /> |
---|
49 | |
---|
50 | <th></th> |
---|
51 | |
---|
52 | </tr> |
---|
53 | </thead> |
---|
54 | <tbody> |
---|
55 | <g:each in="${taskInstanceList}" status="i" var="taskInstance"> |
---|
56 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'/> |
---|
57 | |
---|
58 | <td>${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
59 | |
---|
60 | <td><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
61 | |
---|
62 | <td>${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
63 | |
---|
64 | <td>${fieldValue(bean:taskInstance, field:'leadPerson')}</td> |
---|
65 | |
---|
66 | <td>${fieldValue(bean:taskInstance, field:'taskPriority')}</td> |
---|
67 | |
---|
68 | <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td> |
---|
69 | |
---|
70 | <td> |
---|
71 | <g:link action="show" id="${taskInstance.id}"> |
---|
72 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
73 | </g:link> |
---|
74 | </td> |
---|
75 | |
---|
76 | </tr> |
---|
77 | </g:each> |
---|
78 | </tbody> |
---|
79 | </table> |
---|
80 | </div> |
---|
81 | <div class="paginateButtons"> |
---|
82 | <g:paginate total="${taskInstanceTotal}" params="${filterParams}" /> |
---|
83 | <filterpane:filterButton text="Search" appliedText="Change Search" /> |
---|
84 | Results:${taskInstanceTotal} |
---|
85 | <g:link action="advancedSearch">Goto: Advanced Search</g:link> |
---|
86 | </div> |
---|
87 | |
---|
88 | <filterpane:filterPane domainBean="Task" |
---|
89 | title="Quick Search" |
---|
90 | action="search" |
---|
91 | additionalProperties="id" |
---|
92 | excludeProperties="isActive, comment, targetCompletionDate" |
---|
93 | associatedProperties="leadPerson.lastName, taskPriority.name" |
---|
94 | filterPropertyValues="${['taskPriority.name':[values:TaskPriority.list()], |
---|
95 | 'leadPerson.lastName':[values:Person.executeQuery('select t.lastName from Person t')], |
---|
96 | targetStartDate:[years:2020..2000,precision:'day']]}"/> |
---|
97 | </div> <!-- end body div --> |
---|
98 | </body> |
---|
99 | </html> |
---|