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 | <nav:resources override="true"/> |
---|
7 | <export:resource /> |
---|
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 | |
---|
27 | <div class="paginateButtons"> |
---|
28 | <a href='' onclick="showElement('searchPane'); return false;">Quick</a> |
---|
29 | Results:${taskInstanceTotal} |
---|
30 | </div> |
---|
31 | |
---|
32 | <div class="list"> |
---|
33 | <table> |
---|
34 | <thead> |
---|
35 | <tr> |
---|
36 | |
---|
37 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
38 | |
---|
39 | <g:sortableColumn property="targetStartDate" title="Target Start Date" params="${filterParams}" /> |
---|
40 | |
---|
41 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
42 | |
---|
43 | <g:sortableColumn property="leadPerson" title="Lead Person" params="${filterParams}" /> |
---|
44 | |
---|
45 | <g:sortableColumn property="taskPriority" title="Task Priority" params="${filterParams}" /> |
---|
46 | |
---|
47 | <g:sortableColumn property="taskStatus" title="Task Status" params="${filterParams}" /> |
---|
48 | |
---|
49 | <th></th> |
---|
50 | |
---|
51 | </tr> |
---|
52 | </thead> |
---|
53 | <tbody> |
---|
54 | <g:each in="${taskInstanceList}" status="i" var="taskInstance"> |
---|
55 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'/> |
---|
56 | |
---|
57 | <td>${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
58 | |
---|
59 | <td><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
60 | |
---|
61 | <td>${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
62 | |
---|
63 | <td>${fieldValue(bean:taskInstance, field:'leadPerson')}</td> |
---|
64 | |
---|
65 | <td>${fieldValue(bean:taskInstance, field:'taskPriority')}</td> |
---|
66 | |
---|
67 | <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td> |
---|
68 | |
---|
69 | <td> |
---|
70 | <g:link action="show" id="${taskInstance.id}"> |
---|
71 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
72 | </g:link> |
---|
73 | </td> |
---|
74 | |
---|
75 | </tr> |
---|
76 | </g:each> |
---|
77 | </tbody> |
---|
78 | </table> |
---|
79 | </div> |
---|
80 | <div class="paginateButtons"> |
---|
81 | <g:paginate total="${taskInstanceTotal}" params="${filterParams}" /> |
---|
82 | </div> |
---|
83 | <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/> |
---|
84 | </div> <!-- end body --> |
---|
85 | |
---|
86 | <!-- Start Search Pane --> |
---|
87 | <div class="overlayPane" id="searchPane" style="display:none;"> |
---|
88 | <h2>Quick Search</h2> |
---|
89 | <g:form method="post" id="searchForm" name="searchForm" > |
---|
90 | <table> |
---|
91 | <tbody> |
---|
92 | |
---|
93 | <tr class="prop"> |
---|
94 | <td valign="top" class="name"> |
---|
95 | <label>Budget:</label> |
---|
96 | </td> |
---|
97 | <td valign="top" class="value"> |
---|
98 | <g:link controller="taskDetailed" |
---|
99 | action="budget" |
---|
100 | params="[quickSearch: 'budgetPlanned']"> |
---|
101 | Planned Tasks |
---|
102 | </g:link> |
---|
103 | <br /> |
---|
104 | <g:link controller="taskDetailed" |
---|
105 | action="budget" |
---|
106 | params="[quickSearch: 'budgetUnplanned']"> |
---|
107 | Unplanned Tasks |
---|
108 | </g:link> |
---|
109 | </td> |
---|
110 | </tr> |
---|
111 | |
---|
112 | </tbody> |
---|
113 | </table> |
---|
114 | <div class="buttons"> |
---|
115 | <span class="button"> |
---|
116 | <input type="button" value="${g.message(code:'fp.tag.filterPane.button.cancel.text', default:'Cancel')}" onclick="return hideElement('searchPane');" /> |
---|
117 | </span> |
---|
118 | <!-- <span class="button"> |
---|
119 | <input type="button" value="${g.message(code:'fp.tag.filterPane.button.clear.text', default:'Clear')}" onclick="return clearFilterPane('searchForm');" /> |
---|
120 | </span> |
---|
121 | <span class="button"> |
---|
122 | <g:actionSubmit class="search" value="Search" /> |
---|
123 | </span>--> |
---|
124 | </div> |
---|
125 | </g:form> |
---|
126 | </div> <!-- end search pane --> |
---|
127 | |
---|
128 | </body> |
---|
129 | </html> |
---|