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="description">Callout Description:</label> |
---|
43 | </td> |
---|
44 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
---|
45 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
46 | <g:helpBalloon class="helpballoon" code="task.description.immediateCallout" /> |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | |
---|
50 | <tr class="prop"> |
---|
51 | <td valign="top" class="name"> |
---|
52 | <label for="targetStartDate">Date:</label> |
---|
53 | </td> |
---|
54 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> |
---|
55 | <richui:dateChooser name="targetStartDate" format="dd-MM-yyyy" value="${taskInstance.targetStartDate}" /> |
---|
56 | <g:helpBalloon class="helpballoon" code="task.targetStartDate.immediateCallout" /> |
---|
57 | </td> |
---|
58 | </tr> |
---|
59 | |
---|
60 | <tr class="prop"> |
---|
61 | <td valign="top" class="name"> |
---|
62 | <label for="primaryAsset">Asset:</label> |
---|
63 | </td> |
---|
64 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> |
---|
65 | <g:select optionKey="id" |
---|
66 | from="${Asset.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
67 | name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" |
---|
68 | noSelection="['null':/${g.message(code:'default.none.select.text')}/]"> |
---|
69 | </g:select> |
---|
70 | <g:helpBalloon code="task.primaryAsset" /> |
---|
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> |
---|