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