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 Done</title> |
---|
6 | <resource:dateChooser /> |
---|
7 | </head> |
---|
8 | <body> |
---|
9 | <div class="nav"> |
---|
10 | <h1>Work Done</h1> |
---|
11 | </div> |
---|
12 | <div class="body"> |
---|
13 | <g:render template="/shared/messages" /> |
---|
14 | |
---|
15 | <div class="paginateButtons"> |
---|
16 | Results: ${totalEntries} |
---|
17 | <span class="searchButtons"> |
---|
18 | <a href='' onclick="showElement('searchPane'); return false;">Search</a> |
---|
19 | </span> |
---|
20 | </div> |
---|
21 | |
---|
22 | <br /> |
---|
23 | |
---|
24 | <g:if test="${entries.size() > 0}"> |
---|
25 | <div class="list"> |
---|
26 | <table> |
---|
27 | <thead> |
---|
28 | <tr> |
---|
29 | <th>Task</th> |
---|
30 | <th>Work Done</th> |
---|
31 | <th>Duration</th> |
---|
32 | <th></th> |
---|
33 | </tr> |
---|
34 | </thead> |
---|
35 | <tbody> |
---|
36 | <g:each in="${entries}" status="i" var="entry"> |
---|
37 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> |
---|
38 | |
---|
39 | <td width="35%" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
40 | ${entry.task.encodeAsHTML()} |
---|
41 | </td> |
---|
42 | <td width="60%" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
43 | ${entry.comment.encodeAsHTML()} |
---|
44 | </td> |
---|
45 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
46 | ${entry.durationHour}:<g:formatNumber number="${entry.durationMinute}" type="number" minIntegerDigits="2" /> |
---|
47 | </td> |
---|
48 | |
---|
49 | <td class="notClickable"> |
---|
50 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
51 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
52 | </g:link> |
---|
53 | </td> |
---|
54 | |
---|
55 | </tr> |
---|
56 | </g:each> |
---|
57 | <tr class="total"> |
---|
58 | <td> |
---|
59 | Total |
---|
60 | </td> |
---|
61 | <td> |
---|
62 | </td> |
---|
63 | <td> |
---|
64 | ${totalHours}:<g:formatNumber number="${totalMinutes}" type="number" minIntegerDigits="2" /> |
---|
65 | </td> |
---|
66 | <td> |
---|
67 | </td> |
---|
68 | </tr> |
---|
69 | </tbody> |
---|
70 | </table> |
---|
71 | </div> |
---|
72 | </g:if> |
---|
73 | |
---|
74 | <!-- Start Search Pane --> |
---|
75 | <div class="overlayPane" id="searchPane" style="display:none;"> |
---|
76 | <h2>Search</h2> |
---|
77 | <g:form method="post" controller="taskDetailed"> |
---|
78 | <table> |
---|
79 | <tbody> |
---|
80 | |
---|
81 | <tr class="prop"> |
---|
82 | <td valign="top" class="name">Person:</td> |
---|
83 | <td valign="top" class="value"> |
---|
84 | <g:select optionKey="id" |
---|
85 | from="${Person.findAllByIsActive(true).sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) }}" |
---|
86 | name="person.id" |
---|
87 | value="${person.id}" > |
---|
88 | </g:select> |
---|
89 | </td> |
---|
90 | </tr> |
---|
91 | |
---|
92 | <tr class="prop"> |
---|
93 | <td valign="top" class="name"> |
---|
94 | <label for="date">Date:</label> |
---|
95 | </td> |
---|
96 | <td valign="top" class="value"> |
---|
97 | <richui:dateChooser name="date" format="dd-MM-yyyy" value="${startOfDay}" /> |
---|
98 | </td> |
---|
99 | </tr> |
---|
100 | |
---|
101 | </tbody> |
---|
102 | </table> |
---|
103 | <div class="buttons"> |
---|
104 | <span class="button"> |
---|
105 | <g:actionSubmit class="save" value="Update" action="workDone" /> |
---|
106 | <g:actionSubmit class="cancel" value="${g.message(code:'fp.tag.filterPane.button.cancel.text', default:'Cancel')}" onclick="return hideElement('searchPane');" /> |
---|
107 | </span> |
---|
108 | </div> |
---|
109 | </g:form> |
---|
110 | </div> <!-- end search pane --> |
---|
111 | |
---|
112 | </div> <!--body--> |
---|
113 | </body> |
---|
114 | </html> |
---|