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 Immediate Callout</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 | |
---|
16 | <g:hasErrors> |
---|
17 | <div class="errors"> |
---|
18 | <ul> |
---|
19 | <g:eachError bean="${taskInstance}"> |
---|
20 | <li><g:message error="${it}" /></li> |
---|
21 | </g:eachError> |
---|
22 | <g:eachError bean="${entryFaultInstance}"> |
---|
23 | <li><g:message error="${it}" /></li> |
---|
24 | </g:eachError> |
---|
25 | <g:eachError bean="${entryCauseInstance}"> |
---|
26 | <li><g:message error="${it}" /></li> |
---|
27 | </g:eachError> |
---|
28 | <g:eachError bean="${entryWorkDoneInstance}"> |
---|
29 | <li><g:message error="${it}" /></li> |
---|
30 | </g:eachError> |
---|
31 | </ul> |
---|
32 | </div> |
---|
33 | </g:hasErrors> |
---|
34 | |
---|
35 | <g:form action="saveImmediateCallout" method="post" name="createTaskForm"> |
---|
36 | <div class="dialog"> |
---|
37 | <table> |
---|
38 | <tbody> |
---|
39 | |
---|
40 | <tr class="prop"> |
---|
41 | <td valign="top" class="name"> |
---|
42 | <label for="primaryAsset">Asset:</label> |
---|
43 | </td> |
---|
44 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> |
---|
45 | <g:select optionKey="id" |
---|
46 | from="${Asset.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
47 | name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" |
---|
48 | noSelection="['null':/${g.message(code:'default.none.select.text')}/]"> |
---|
49 | </g:select> |
---|
50 | <g:helpBalloon code="task.primaryAsset" /> |
---|
51 | </td> |
---|
52 | </tr> |
---|
53 | |
---|
54 | <tr class="prop"> |
---|
55 | <td valign="top" class="name"> |
---|
56 | <label for="description">Callout Description:</label> |
---|
57 | </td> |
---|
58 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
---|
59 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
60 | <g:helpBalloon class="helpballoon" code="task.description.immediateCallout" /> |
---|
61 | </td> |
---|
62 | </tr> |
---|
63 | |
---|
64 | <tr class="prop"> |
---|
65 | <td valign="top" class="name"> |
---|
66 | <label for="targetStartDate">Date:</label> |
---|
67 | </td> |
---|
68 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> |
---|
69 | <richui:dateChooser name="targetStartDate" format="dd-MM-yyyy" value="${taskInstance.targetStartDate}" /> |
---|
70 | <g:helpBalloon class="helpballoon" code="task.targetStartDate.immediateCallout" /> |
---|
71 | </td> |
---|
72 | </tr> |
---|
73 | |
---|
74 | <tr class="prop"> |
---|
75 | <td valign="top" class="name"> |
---|
76 | <label for="productionReference">Production:</label> |
---|
77 | </td> |
---|
78 | <td valign="top" class="value ${hasErrors(bean:entryFaultInstance,field:'productionReference','errors')}"> |
---|
79 | <g:select optionKey="id" |
---|
80 | from="${ProductionReference.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
81 | name="entryFault.productionReference.id" |
---|
82 | value="${entryFaultInstance?.productionReference?.id}" |
---|
83 | noSelection="['null':/${g.message(code:'default.none.select.text')}/]"> |
---|
84 | </g:select> |
---|
85 | <g:helpBalloon code="entry.productionReference.fault" /> |
---|
86 | </td> |
---|
87 | </tr> |
---|
88 | |
---|
89 | <tr class="prop"> |
---|
90 | <td valign="top" class="name"> |
---|
91 | <label for="durationHour">Down Time:</label> |
---|
92 | </td> |
---|
93 | |
---|
94 | <td valign="top" class="value"> |
---|
95 | <input class="time ${hasErrors(bean:entryFaultInstance,field:'durationHour','errors')}" |
---|
96 | type="text" id="entryFault.durationHour" name="entryFault.durationHour" |
---|
97 | value="${fieldValue(bean:entryFaultInstance,field:'durationHour')}" /> |
---|
98 | : |
---|
99 | <input class="time ${hasErrors(bean:entryFaultInstance,field:'durationMinute','errors')}" |
---|
100 | type="text" id="entryFault.durationMinute" name="entryFault.durationMinute" |
---|
101 | value="${fieldValue(bean:entryFaultInstance,field:'durationMinute')}" /> |
---|
102 | <g:helpBalloon code="entry.duration.fault" /> |
---|
103 | </td> |
---|
104 | </tr> |
---|
105 | |
---|
106 | <tr class="prop"> |
---|
107 | <td valign="top" class="name"> |
---|
108 | <label for="comment">${entryFaultInstance?.entryType.encodeAsHTML()}:</label> |
---|
109 | </td> |
---|
110 | <td valign="top" class="value ${hasErrors(bean:entryFaultInstance,field:'comment','errors')}"> |
---|
111 | <textarea rows="5" cols="40" name="entryFault.comment">${fieldValue(bean:entryFaultInstance, field:'comment')}</textarea> |
---|
112 | <g:helpBalloon code="entry.comment.fault" /> |
---|
113 | </td> |
---|
114 | </tr> |
---|
115 | |
---|
116 | <tr class="prop"> |
---|
117 | <td valign="top" class="name"> |
---|
118 | <label for="comment">${entryCauseInstance?.entryType.encodeAsHTML()}:</label> |
---|
119 | </td> |
---|
120 | <td valign="top" class="value ${hasErrors(bean:entryCauseInstance,field:'comment','errors')}"> |
---|
121 | <textarea rows="5" cols="40" name="entryCause.comment">${fieldValue(bean:entryCauseInstance, field:'comment')}</textarea> |
---|
122 | <g:helpBalloon code="entry.comment.cause" /> |
---|
123 | </td> |
---|
124 | </tr> |
---|
125 | |
---|
126 | <tr class="prop"> |
---|
127 | <td valign="top" class="name"> |
---|
128 | <label for="comment">${entryWorkDoneInstance?.entryType.encodeAsHTML()}:</label> |
---|
129 | </td> |
---|
130 | <td valign="top" class="value ${hasErrors(bean:entryWorkDoneInstance,field:'comment','errors')}"> |
---|
131 | <textarea rows="5" cols="40" name="entryWorkDone.comment">${fieldValue(bean:entryWorkDoneInstance, field:'comment')}</textarea> |
---|
132 | <g:helpBalloon code="entry.comment.work.done" /> |
---|
133 | </td> |
---|
134 | </tr> |
---|
135 | |
---|
136 | <tr class="prop"> |
---|
137 | <td valign="top" class="name"> |
---|
138 | <label for="durationHour">Work Duration:</label> |
---|
139 | </td> |
---|
140 | |
---|
141 | <td valign="top" class="value"> |
---|
142 | <input class="time ${hasErrors(bean:entryWorkDoneInstance,field:'durationHour','errors')}" |
---|
143 | type="text" id="entryWorkDone.durationHour" name="entryWorkDone.durationHour" |
---|
144 | value="${fieldValue(bean:entryWorkDoneInstance,field:'durationHour')}" /> |
---|
145 | : |
---|
146 | <input class="time ${hasErrors(bean:entryWorkDoneInstance,field:'durationMinute','errors')}" |
---|
147 | type="text" id="entryWorkDone.durationMinute" name="entryWorkDone.durationMinute" |
---|
148 | value="${fieldValue(bean:entryWorkDoneInstance,field:'durationMinute')}" /> |
---|
149 | <g:helpBalloon code="entry.duration" /> |
---|
150 | </td> |
---|
151 | </tr> |
---|
152 | |
---|
153 | </tbody> |
---|
154 | </table> |
---|
155 | </div> |
---|
156 | <div class="buttons"> |
---|
157 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
158 | </div> |
---|
159 | </g:form> |
---|
160 | </div> |
---|
161 | </body> |
---|
162 | </html> |
---|