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 Calendar</title> |
---|
6 | <filterpane:includes /> |
---|
7 | <nav:resources override="true"/> |
---|
8 | <resource:calendarMonthView skin="calendarmonthviewCustom"/> |
---|
9 | <export:resource /> |
---|
10 | <resource:dateChooser /> |
---|
11 | <g:javascript src="taskQuickSearchPane.js" /> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <div class="nav"> |
---|
15 | <nav:renderSubItems group="nav"/> |
---|
16 | </div> |
---|
17 | |
---|
18 | <div class="body"> |
---|
19 | <g:render template="/shared/messages" /> |
---|
20 | |
---|
21 | <filterpane:currentCriteria domainBean="Task" |
---|
22 | action="searchCalendar" |
---|
23 | dateFormat="EEE, dd-MMM-yyyy" |
---|
24 | removeImgDir="images" |
---|
25 | removeImgFile="bullet_delete.png" |
---|
26 | title="Advanced Search"/> |
---|
27 | |
---|
28 | |
---|
29 | <div class="paginateButtons"> |
---|
30 | <span class="searchButtons"> |
---|
31 | <a href='' onclick="showElement('searchPane'); return false;">Quick</a> |
---|
32 | </span> |
---|
33 | Results: ${taskInstanceList.size()} / ${taskInstanceTotal} |
---|
34 | <span class="searchButtons"> |
---|
35 | <filterpane:filterButton text="Advanced" appliedText="Advanced" /> |
---|
36 | </span> |
---|
37 | </div> |
---|
38 | |
---|
39 | <jsUtil:toggleControl toggleId="options" |
---|
40 | imageId="optionsImg" |
---|
41 | closedImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_right.png')}" |
---|
42 | openImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_down.png')}" |
---|
43 | text="${g.message(code: 'default.options.text')}" |
---|
44 | /> |
---|
45 | |
---|
46 | <div id="options" style="display:none;"> |
---|
47 | <g:form method="post" action="setSearchCalendarParamsMax" > |
---|
48 | <g:hiddenField name="params" value="${filterParams}" /> |
---|
49 | <div class="dialog"> |
---|
50 | <table> |
---|
51 | <tbody> |
---|
52 | |
---|
53 | <tr class="prop"> |
---|
54 | <td valign="top" class="name"> |
---|
55 | <label for="max">Results per page:</label> |
---|
56 | </td> |
---|
57 | <td valign="top" class="value"> |
---|
58 | <input type="text" maxlength="4" id="description" name="newMax" value="${params.max}"/> |
---|
59 | |
---|
60 | <span class="buttons"> |
---|
61 | <g:actionSubmit action="setSearchCalendarParamsMax" class="go" value="Update" /> |
---|
62 | </span> |
---|
63 | </td> |
---|
64 | </tr> |
---|
65 | |
---|
66 | </tbody> |
---|
67 | </table> |
---|
68 | </div> |
---|
69 | <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/> |
---|
70 | </g:form> |
---|
71 | </div> |
---|
72 | |
---|
73 | <br /> |
---|
74 | |
---|
75 | <g:if test="${taskInstanceList.size() > 0}"> |
---|
76 | <div class="paginateButtons"> |
---|
77 | <g:link action="searchCalendar" |
---|
78 | params="[showMonth: previousYear.month, showYear: previousYear.year]"> |
---|
79 | << |
---|
80 | </g:link> |
---|
81 | <g:link action="searchCalendar" |
---|
82 | params="[showMonth: previousMonth.month, showYear: previousMonth.year]"> |
---|
83 | < |
---|
84 | </g:link> |
---|
85 | <span class="calendarMonthControlTitle"> |
---|
86 | <g:formatDate date="${showDate}" format="MMMM, yyyy"/> |
---|
87 | </span> |
---|
88 | <g:link action="searchCalendar" |
---|
89 | params="[showMonth: nextMonth.month, showYear: nextMonth.year]"> |
---|
90 | > |
---|
91 | </g:link> |
---|
92 | <g:link action="searchCalendar" |
---|
93 | params="[showMonth: nextYear.month, showYear: nextYear.year]"> |
---|
94 | >> |
---|
95 | </g:link> |
---|
96 | </div> |
---|
97 | <div> |
---|
98 | <g:link action="searchCalendar" |
---|
99 | params="[showMonth: today.month, showYear: today.year]"> |
---|
100 | Today: <g:formatDate date="${today.date}" format="MMMM, yyyy"/> |
---|
101 | </g:link> |
---|
102 | </div> |
---|
103 | <br /> |
---|
104 | |
---|
105 | <richui:calendarMonthView items="${taskInstanceList}" |
---|
106 | createLink="true" |
---|
107 | constraintDateFields="['targetStartDate']" |
---|
108 | month="${showDate}" |
---|
109 | controller="taskDetailed" |
---|
110 | action="show" |
---|
111 | dayAction="create"/> |
---|
112 | </g:if> |
---|
113 | |
---|
114 | <filterpane:filterPane domainBean="Task" |
---|
115 | title="Advanced Search" |
---|
116 | action="searchCalendar" |
---|
117 | class="overlayPane" |
---|
118 | additionalProperties="id" |
---|
119 | excludeProperties="trash, targetCompletionDate" |
---|
120 | associatedProperties="taskPriority.name, |
---|
121 | leadPerson.lastName, |
---|
122 | leadPerson.firstName, |
---|
123 | taskGroup.name, |
---|
124 | highestSeverity.code, |
---|
125 | primaryAsset.name, |
---|
126 | taskStatus.name, |
---|
127 | taskType.name" |
---|
128 | filterPropertyValues="${['taskPriority.name':[values: associatedPropertyValues.taskPriorityList], |
---|
129 | 'leadPerson.lastName':[values: associatedPropertyValues.lastNameList], |
---|
130 | 'leadPerson.firstName':[values: associatedPropertyValues.firstNameList], |
---|
131 | 'taskGroup.name':[values: associatedPropertyValues.taskGroupList], |
---|
132 | 'primaryAsset.name':[values: associatedPropertyValues.assetList], |
---|
133 | 'highestSeverity.code':[values: associatedPropertyValues.highestSeverityList], |
---|
134 | 'taskStatus.name':[values: associatedPropertyValues.taskStatusList], |
---|
135 | 'taskType.name':[values: associatedPropertyValues.taskTypeList], |
---|
136 | targetCompletionDate:[years: associatedPropertyValues.yearRange,precision:'day'], |
---|
137 | targetStartDate:[years: associatedPropertyValues.yearRange,precision:'day'] |
---|
138 | ]}"/> |
---|
139 | |
---|
140 | <g:render template="quickSearchPane" /> |
---|
141 | |
---|
142 | </div> <!-- end body div --> |
---|
143 | </body> |
---|
144 | </html> |
---|