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