[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> |
---|
[150] | 13 | |
---|
[139] | 14 | <div class="body"> |
---|
| 15 | <g:if test="${flash.message}"> |
---|
| 16 | <div class="message">${flash.message}</div> |
---|
| 17 | </g:if> |
---|
[143] | 18 | <g:if test="${params.message}"> |
---|
| 19 | <div class="message">${params.message}</div> |
---|
| 20 | </g:if> |
---|
[139] | 21 | <g:hasErrors bean="${appCore}"> |
---|
| 22 | <div class="errors"> |
---|
| 23 | <g:renderErrors bean="${appCore}" as="list" /> |
---|
| 24 | </div> |
---|
| 25 | </g:hasErrors> |
---|
[140] | 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"/> |
---|
[147] | 32 | |
---|
| 33 | <div class="list"> |
---|
[139] | 34 | <table> |
---|
| 35 | <thead> |
---|
| 36 | <tr> |
---|
[150] | 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 | |
---|
[140] | 46 | <g:sortableColumn property="taskPriority" title="Task Priority" params="${filterParams}" /> |
---|
[150] | 47 | |
---|
[140] | 48 | <g:sortableColumn property="taskStatus" title="Task Status" params="${filterParams}" /> |
---|
[139] | 49 | |
---|
| 50 | <th></th> |
---|
[150] | 51 | |
---|
[139] | 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> |
---|
[150] | 59 | |
---|
[139] | 60 | <td><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
[150] | 61 | |
---|
[139] | 62 | <td>${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
[150] | 63 | |
---|
[139] | 64 | <td>${fieldValue(bean:taskInstance, field:'leadPerson')}</td> |
---|
[150] | 65 | |
---|
[139] | 66 | <td>${fieldValue(bean:taskInstance, field:'taskPriority')}</td> |
---|
[150] | 67 | |
---|
[139] | 68 | <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td> |
---|
| 69 | |
---|
| 70 | <td> |
---|
| 71 | <g:link action="show" id="${taskInstance.id}"> |
---|
[151] | 72 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
[139] | 73 | </g:link> |
---|
| 74 | </td> |
---|
[150] | 75 | |
---|
[139] | 76 | </tr> |
---|
| 77 | </g:each> |
---|
| 78 | </tbody> |
---|
| 79 | </table> |
---|
| 80 | </div> |
---|
| 81 | <div class="paginateButtons"> |
---|
[140] | 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> |
---|
[139] | 86 | </div> |
---|
[147] | 87 | |
---|
[140] | 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']]}"/> |
---|
[139] | 97 | </div> <!-- end body div --> |
---|
| 98 | </body> |
---|
| 99 | </html> |
---|