[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"/> |
---|
[262] | 8 | <export:resource /> |
---|
[713] | 9 | <resource:dateChooser /> |
---|
| 10 | <g:javascript src="taskQuickSearchPane.js" /> |
---|
[139] | 11 | </head> |
---|
| 12 | <body> |
---|
| 13 | <div class="nav"> |
---|
| 14 | <nav:renderSubItems group="nav"/> |
---|
| 15 | </div> |
---|
[150] | 16 | |
---|
[139] | 17 | <div class="body"> |
---|
[418] | 18 | <g:render template="/shared/messages" /> |
---|
[139] | 19 | <g:hasErrors bean="${appCore}"> |
---|
| 20 | <div class="errors"> |
---|
| 21 | <g:renderErrors bean="${appCore}" as="list" /> |
---|
| 22 | </div> |
---|
| 23 | </g:hasErrors> |
---|
[140] | 24 | <filterpane:currentCriteria domainBean="Task" |
---|
| 25 | action="search" |
---|
[450] | 26 | dateFormat="EEE, dd-MMM-yyyy" |
---|
| 27 | removeImgDir="images" |
---|
[140] | 28 | removeImgFile="bullet_delete.png" |
---|
[155] | 29 | title="Advanced Search"/> |
---|
[147] | 30 | |
---|
[155] | 31 | <div class="paginateButtons"> |
---|
[221] | 32 | <span class="searchButtons"> |
---|
| 33 | <a href='' onclick="showElement('searchPane'); return false;">Quick</a> |
---|
| 34 | </span> |
---|
[262] | 35 | Results: ${taskInstanceList.size()} / ${taskInstanceTotal} |
---|
[221] | 36 | <span class="searchButtons"> |
---|
| 37 | <filterpane:filterButton text="Advanced" appliedText="Advanced" /> |
---|
| 38 | </span> |
---|
[155] | 39 | </div> |
---|
| 40 | |
---|
[323] | 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 | /> |
---|
[262] | 47 | |
---|
[323] | 48 | <div id="options" style="display:none;"> |
---|
[570] | 49 | <g:form method="post" action="setSearchParamsMax" > |
---|
[262] | 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"> |
---|
[326] | 63 | <g:actionSubmit action="setSearchParamsMax" class="go" value="Update" /> |
---|
[262] | 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 | |
---|
[613] | 77 | <g:if test="${taskInstanceTotal > taskInstanceList.size()}"> |
---|
| 78 | <div class="paginateButtons"> |
---|
[615] | 79 | <g:paginate action="search" total="${taskInstanceTotal}" params="${filterParams}" /> |
---|
[613] | 80 | </div> |
---|
[262] | 81 | </g:if> |
---|
| 82 | |
---|
[843] | 83 | <g:render template="list" /> |
---|
[150] | 84 | |
---|
[139] | 85 | <div class="paginateButtons"> |
---|
[613] | 86 | <g:paginate action="search" total="${taskInstanceTotal}" params="${filterParams}" /> |
---|
[139] | 87 | </div> |
---|
[147] | 88 | |
---|
[140] | 89 | <filterpane:filterPane domainBean="Task" |
---|
[155] | 90 | title="Advanced Search" |
---|
[140] | 91 | action="search" |
---|
[155] | 92 | class="overlayPane" |
---|
[140] | 93 | additionalProperties="id" |
---|
[593] | 94 | excludeProperties="targetCompletionDate" |
---|
[168] | 95 | associatedProperties="taskPriority.name, |
---|
| 96 | leadPerson.lastName, |
---|
| 97 | leadPerson.firstName, |
---|
| 98 | taskGroup.name, |
---|
[838] | 99 | highestSeverity.code, |
---|
[168] | 100 | primaryAsset.name, |
---|
| 101 | taskStatus.name, |
---|
| 102 | taskType.name" |
---|
[552] | 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], |
---|
[838] | 107 | 'highestSeverity.code':[values: associatedPropertyValues.highestSeverityList], |
---|
[552] | 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'] |
---|
[168] | 113 | ]}"/> |
---|
[155] | 114 | |
---|
[476] | 115 | <g:render template="quickSearchPane" /> |
---|
[155] | 116 | |
---|
[476] | 117 | </div> <!-- end body --> |
---|
[139] | 118 | </body> |
---|
| 119 | </html> |
---|