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