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