| [155] | 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 | <resource:calendarMonthView /> |
|---|
| 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 | <filterpane:currentCriteria domainBean="Task" |
|---|
| 28 | action="searchCalendar" |
|---|
| 29 | dateFormat="${'EEE, dd-MMM-yyyy'}" |
|---|
| 30 | removeImgDir="images" |
|---|
| 31 | removeImgFile="bullet_delete.png" |
|---|
| 32 | title="Advanced Search"/> |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | <div class="paginateButtons"> |
|---|
| [221] | 36 | <span class="searchButtons"> |
|---|
| 37 | <a href='' onclick="showElement('searchPane'); return false;">Quick</a> |
|---|
| 38 | </span> |
|---|
| [155] | 39 | Results:${taskInstanceTotal} |
|---|
| [221] | 40 | <span class="searchButtons"> |
|---|
| 41 | <filterpane:filterButton text="Advanced" appliedText="Advanced" /> |
|---|
| 42 | </span> |
|---|
| [155] | 43 | </div> |
|---|
| [214] | 44 | <richui:calendarMonthView items="${taskInstanceList}" |
|---|
| 45 | createLink="true" |
|---|
| 46 | constraintDateFields="['targetStartDate']" |
|---|
| 47 | month="${new Date()}" |
|---|
| 48 | controller="taskDetailed" |
|---|
| 49 | action="show" |
|---|
| 50 | dayAction="create"/> |
|---|
| [155] | 51 | <filterpane:filterPane domainBean="Task" |
|---|
| 52 | title="Advanced Search" |
|---|
| 53 | action="searchCalendar" |
|---|
| 54 | class="overlayPane" |
|---|
| 55 | additionalProperties="id" |
|---|
| [181] | 56 | excludeProperties="trash, comment, targetCompletionDate" |
|---|
| [155] | 57 | associatedProperties="leadPerson.lastName, taskPriority.name" |
|---|
| 58 | filterPropertyValues="${['taskPriority.name':[values:TaskPriority.list()], |
|---|
| 59 | 'leadPerson.lastName':[values:Person.executeQuery('select t.lastName from Person t')], |
|---|
| 60 | targetStartDate:[years:2020..2000,precision:'day']]}"/> |
|---|
| 61 | |
|---|
| 62 | </div> <!-- end body div --> |
|---|
| 63 | |
|---|
| 64 | <!-- Start Search Pane --> |
|---|
| 65 | <div class="overlayPane" id="searchPane" style="display:none;"> |
|---|
| 66 | <h2>Quick Search</h2> |
|---|
| 67 | <g:form method="post" id="searchForm" name="searchForm" > |
|---|
| 68 | <table> |
|---|
| 69 | <tbody> |
|---|
| 70 | |
|---|
| 71 | <tr class="prop"> |
|---|
| 72 | <td valign="top" class="name"> |
|---|
| 73 | <label>My Tasks:</label> |
|---|
| 74 | </td> |
|---|
| 75 | <td valign="top" class="value"> |
|---|
| 76 | <g:link controller="taskDetailed" |
|---|
| 77 | action="searchCalendar" |
|---|
| 78 | params="[quickSearch: 'searchMyTodays']"> |
|---|
| 79 | Today's |
|---|
| 80 | </g:link> |
|---|
| 81 | <br /> |
|---|
| 82 | <g:link controller="taskDetailed" |
|---|
| 83 | action="searchCalendar" |
|---|
| 84 | params="[quickSearch: 'searchMyInTheLastWeek']"> |
|---|
| 85 | In the last week |
|---|
| 86 | </g:link> |
|---|
| 87 | </td> |
|---|
| 88 | </tr> |
|---|
| 89 | |
|---|
| 90 | <tr class="prop"> |
|---|
| 91 | <td valign="top" class="name"> |
|---|
| 92 | <label>Tasks:</label> |
|---|
| 93 | </td> |
|---|
| 94 | <td valign="top" class="value"> |
|---|
| 95 | <g:link controller="taskDetailed" |
|---|
| 96 | action="searchCalendar" |
|---|
| 97 | params="[quickSearch: 'searchTodays']"> |
|---|
| 98 | Today's |
|---|
| 99 | </g:link> |
|---|
| 100 | <br /> |
|---|
| 101 | <g:link controller="taskDetailed" |
|---|
| 102 | action="searchCalendar" |
|---|
| 103 | params="[quickSearch: 'searchInTheLastWeek']"> |
|---|
| 104 | In the last week |
|---|
| 105 | </g:link> |
|---|
| 106 | </td> |
|---|
| 107 | </tr> |
|---|
| 108 | |
|---|
| 109 | </tbody> |
|---|
| 110 | </table> |
|---|
| 111 | <div class="buttons"> |
|---|
| 112 | <span class="button"> |
|---|
| 113 | <input type="button" value="${g.message(code:'fp.tag.filterPane.button.cancel.text', default:'Cancel')}" onclick="return hideElement('searchPane');" /> |
|---|
| 114 | </span> |
|---|
| 115 | <!-- <span class="button"> |
|---|
| 116 | <input type="button" value="${g.message(code:'fp.tag.filterPane.button.clear.text', default:'Clear')}" onclick="return clearFilterPane('searchForm');" /> |
|---|
| 117 | </span> |
|---|
| 118 | <span class="button"> |
|---|
| 119 | <g:actionSubmit class="search" value="Search" /> |
|---|
| 120 | </span>--> |
|---|
| 121 | </div> |
|---|
| 122 | </g:form> |
|---|
| 123 | </div> <!-- end search pane --> |
|---|
| 124 | |
|---|
| 125 | </body> |
|---|
| 126 | </html> |
|---|