| 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 | <filterpane:includes /> |
|---|
| 7 | <nav:resources override="true"/> |
|---|
| 8 | <export:resource /> |
|---|
| 9 | <resource:dateChooser /> |
|---|
| 10 | <g:javascript src="taskQuickSearchPane.js" /> |
|---|
| 11 | </head> |
|---|
| 12 | <body> |
|---|
| 13 | <div class="nav"> |
|---|
| 14 | <nav:renderSubItems group="nav"/> |
|---|
| 15 | </div> |
|---|
| 16 | |
|---|
| 17 | <div class="body"> |
|---|
| 18 | <g:render template="/shared/messages" /> |
|---|
| 19 | <g:hasErrors bean="${appCore}"> |
|---|
| 20 | <div class="errors"> |
|---|
| 21 | <g:renderErrors bean="${appCore}" as="list" /> |
|---|
| 22 | </div> |
|---|
| 23 | </g:hasErrors> |
|---|
| 24 | <filterpane:currentCriteria domainBean="Task" |
|---|
| 25 | action="search" |
|---|
| 26 | dateFormat="EEE, dd-MMM-yyyy" |
|---|
| 27 | removeImgDir="images" |
|---|
| 28 | removeImgFile="bullet_delete.png" |
|---|
| 29 | title="Advanced Search"/> |
|---|
| 30 | |
|---|
| 31 | <div class="paginateButtons"> |
|---|
| 32 | <span class="searchButtons"> |
|---|
| 33 | <a href='' onclick="showElement('searchPane'); return false;">Quick</a> |
|---|
| 34 | </span> |
|---|
| 35 | Results: ${taskInstanceList.size()} / ${taskInstanceTotal} |
|---|
| 36 | <span class="searchButtons"> |
|---|
| 37 | <filterpane:filterButton text="Advanced" appliedText="Advanced" /> |
|---|
| 38 | </span> |
|---|
| 39 | </div> |
|---|
| 40 | |
|---|
| 41 | <jsUtil:toggleControl toggleId="options" |
|---|
| 42 | imageId="optionsImg" |
|---|
| 43 | closedImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_right.png')}" |
|---|
| 44 | openImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_down.png')}" |
|---|
| 45 | text="${g.message(code: 'default.options.text')}" |
|---|
| 46 | /> |
|---|
| 47 | |
|---|
| 48 | <div id="options" style="display:none;"> |
|---|
| 49 | <g:form method="post" action="setSearchParamsMax" > |
|---|
| 50 | <g:hiddenField name="params" value="${filterParams}" /> |
|---|
| 51 | <div class="dialog"> |
|---|
| 52 | <table> |
|---|
| 53 | <tbody> |
|---|
| 54 | |
|---|
| 55 | <tr class="prop"> |
|---|
| 56 | <td valign="top" class="name"> |
|---|
| 57 | <label for="max">Results per page:</label> |
|---|
| 58 | </td> |
|---|
| 59 | <td valign="top" class="value"> |
|---|
| 60 | <input type="text" maxlength="4" id="description" name="newMax" value="${params.max}"/> |
|---|
| 61 | |
|---|
| 62 | <span class="buttons"> |
|---|
| 63 | <g:actionSubmit action="setSearchParamsMax" class="go" value="Update" /> |
|---|
| 64 | </span> |
|---|
| 65 | </td> |
|---|
| 66 | </tr> |
|---|
| 67 | |
|---|
| 68 | </tbody> |
|---|
| 69 | </table> |
|---|
| 70 | </div> |
|---|
| 71 | <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/> |
|---|
| 72 | </g:form> |
|---|
| 73 | </div> |
|---|
| 74 | |
|---|
| 75 | <br /> |
|---|
| 76 | |
|---|
| 77 | <g:if test="${taskInstanceTotal > taskInstanceList.size()}"> |
|---|
| 78 | <div class="paginateButtons"> |
|---|
| 79 | <g:paginate action="search" total="${taskInstanceTotal}" params="${filterParams}" /> |
|---|
| 80 | </div> |
|---|
| 81 | </g:if> |
|---|
| 82 | |
|---|
| 83 | <g:render template="list" /> |
|---|
| 84 | |
|---|
| 85 | <div class="paginateButtons"> |
|---|
| 86 | <g:paginate action="search" total="${taskInstanceTotal}" params="${filterParams}" /> |
|---|
| 87 | </div> |
|---|
| 88 | |
|---|
| 89 | <filterpane:filterPane domainBean="Task" |
|---|
| 90 | title="Advanced Search" |
|---|
| 91 | action="search" |
|---|
| 92 | class="overlayPane" |
|---|
| 93 | additionalProperties="id" |
|---|
| 94 | excludeProperties="targetCompletionDate" |
|---|
| 95 | associatedProperties="taskPriority.name, |
|---|
| 96 | leadPerson.lastName, |
|---|
| 97 | leadPerson.firstName, |
|---|
| 98 | taskGroup.name, |
|---|
| 99 | highestSeverity.code, |
|---|
| 100 | primaryAsset.name, |
|---|
| 101 | taskStatus.name, |
|---|
| 102 | taskType.name" |
|---|
| 103 | filterPropertyValues="${['taskPriority.name':[values: associatedPropertyValues.taskPriorityList], |
|---|
| 104 | 'leadPerson.lastName':[values: associatedPropertyValues.lastNameList], |
|---|
| 105 | 'leadPerson.firstName':[values: associatedPropertyValues.firstNameList], |
|---|
| 106 | 'taskGroup.name':[values: associatedPropertyValues.taskGroupList], |
|---|
| 107 | 'highestSeverity.code':[values: associatedPropertyValues.highestSeverityList], |
|---|
| 108 | 'primaryAsset.name':[values: associatedPropertyValues.assetList], |
|---|
| 109 | 'taskStatus.name':[values: associatedPropertyValues.taskStatusList], |
|---|
| 110 | 'taskType.name':[values: associatedPropertyValues.taskTypeList], |
|---|
| 111 | targetCompletionDate:[years: associatedPropertyValues.yearRange,precision:'day'], |
|---|
| 112 | targetStartDate:[years: associatedPropertyValues.yearRange,precision:'day'] |
|---|
| 113 | ]}"/> |
|---|
| 114 | |
|---|
| 115 | <g:render template="quickSearchPane" /> |
|---|
| 116 | |
|---|
| 117 | </div> <!-- end body --> |
|---|
| 118 | </body> |
|---|
| 119 | </html> |
|---|