[476] | 1 | <!-- Start Search Pane --> |
---|
| 2 | <div class="overlayPane" id="searchPane" style="display:none;"> |
---|
| 3 | <h2>Quick Search</h2> |
---|
[713] | 4 | |
---|
| 5 | <g:form method="post" controller="taskDetailed"> |
---|
[476] | 6 | <table> |
---|
| 7 | <tbody> |
---|
| 8 | |
---|
| 9 | <tr class="prop"> |
---|
[713] | 10 | <td valign="top" class="name">Select:</td> |
---|
[476] | 11 | <td valign="top" class="value"> |
---|
[713] | 12 | <g:select optionKey="key" |
---|
| 13 | optionValue="value" |
---|
| 14 | from="${quickSearchSelection}" |
---|
| 15 | name="quickSearch" |
---|
| 16 | id="quickSearchSelect" |
---|
| 17 | value="${params.quickSearch}"> |
---|
| 18 | </g:select> |
---|
| 19 | |
---|
| 20 | <span id="allTasksHelp"> |
---|
| 21 | <g:helpBalloon class="helpballoon" code="task.search.text.all.tasks" /> |
---|
| 22 | </span> |
---|
| 23 | <span id="personsTasksHelp"> |
---|
| 24 | <g:helpBalloon class="helpballoon" code="task.search.text.persons.tasks" /> |
---|
| 25 | </span> |
---|
| 26 | <span id="personsImmediateCalloutsHelp"> |
---|
| 27 | <g:helpBalloon class="helpballoon" code="task.search.text.persons.immediate.callouts" /> |
---|
| 28 | </span> |
---|
[476] | 29 | </td> |
---|
| 30 | </tr> |
---|
| 31 | |
---|
| 32 | <tr class="prop"> |
---|
| 33 | <td valign="top" class="name"> |
---|
[713] | 34 | <label for="date">Between:</label> |
---|
[476] | 35 | </td> |
---|
| 36 | <td valign="top" class="value"> |
---|
[713] | 37 | <richui:dateChooser name="startDate" format="dd-MM-yyyy" value="${params.startDate}" /> |
---|
| 38 | and |
---|
| 39 | <richui:dateChooser name="endDate" format="dd-MM-yyyy" value="${params.endDate}" /> |
---|
[476] | 40 | </td> |
---|
| 41 | </tr> |
---|
| 42 | |
---|
[713] | 43 | <tr class="prop" style="height:2.7em;"> |
---|
[476] | 44 | <td valign="top" class="name"> |
---|
[713] | 45 | <label for="person.id" id="personLabel">Person:</label> |
---|
[476] | 46 | </td> |
---|
| 47 | <td valign="top" class="value"> |
---|
[713] | 48 | <div id="personSelection"> |
---|
| 49 | <g:select optionKey="id" |
---|
| 50 | from="${Person.findAllByIsActive(true).sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) }}" |
---|
| 51 | name="person.id" |
---|
| 52 | value="${params.person?.id}" |
---|
| 53 | id="personSelector"> |
---|
| 54 | </g:select> |
---|
| 55 | </div> |
---|
[476] | 56 | </td> |
---|
| 57 | </tr> |
---|
| 58 | |
---|
[713] | 59 | <tr class="prop" style="height:2.7em;"> |
---|
[490] | 60 | <td valign="top" class="name"> |
---|
[713] | 61 | <label for="includeCompleted" id="completedLabel">Incl. Completed:</label> |
---|
[490] | 62 | </td> |
---|
| 63 | <td valign="top" class="value"> |
---|
[713] | 64 | <div id="completedSelection"> |
---|
| 65 | <g:checkBox name="includeCompleted" |
---|
| 66 | value="${params.includeCompleted}" |
---|
| 67 | id="completedSelector"> |
---|
| 68 | </g:checkBox> |
---|
| 69 | <g:helpBalloon class="helpballoon" code="task.search.include.completed" /> |
---|
| 70 | </div> |
---|
[490] | 71 | </td> |
---|
| 72 | </tr> |
---|
| 73 | |
---|
[476] | 74 | </tbody> |
---|
| 75 | </table> |
---|
[713] | 76 | |
---|
[476] | 77 | <div class="buttons"> |
---|
| 78 | <span class="button"> |
---|
[713] | 79 | <g:actionSubmit class="save" value="Update" action="${actionName}" /> |
---|
[562] | 80 | <g:actionSubmit class="cancel" value="${g.message(code:'fp.tag.filterPane.button.cancel.text', default:'Cancel')}" onclick="return hideElement('searchPane');" /> |
---|
[476] | 81 | </span> |
---|
| 82 | </div> |
---|
| 83 | </g:form> |
---|
[713] | 84 | |
---|
| 85 | <table> |
---|
| 86 | <tbody> |
---|
| 87 | <tr class="prop"> |
---|
| 88 | <td valign="top" class="name"> |
---|
| 89 | <label>My Tasks:</label> |
---|
| 90 | </td> |
---|
| 91 | <td valign="top" class="value"> |
---|
| 92 | <g:link controller="taskDetailed" |
---|
| 93 | action="${actionName}" |
---|
| 94 | params="[quickSearch: 'myTodays']"> |
---|
| 95 | <g:message code="task.search.text.my.todays" /> |
---|
| 96 | </g:link> - <g:message code="task.search.text.my.todays.description" /> |
---|
| 97 | <br /> |
---|
| 98 | </td> |
---|
| 99 | </tr> |
---|
| 100 | |
---|
| 101 | <tr class="prop"> |
---|
| 102 | <td valign="top" class="name"> |
---|
| 103 | <label>Links:</label> |
---|
| 104 | </td> |
---|
| 105 | <td valign="top" class="value"> |
---|
| 106 | <g:link controller="taskDetailed" |
---|
| 107 | action="workDone"> |
---|
| 108 | <g:message code="task.search.text.work.done" /> |
---|
| 109 | </g:link> - <g:message code="task.search.text.work.done.description" /> |
---|
| 110 | <br /> |
---|
| 111 | <g:link controller="taskDetailed" |
---|
| 112 | action="workLoad"> |
---|
| 113 | <g:message code="task.search.text.work.load" /> |
---|
| 114 | </g:link> - <g:message code="task.search.text.work.load.description" /> |
---|
| 115 | </td> |
---|
| 116 | </tr> |
---|
| 117 | |
---|
| 118 | </tbody> |
---|
| 119 | </table> |
---|
| 120 | |
---|
| 121 | </div> <!-- end search pane --> |
---|