[139] | 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> |
---|
[140] | 6 | <filterpane:includes /> |
---|
[139] | 7 | <nav:resources override="true"/> |
---|
[262] | 8 | <export:resource /> |
---|
[139] | 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
| 12 | <nav:renderSubItems group="nav"/> |
---|
| 13 | </div> |
---|
[150] | 14 | |
---|
[139] | 15 | <div class="body"> |
---|
[418] | 16 | <g:render template="/shared/messages" /> |
---|
[139] | 17 | <g:hasErrors bean="${appCore}"> |
---|
| 18 | <div class="errors"> |
---|
| 19 | <g:renderErrors bean="${appCore}" as="list" /> |
---|
| 20 | </div> |
---|
| 21 | </g:hasErrors> |
---|
[140] | 22 | <filterpane:currentCriteria domainBean="Task" |
---|
| 23 | action="search" |
---|
[450] | 24 | dateFormat="EEE, dd-MMM-yyyy" |
---|
| 25 | removeImgDir="images" |
---|
[140] | 26 | removeImgFile="bullet_delete.png" |
---|
[155] | 27 | title="Advanced Search"/> |
---|
[147] | 28 | |
---|
[155] | 29 | <div class="paginateButtons"> |
---|
[221] | 30 | <span class="searchButtons"> |
---|
| 31 | <a href='' onclick="showElement('searchPane'); return false;">Quick</a> |
---|
| 32 | </span> |
---|
[262] | 33 | Results: ${taskInstanceList.size()} / ${taskInstanceTotal} |
---|
[221] | 34 | <span class="searchButtons"> |
---|
| 35 | <filterpane:filterButton text="Advanced" appliedText="Advanced" /> |
---|
| 36 | </span> |
---|
[155] | 37 | </div> |
---|
| 38 | |
---|
[323] | 39 | <jsUtil:toggleControl toggleId="options" |
---|
| 40 | imageId="optionsImg" |
---|
| 41 | closedImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_right.png')}" |
---|
| 42 | openImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_down.png')}" |
---|
| 43 | text="${g.message(code: 'default.options.text')}" |
---|
| 44 | /> |
---|
[262] | 45 | |
---|
[323] | 46 | <div id="options" style="display:none;"> |
---|
[570] | 47 | <g:form method="post" action="setSearchParamsMax" > |
---|
[262] | 48 | <g:hiddenField name="params" value="${filterParams}" /> |
---|
| 49 | <div class="dialog"> |
---|
| 50 | <table> |
---|
| 51 | <tbody> |
---|
| 52 | |
---|
| 53 | <tr class="prop"> |
---|
| 54 | <td valign="top" class="name"> |
---|
| 55 | <label for="max">Results per page:</label> |
---|
| 56 | </td> |
---|
| 57 | <td valign="top" class="value"> |
---|
| 58 | <input type="text" maxlength="4" id="description" name="newMax" value="${params.max}"/> |
---|
| 59 | |
---|
| 60 | <span class="buttons"> |
---|
[326] | 61 | <g:actionSubmit action="setSearchParamsMax" class="go" value="Update" /> |
---|
[262] | 62 | </span> |
---|
| 63 | </td> |
---|
| 64 | </tr> |
---|
| 65 | |
---|
| 66 | </tbody> |
---|
| 67 | </table> |
---|
| 68 | </div> |
---|
| 69 | <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/> |
---|
| 70 | </g:form> |
---|
| 71 | </div> |
---|
| 72 | |
---|
| 73 | <br /> |
---|
| 74 | |
---|
[613] | 75 | <g:if test="${taskInstanceTotal > taskInstanceList.size()}"> |
---|
| 76 | <div class="paginateButtons"> |
---|
[615] | 77 | <g:paginate action="search" total="${taskInstanceTotal}" params="${filterParams}" /> |
---|
[613] | 78 | </div> |
---|
[262] | 79 | </g:if> |
---|
| 80 | |
---|
[467] | 81 | <g:if test="${taskInstanceList.size() > 0}"> |
---|
| 82 | <div class="list"> |
---|
| 83 | <table> |
---|
| 84 | <thead> |
---|
| 85 | <tr> |
---|
[150] | 86 | |
---|
[467] | 87 | <custom:sortableColumnWithImg property="attentionFlag" |
---|
| 88 | imgSrc="${resource(dir:'images/skin',file:'flag_red.png')}" |
---|
[582] | 89 | imgAlt="Flag" |
---|
| 90 | params="${filterParams}" /> |
---|
[418] | 91 | |
---|
[467] | 92 | <g:sortableColumn property="targetStartDate" title="Target Start Date" params="${filterParams}" /> |
---|
[150] | 93 | |
---|
[467] | 94 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
[150] | 95 | |
---|
[586] | 96 | <g:sortableColumn property="taskGroup" title="Group" params="${filterParams}" /> |
---|
[150] | 97 | |
---|
[499] | 98 | <g:sortableColumn property="taskType" title="Type" params="${filterParams}" /> |
---|
[139] | 99 | |
---|
[586] | 100 | <g:sortableColumn property="taskPriority" title="Priority" params="${filterParams}" /> |
---|
| 101 | |
---|
[498] | 102 | <g:sortableColumn property="taskStatus" title="Status" params="${filterParams}" /> |
---|
| 103 | |
---|
[582] | 104 | <custom:sortableColumnWithImg property="defaultSort" |
---|
| 105 | imgSrc="${resource(dir:'images/skin',file:'table_sort.png')}" |
---|
| 106 | imgAlt="Sort" |
---|
| 107 | imgTitle="Default Sort" |
---|
| 108 | params="${filterParams}" /> |
---|
[150] | 109 | |
---|
[467] | 110 | </tr> |
---|
| 111 | </thead> |
---|
| 112 | </tbody> |
---|
| 113 | <tbody> |
---|
| 114 | <g:each in="${taskInstanceList}" status="i" var="taskInstance"> |
---|
[498] | 115 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/> |
---|
[139] | 116 | |
---|
[498] | 117 | <td class="idColumn" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> |
---|
[467] | 118 | <g:if test="${taskInstance.attentionFlag}"> |
---|
| 119 | <img src="${resource(dir:'images/skin',file:'flag_red.png')}" alt="Flag" /> |
---|
| 120 | </g:if> |
---|
| 121 | </td> |
---|
[150] | 122 | |
---|
[498] | 123 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> |
---|
| 124 | <g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/> |
---|
| 125 | </td> |
---|
[150] | 126 | |
---|
[498] | 127 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> |
---|
[586] | 128 | <b> |
---|
| 129 | Task #${fieldValue(bean:taskInstance, field:'id')}<br /> |
---|
| 130 | ${fieldValue(bean:taskInstance, field:'description')} |
---|
| 131 | </b> |
---|
[583] | 132 | <br /> |
---|
| 133 | <br /> |
---|
| 134 | <g:if test="${taskInstance.primaryAsset}"> |
---|
| 135 | ${fieldValue(bean:taskInstance, field:'primaryAsset')}<br /> |
---|
| 136 | </g:if> |
---|
| 137 | <g:each in="${taskInstance.assignedGroups}" status="j" var="assignedGroup"> |
---|
| 138 | ${assignedGroup.encodeAsHTML()}<br /> |
---|
| 139 | </g:each> |
---|
| 140 | <g:each in="${taskInstance.assignedPersons}" status="k" var="assignedPerson"> |
---|
| 141 | ${assignedPerson.encodeAsHTML()}<br /> |
---|
| 142 | </g:each> |
---|
[586] | 143 | <g:each in="${taskInstance.entries}" status="m" var="entry"> |
---|
| 144 | <g:if test="${entry.entryType.id == 3}"> |
---|
| 145 | <em>${'WD: ' +entry.toShortString().encodeAsHTML()}</em><br /> |
---|
| 146 | </g:if> |
---|
| 147 | </g:each> |
---|
| 148 | <g:if test="${taskInstance.subTasks}"> |
---|
| 149 | Sub Tasks: ${taskInstance.subTasks.size()}<br /> |
---|
| 150 | </g:if> |
---|
[498] | 151 | </td> |
---|
[150] | 152 | |
---|
[498] | 153 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> |
---|
[586] | 154 | ${fieldValue(bean:taskInstance, field:'taskGroup')} |
---|
[498] | 155 | </td> |
---|
[150] | 156 | |
---|
[498] | 157 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> |
---|
| 158 | ${fieldValue(bean:taskInstance, field:'taskType')} |
---|
| 159 | </td> |
---|
[139] | 160 | |
---|
[498] | 161 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> |
---|
[586] | 162 | ${fieldValue(bean:taskInstance, field:'taskPriority')} |
---|
| 163 | </td> |
---|
| 164 | |
---|
| 165 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> |
---|
[498] | 166 | ${fieldValue(bean:taskInstance, field:'taskStatus')} |
---|
| 167 | </td> |
---|
| 168 | |
---|
| 169 | <td class="notClickable"> |
---|
[467] | 170 | <g:link action="show" id="${taskInstance.id}"> |
---|
| 171 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 172 | </g:link> |
---|
| 173 | </td> |
---|
[150] | 174 | |
---|
[467] | 175 | </tr> |
---|
| 176 | </g:each> |
---|
| 177 | </tbody> |
---|
| 178 | </table> |
---|
| 179 | </div> |
---|
| 180 | </g:if> |
---|
[139] | 181 | <div class="paginateButtons"> |
---|
[613] | 182 | <g:paginate action="search" total="${taskInstanceTotal}" params="${filterParams}" /> |
---|
[139] | 183 | </div> |
---|
[147] | 184 | |
---|
[140] | 185 | <filterpane:filterPane domainBean="Task" |
---|
[155] | 186 | title="Advanced Search" |
---|
[140] | 187 | action="search" |
---|
[155] | 188 | class="overlayPane" |
---|
[140] | 189 | additionalProperties="id" |
---|
[593] | 190 | excludeProperties="targetCompletionDate" |
---|
[168] | 191 | associatedProperties="taskPriority.name, |
---|
| 192 | leadPerson.lastName, |
---|
| 193 | leadPerson.firstName, |
---|
| 194 | taskGroup.name, |
---|
| 195 | associatedAssets.name, |
---|
| 196 | primaryAsset.name, |
---|
| 197 | taskStatus.name, |
---|
| 198 | taskType.name" |
---|
[552] | 199 | filterPropertyValues="${['taskPriority.name':[values: associatedPropertyValues.taskPriorityList], |
---|
| 200 | 'leadPerson.lastName':[values: associatedPropertyValues.lastNameList], |
---|
| 201 | 'leadPerson.firstName':[values: associatedPropertyValues.firstNameList], |
---|
| 202 | 'taskGroup.name':[values: associatedPropertyValues.taskGroupList], |
---|
| 203 | 'associatedAssets.name':[values: associatedPropertyValues.assetList], |
---|
| 204 | 'primaryAsset.name':[values: associatedPropertyValues.assetList], |
---|
| 205 | 'taskStatus.name':[values: associatedPropertyValues.taskStatusList], |
---|
| 206 | 'taskType.name':[values: associatedPropertyValues.taskTypeList], |
---|
| 207 | targetCompletionDate:[years: associatedPropertyValues.yearRange,precision:'day'], |
---|
| 208 | targetStartDate:[years: associatedPropertyValues.yearRange,precision:'day'] |
---|
[168] | 209 | ]}"/> |
---|
[155] | 210 | |
---|
[476] | 211 | <g:render template="quickSearchPane" /> |
---|
[155] | 212 | |
---|
[476] | 213 | </div> <!-- end body --> |
---|
[139] | 214 | </body> |
---|
| 215 | </html> |
---|