[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 /> |
---|
[155] | 7 | <g:javascript src="overlayPane.js" /> |
---|
[139] | 8 | <nav:resources override="true"/> |
---|
| 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
| 12 | <nav:renderSubItems group="nav"/> |
---|
| 13 | </div> |
---|
[150] | 14 | |
---|
[139] | 15 | <div class="body"> |
---|
| 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
[143] | 19 | <g:if test="${params.message}"> |
---|
| 20 | <div class="message">${params.message}</div> |
---|
| 21 | </g:if> |
---|
[139] | 22 | <g:hasErrors bean="${appCore}"> |
---|
| 23 | <div class="errors"> |
---|
| 24 | <g:renderErrors bean="${appCore}" as="list" /> |
---|
| 25 | </div> |
---|
| 26 | </g:hasErrors> |
---|
[140] | 27 | <filterpane:currentCriteria domainBean="Task" |
---|
| 28 | action="search" |
---|
| 29 | dateFormat="${'EEE, dd-MMM-yyyy'}" |
---|
| 30 | removeImgDir="images" |
---|
| 31 | removeImgFile="bullet_delete.png" |
---|
[155] | 32 | title="Advanced Search"/> |
---|
[147] | 33 | |
---|
[155] | 34 | <div class="paginateButtons"> |
---|
[221] | 35 | <span class="searchButtons"> |
---|
| 36 | <a href='' onclick="showElement('searchPane'); return false;">Quick</a> |
---|
| 37 | </span> |
---|
[155] | 38 | Results:${taskInstanceTotal} |
---|
[221] | 39 | <span class="searchButtons"> |
---|
| 40 | <filterpane:filterButton text="Advanced" appliedText="Advanced" /> |
---|
| 41 | </span> |
---|
[155] | 42 | </div> |
---|
| 43 | |
---|
[147] | 44 | <div class="list"> |
---|
[139] | 45 | <table> |
---|
| 46 | <thead> |
---|
| 47 | <tr> |
---|
[150] | 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 | |
---|
[140] | 57 | <g:sortableColumn property="taskPriority" title="Task Priority" params="${filterParams}" /> |
---|
[150] | 58 | |
---|
[140] | 59 | <g:sortableColumn property="taskStatus" title="Task Status" params="${filterParams}" /> |
---|
[139] | 60 | |
---|
| 61 | <th></th> |
---|
[150] | 62 | |
---|
[139] | 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> |
---|
[150] | 70 | |
---|
[139] | 71 | <td><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
[150] | 72 | |
---|
[139] | 73 | <td>${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
[150] | 74 | |
---|
[139] | 75 | <td>${fieldValue(bean:taskInstance, field:'leadPerson')}</td> |
---|
[150] | 76 | |
---|
[139] | 77 | <td>${fieldValue(bean:taskInstance, field:'taskPriority')}</td> |
---|
[150] | 78 | |
---|
[139] | 79 | <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td> |
---|
| 80 | |
---|
| 81 | <td> |
---|
| 82 | <g:link action="show" id="${taskInstance.id}"> |
---|
[151] | 83 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
[139] | 84 | </g:link> |
---|
| 85 | </td> |
---|
[150] | 86 | |
---|
[139] | 87 | </tr> |
---|
| 88 | </g:each> |
---|
| 89 | </tbody> |
---|
| 90 | </table> |
---|
| 91 | </div> |
---|
| 92 | <div class="paginateButtons"> |
---|
[140] | 93 | <g:paginate total="${taskInstanceTotal}" params="${filterParams}" /> |
---|
[139] | 94 | </div> |
---|
[147] | 95 | |
---|
[140] | 96 | <filterpane:filterPane domainBean="Task" |
---|
[155] | 97 | title="Advanced Search" |
---|
[140] | 98 | action="search" |
---|
[155] | 99 | class="overlayPane" |
---|
[140] | 100 | additionalProperties="id" |
---|
[168] | 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" |
---|
[140] | 109 | filterPropertyValues="${['taskPriority.name':[values:TaskPriority.list()], |
---|
[168] | 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')], |
---|
[155] | 112 | 'taskGroup.name':[values:TaskGroup.list()], |
---|
[168] | 113 | 'associatedAssets.name':[values:Asset.list()], |
---|
| 114 | 'primaryAsset.name':[values:Asset.list()], |
---|
| 115 | 'taskStatus.name':[values:TaskStatus.list()], |
---|
| 116 | 'taskType.name':[values:TaskType.list()], |
---|
[155] | 117 | targetCompletionDate:[years:2020..2000,precision:'day'], |
---|
[168] | 118 | targetStartDate:[years:2020..2000,precision:'day'] |
---|
| 119 | ]}"/> |
---|
[155] | 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 | |
---|
[139] | 183 | </body> |
---|
| 184 | </html> |
---|