1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
4 | <meta name="layout" content="main" /> |
---|
5 | <title>Create Breakin</title> |
---|
6 | <nav:resources override="true"/> |
---|
7 | <resource:dateChooser /> |
---|
8 | </head> |
---|
9 | <body onload="document.createTaskForm.description.focus();"> |
---|
10 | <div class="nav"> |
---|
11 | <nav:renderSubItems group="nav"/> |
---|
12 | </div> |
---|
13 | <div class="body"> |
---|
14 | <g:render template="/shared/messages" /> |
---|
15 | <g:hasErrors bean="${taskInstance}"> |
---|
16 | <div class="errors"> |
---|
17 | <g:renderErrors bean="${taskInstance}" as="list" /> |
---|
18 | </div> |
---|
19 | </g:hasErrors> |
---|
20 | <g:hasErrors bean="${entryFaultInstance}"> |
---|
21 | <div class="errors"> |
---|
22 | <g:renderErrors bean="${entryFaultInstance}" as="list" /> |
---|
23 | </div> |
---|
24 | </g:hasErrors> |
---|
25 | <g:hasErrors bean="${entryWorkDoneInstance}"> |
---|
26 | <div class="errors"> |
---|
27 | <g:renderErrors bean="${entryWorkDoneInstance}" as="list" /> |
---|
28 | </div> |
---|
29 | </g:hasErrors> |
---|
30 | |
---|
31 | <g:form action="saveBreakin" method="post" name="createTaskForm"> |
---|
32 | <div class="dialog"> |
---|
33 | <table> |
---|
34 | <tbody> |
---|
35 | |
---|
36 | <tr class="prop"> |
---|
37 | <td valign="top" class="name"> |
---|
38 | <label for="description">Breakin Description:</label> |
---|
39 | </td> |
---|
40 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
---|
41 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
42 | <g:helpBalloon class="helpballoon" code="task.description" /> |
---|
43 | </td> |
---|
44 | </tr> |
---|
45 | |
---|
46 | <tr class="prop"> |
---|
47 | <td valign="top" class="name"> |
---|
48 | <label for="comment">${entryFaultInstance?.entryType.encodeAsHTML()}:</label> |
---|
49 | </td> |
---|
50 | <td valign="top" class="value ${hasErrors(bean:entryFaultInstance,field:'comment','errors')}"> |
---|
51 | <textarea rows="5" cols="40" name="entryFault.comment">${fieldValue(bean:entryFaultInstance, field:'comment')}</textarea> |
---|
52 | <g:helpBalloon code="entry.comment.fault" /> |
---|
53 | </td> |
---|
54 | </tr> |
---|
55 | |
---|
56 | <tr class="prop"> |
---|
57 | <td valign="top" class="name"> |
---|
58 | <label for="durationHour">Fault Duration:</label> |
---|
59 | </td> |
---|
60 | |
---|
61 | <td valign="top" class="value"> |
---|
62 | <input class="time ${hasErrors(bean:entryFaultInstance,field:'durationHour','errors')}" |
---|
63 | type="text" id="entryFault.durationHour" name="entryFault.durationHour" |
---|
64 | value="${fieldValue(bean:entryFaultInstance,field:'durationHour')}" /> |
---|
65 | : |
---|
66 | <input class="time ${hasErrors(bean:entryFaultInstance,field:'durationMinute','errors')}" |
---|
67 | type="text" id="entryFault.durationMinute" name="entryFault.durationMinute" |
---|
68 | value="${fieldValue(bean:entryFaultInstance,field:'durationMinute')}" /> |
---|
69 | <g:helpBalloon code="entry.duration" /> |
---|
70 | </td> |
---|
71 | </tr> |
---|
72 | |
---|
73 | <tr class="prop"> |
---|
74 | <td valign="top" class="name"> |
---|
75 | <label for="comment">${entryWorkDoneInstance?.entryType.encodeAsHTML()}:</label> |
---|
76 | </td> |
---|
77 | <td valign="top" class="value ${hasErrors(bean:entryWorkDoneInstance,field:'comment','errors')}"> |
---|
78 | <textarea rows="5" cols="40" name="entryWorkDone.comment">${fieldValue(bean:entryWorkDoneInstance, field:'comment')}</textarea> |
---|
79 | <g:helpBalloon code="entry.comment.work.done" /> |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | |
---|
83 | <tr class="prop"> |
---|
84 | <td valign="top" class="name"> |
---|
85 | <label for="durationHour">Work Duration:</label> |
---|
86 | </td> |
---|
87 | |
---|
88 | <td valign="top" class="value"> |
---|
89 | <input class="time ${hasErrors(bean:entryWorkDoneInstance,field:'durationHour','errors')}" |
---|
90 | type="text" id="entryWorkDone.durationHour" name="entryWorkDone.durationHour" |
---|
91 | value="${fieldValue(bean:entryWorkDoneInstance,field:'durationHour')}" /> |
---|
92 | : |
---|
93 | <input class="time ${hasErrors(bean:entryWorkDoneInstance,field:'durationMinute','errors')}" |
---|
94 | type="text" id="entryWorkDone.durationMinute" name="entryWorkDone.durationMinute" |
---|
95 | value="${fieldValue(bean:entryWorkDoneInstance,field:'durationMinute')}" /> |
---|
96 | <g:helpBalloon code="entry.duration" /> |
---|
97 | </td> |
---|
98 | </tr> |
---|
99 | |
---|
100 | <tr class="prop"> |
---|
101 | <td valign="top" class="name"> |
---|
102 | <label for="primaryAsset">Primary Asset:</label> |
---|
103 | </td> |
---|
104 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> |
---|
105 | <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'--None--']"></g:select> |
---|
106 | <g:helpBalloon code="task.primaryAsset" /> |
---|
107 | </td> |
---|
108 | </tr> |
---|
109 | |
---|
110 | <tr class="prop"> |
---|
111 | <td valign="top" class="name"> |
---|
112 | <label for="associatedAssets">Associated Assets:</label> |
---|
113 | </td> |
---|
114 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'associatedAssets','errors')}"> |
---|
115 | <g:select id="associatedAssets" name="associatedAssets" |
---|
116 | from="${Asset.list()}" |
---|
117 | size="5" multiple="yes" optionKey="id" |
---|
118 | value="${taskInstance?.associatedAssets?.id}" noSelection="['':'--None--']"/> |
---|
119 | <g:helpBalloon code="task.associatedAssets" /> |
---|
120 | </td> |
---|
121 | </tr> |
---|
122 | |
---|
123 | </tbody> |
---|
124 | </table> |
---|
125 | </div> |
---|
126 | <div class="buttons"> |
---|
127 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
128 | </div> |
---|
129 | </g:form> |
---|
130 | </div> |
---|
131 | </body> |
---|
132 | </html> |
---|