1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
4 | <meta name="layout" content="main" /> |
---|
5 | <title>Work Load</title> |
---|
6 | <resource:dateChooser /> |
---|
7 | </head> |
---|
8 | <body> |
---|
9 | <div class="nav"> |
---|
10 | <h1>Work Load</h1> |
---|
11 | </div> |
---|
12 | <div class="body"> |
---|
13 | <g:render template="/shared/messages" /> |
---|
14 | |
---|
15 | <div class="paginateButtons"> |
---|
16 | <span class="searchButtons"> |
---|
17 | <a href='' onclick="showElement('searchPane'); return false;">Search</a> |
---|
18 | </span> |
---|
19 | </div> |
---|
20 | |
---|
21 | <br /> |
---|
22 | |
---|
23 | |
---|
24 | <g:if test="${workLoadGroups.size() > 0}"> |
---|
25 | <h1>Assigned Groups</h1> |
---|
26 | </g:if> |
---|
27 | <g:else> |
---|
28 | <h1>No Assigned Groups Found</h1> |
---|
29 | </g:else> |
---|
30 | <div class="list"> |
---|
31 | <table> |
---|
32 | <thead> |
---|
33 | <tr> |
---|
34 | <th>Assigned Group</th> |
---|
35 | <th>Duration</th> |
---|
36 | </tr> |
---|
37 | </thead> |
---|
38 | <tbody> |
---|
39 | <g:each in="${workLoadGroups}" status="i" var="workLoadGroup"> |
---|
40 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> |
---|
41 | |
---|
42 | <td class="notClickable"> |
---|
43 | ${workLoadGroup.key} |
---|
44 | </td> |
---|
45 | |
---|
46 | <td class="notClickable"> |
---|
47 | ${workLoadGroup.value.hours}:<g:formatNumber number="${workLoadGroup.value.minutes}" type="number" minIntegerDigits="2" /> |
---|
48 | </td> |
---|
49 | |
---|
50 | </tr> |
---|
51 | </g:each> |
---|
52 | <tr class="total"> |
---|
53 | <td> |
---|
54 | Total |
---|
55 | </td> |
---|
56 | <td> |
---|
57 | ${totalHours}:<g:formatNumber number="${totalMinutes}" type="number" minIntegerDigits="2" /> |
---|
58 | </td> |
---|
59 | </tr> |
---|
60 | </tbody> |
---|
61 | </table> |
---|
62 | </div> |
---|
63 | |
---|
64 | <br /> |
---|
65 | |
---|
66 | <h1>Task Results: ${tasks.size()} / ${tasks.totalCount}</h1> |
---|
67 | |
---|
68 | <g:render template="list" model="[taskInstanceList:tasks]"/> |
---|
69 | |
---|
70 | <!-- Start Search Pane --> |
---|
71 | <div class="overlayPane" id="searchPane" style="display:none;"> |
---|
72 | <h2>Search</h2> |
---|
73 | <g:form method="post" controller="taskDetailed"> |
---|
74 | <table> |
---|
75 | <tbody> |
---|
76 | |
---|
77 | <tr class="prop"> |
---|
78 | <td valign="top" class="name"> |
---|
79 | <label for="date">Date:</label> |
---|
80 | </td> |
---|
81 | <td valign="top" class="value"> |
---|
82 | <richui:dateChooser name="startDate" format="dd-MM-yyyy" value="${startDate}" /> |
---|
83 | to |
---|
84 | <richui:dateChooser name="endDate" format="dd-MM-yyyy" value="${endDate}" /> |
---|
85 | </td> |
---|
86 | </tr> |
---|
87 | |
---|
88 | <tr class="prop"> |
---|
89 | <td valign="top" class="name"> |
---|
90 | <label>Task Status:</label> |
---|
91 | </td> |
---|
92 | <td valign="top" class="value"> |
---|
93 | <custom:checkBoxList name="taskStatusList" |
---|
94 | from="${TaskStatus.findAllByIsActive(true)}" |
---|
95 | value="${taskStatusList?.collect{it.id}}" |
---|
96 | optionKey="id" |
---|
97 | sortBy="name" |
---|
98 | linkController="taskStatusDetailed" |
---|
99 | linkAction="show" |
---|
100 | height="150px"/> |
---|
101 | </td> |
---|
102 | </tr> |
---|
103 | |
---|
104 | <tr class="prop"> |
---|
105 | <td valign="top" class="name"> |
---|
106 | <label>Task Groups:</label> |
---|
107 | </td> |
---|
108 | <td valign="top" class="value"> |
---|
109 | <custom:checkBoxList name="taskGroups" |
---|
110 | from="${TaskGroup.findAllByIsActive(true)}" |
---|
111 | value="${taskGroups?.collect{it.id}}" |
---|
112 | optionKey="id" |
---|
113 | sortBy="name" |
---|
114 | linkController="taskGroupDetailed" |
---|
115 | linkAction="show" |
---|
116 | height="150px"/> |
---|
117 | </td> |
---|
118 | </tr> |
---|
119 | |
---|
120 | </tbody> |
---|
121 | </table> |
---|
122 | <div class="buttons"> |
---|
123 | <span class="button"> |
---|
124 | <g:actionSubmit class="save" value="Update" action="workLoad" /> |
---|
125 | <g:actionSubmit class="cancel" value="${g.message(code:'fp.tag.filterPane.button.cancel.text', default:'Cancel')}" onclick="return hideElement('searchPane');" /> |
---|
126 | </span> |
---|
127 | </div> |
---|
128 | </g:form> |
---|
129 | </div> <!-- end search pane --> |
---|
130 | |
---|
131 | </div> <!--body--> |
---|
132 | </body> |
---|
133 | </html> |
---|