[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 | <g:javascript src="overlayPane.js" /> |
---|
| 7 | <nav:resources override="true"/> |
---|
| 8 | <export:resource /> |
---|
| 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
| 12 | <nav:renderSubItems group="nav"/> |
---|
| 13 | </div> |
---|
| 14 | |
---|
| 15 | <div class="body"> |
---|
| 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
| 19 | <g:if test="${params.message}"> |
---|
| 20 | <div class="message">${params.message}</div> |
---|
| 21 | </g:if> |
---|
| 22 | <g:hasErrors bean="${appCore}"> |
---|
| 23 | <div class="errors"> |
---|
| 24 | <g:renderErrors bean="${appCore}" as="list" /> |
---|
| 25 | </div> |
---|
| 26 | </g:hasErrors> |
---|
| 27 | |
---|
| 28 | <div class="paginateButtons"> |
---|
| 29 | <a href='' onclick="showElement('searchPane'); return false;">Quick</a> |
---|
| 30 | Results:${taskInstanceTotal} |
---|
| 31 | </div> |
---|
| 32 | |
---|
| 33 | <div class="list"> |
---|
| 34 | <table> |
---|
| 35 | <thead> |
---|
| 36 | <tr> |
---|
| 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 | |
---|
| 46 | <g:sortableColumn property="taskPriority" title="Task Priority" params="${filterParams}" /> |
---|
| 47 | |
---|
| 48 | <g:sortableColumn property="taskStatus" title="Task Status" params="${filterParams}" /> |
---|
| 49 | |
---|
| 50 | <th></th> |
---|
| 51 | |
---|
| 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> |
---|
| 59 | |
---|
| 60 | <td><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
| 61 | |
---|
| 62 | <td>${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
| 63 | |
---|
| 64 | <td>${fieldValue(bean:taskInstance, field:'leadPerson')}</td> |
---|
| 65 | |
---|
| 66 | <td>${fieldValue(bean:taskInstance, field:'taskPriority')}</td> |
---|
| 67 | |
---|
| 68 | <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td> |
---|
| 69 | |
---|
| 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> |
---|
| 75 | |
---|
| 76 | </tr> |
---|
| 77 | </g:each> |
---|
| 78 | </tbody> |
---|
| 79 | </table> |
---|
| 80 | </div> |
---|
| 81 | <div class="paginateButtons"> |
---|
| 82 | <g:paginate total="${taskInstanceTotal}" params="${filterParams}" /> |
---|
| 83 | </div> |
---|
| 84 | <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/> |
---|
| 85 | </div> <!-- end body --> |
---|
| 86 | |
---|
| 87 | <!-- Start Search Pane --> |
---|
| 88 | <div class="overlayPane" id="searchPane" style="display:none;"> |
---|
| 89 | <h2>Quick Search</h2> |
---|
| 90 | <g:form method="post" id="searchForm" name="searchForm" > |
---|
| 91 | <table> |
---|
| 92 | <tbody> |
---|
| 93 | |
---|
| 94 | <tr class="prop"> |
---|
| 95 | <td valign="top" class="name"> |
---|
| 96 | <label>Budget:</label> |
---|
| 97 | </td> |
---|
| 98 | <td valign="top" class="value"> |
---|
| 99 | <g:link controller="taskDetailed" |
---|
| 100 | action="budget" |
---|
| 101 | params="[quickSearch: 'budgetPlanned']"> |
---|
| 102 | Planned Tasks |
---|
| 103 | </g:link> |
---|
| 104 | <br /> |
---|
| 105 | <g:link controller="taskDetailed" |
---|
| 106 | action="budget" |
---|
| 107 | params="[quickSearch: 'budgetUnplanned']"> |
---|
| 108 | Unplanned Tasks |
---|
| 109 | </g:link> |
---|
| 110 | </td> |
---|
| 111 | </tr> |
---|
| 112 | |
---|
| 113 | </tbody> |
---|
| 114 | </table> |
---|
| 115 | <div class="buttons"> |
---|
| 116 | <span class="button"> |
---|
| 117 | <input type="button" value="${g.message(code:'fp.tag.filterPane.button.cancel.text', default:'Cancel')}" onclick="return hideElement('searchPane');" /> |
---|
| 118 | </span> |
---|
| 119 | <!-- <span class="button"> |
---|
| 120 | <input type="button" value="${g.message(code:'fp.tag.filterPane.button.clear.text', default:'Clear')}" onclick="return clearFilterPane('searchForm');" /> |
---|
| 121 | </span> |
---|
| 122 | <span class="button"> |
---|
| 123 | <g:actionSubmit class="search" value="Search" /> |
---|
| 124 | </span>--> |
---|
| 125 | </div> |
---|
| 126 | </g:form> |
---|
| 127 | </div> <!-- end search pane --> |
---|
| 128 | |
---|
| 129 | </body> |
---|
| 130 | </html> |
---|