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