| [395] | 1 | <html> | 
|---|
 | 2 |     <head> | 
|---|
 | 3 |         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | 
|---|
 | 4 |         <meta name="layout" content="main" /> | 
|---|
| [418] | 5 |         <title>Create Immediate Callout</title> | 
|---|
| [395] | 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" /> | 
|---|
| [431] | 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> | 
|---|
| [395] | 33 |             </g:hasErrors> | 
|---|
 | 34 |  | 
|---|
| [418] | 35 |             <g:form action="saveImmediateCallout" method="post" name="createTaskForm"> | 
|---|
| [395] | 36 |                 <div class="dialog"> | 
|---|
 | 37 |                     <table> | 
|---|
 | 38 |                         <tbody> | 
|---|
 | 39 |                          | 
|---|
 | 40 |                             <tr class="prop"> | 
|---|
 | 41 |                                 <td valign="top" class="name"> | 
|---|
| [418] | 42 |                                     <label for="description">Callout Description:</label> | 
|---|
| [395] | 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')}"/> | 
|---|
| [431] | 46 |                                     <g:helpBalloon class="helpballoon" code="task.description.immediateCallout" /> | 
|---|
| [395] | 47 |                                 </td> | 
|---|
 | 48 |                             </tr> | 
|---|
 | 49 |                          | 
|---|
 | 50 |                             <tr class="prop"> | 
|---|
 | 51 |                                 <td valign="top" class="name"> | 
|---|
| [431] | 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" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'--None--']"></g:select> | 
|---|
 | 66 |                                     <g:helpBalloon code="task.primaryAsset" /> | 
|---|
 | 67 |                                 </td> | 
|---|
 | 68 |                             </tr> | 
|---|
 | 69 |                          | 
|---|
 | 70 |                             <tr class="prop"> | 
|---|
 | 71 |                                 <td valign="top" class="name"> | 
|---|
 | 72 |                                     <label for="productionReference">Production:</label> | 
|---|
 | 73 |                                 </td> | 
|---|
 | 74 |                                 <td valign="top" class="value ${hasErrors(bean:entryFaultInstance,field:'productionReference','errors')}"> | 
|---|
 | 75 |                                     <g:select optionKey="id" | 
|---|
 | 76 |                                                         from="${ProductionReference.findAllByIsActive(true)}" | 
|---|
 | 77 |                                                         name="entryFault.productionReference.id" | 
|---|
 | 78 |                                                         value="${entryFaultInstance?.productionReference?.id}" | 
|---|
 | 79 |                                                         noSelection="['null':'--None--']"> | 
|---|
 | 80 |                                     </g:select> | 
|---|
 | 81 |                                     <g:helpBalloon code="entry.productionReference.fault" /> | 
|---|
 | 82 |                                 </td> | 
|---|
 | 83 |                             </tr> | 
|---|
 | 84 |                          | 
|---|
 | 85 |                             <tr class="prop"> | 
|---|
 | 86 |                                 <td valign="top" class="name"> | 
|---|
| [418] | 87 |                                     <label for="durationHour">Down Time:</label> | 
|---|
| [395] | 88 |                                 </td> | 
|---|
 | 89 |  | 
|---|
 | 90 |                                 <td valign="top" class="value"> | 
|---|
 | 91 |                                     <input class="time ${hasErrors(bean:entryFaultInstance,field:'durationHour','errors')}" | 
|---|
 | 92 |                                         type="text" id="entryFault.durationHour" name="entryFault.durationHour" | 
|---|
 | 93 |                                         value="${fieldValue(bean:entryFaultInstance,field:'durationHour')}" /> | 
|---|
 | 94 |                                     : | 
|---|
 | 95 |                                     <input class="time ${hasErrors(bean:entryFaultInstance,field:'durationMinute','errors')}" | 
|---|
 | 96 |                                         type="text" id="entryFault.durationMinute" name="entryFault.durationMinute"  | 
|---|
 | 97 |                                         value="${fieldValue(bean:entryFaultInstance,field:'durationMinute')}" /> | 
|---|
| [431] | 98 |                                     <g:helpBalloon code="entry.duration.fault" /> | 
|---|
| [395] | 99 |                                 </td>  | 
|---|
 | 100 |                             </tr> | 
|---|
 | 101 |                          | 
|---|
 | 102 |                             <tr class="prop"> | 
|---|
 | 103 |                                 <td valign="top" class="name"> | 
|---|
| [418] | 104 |                                     <label for="comment">${entryFaultInstance?.entryType.encodeAsHTML()}:</label> | 
|---|
 | 105 |                                 </td> | 
|---|
 | 106 |                                 <td valign="top" class="value ${hasErrors(bean:entryFaultInstance,field:'comment','errors')}"> | 
|---|
 | 107 |                                     <textarea rows="5" cols="40" name="entryFault.comment">${fieldValue(bean:entryFaultInstance, field:'comment')}</textarea> | 
|---|
 | 108 |                                         <g:helpBalloon code="entry.comment.fault" /> | 
|---|
 | 109 |                                 </td> | 
|---|
 | 110 |                             </tr> | 
|---|
 | 111 |                          | 
|---|
 | 112 |                             <tr class="prop"> | 
|---|
 | 113 |                                 <td valign="top" class="name"> | 
|---|
 | 114 |                                     <label for="comment">${entryCauseInstance?.entryType.encodeAsHTML()}:</label> | 
|---|
 | 115 |                                 </td> | 
|---|
 | 116 |                                 <td valign="top" class="value ${hasErrors(bean:entryCauseInstance,field:'comment','errors')}"> | 
|---|
 | 117 |                                     <textarea rows="5" cols="40" name="entryCause.comment">${fieldValue(bean:entryCauseInstance, field:'comment')}</textarea> | 
|---|
 | 118 |                                         <g:helpBalloon code="entry.comment.cause" /> | 
|---|
 | 119 |                                 </td> | 
|---|
 | 120 |                             </tr> | 
|---|
 | 121 |                          | 
|---|
 | 122 |                             <tr class="prop"> | 
|---|
 | 123 |                                 <td valign="top" class="name"> | 
|---|
| [395] | 124 |                                     <label for="comment">${entryWorkDoneInstance?.entryType.encodeAsHTML()}:</label> | 
|---|
 | 125 |                                 </td> | 
|---|
 | 126 |                                 <td valign="top" class="value ${hasErrors(bean:entryWorkDoneInstance,field:'comment','errors')}"> | 
|---|
 | 127 |                                     <textarea rows="5" cols="40" name="entryWorkDone.comment">${fieldValue(bean:entryWorkDoneInstance, field:'comment')}</textarea> | 
|---|
 | 128 |                                         <g:helpBalloon code="entry.comment.work.done" /> | 
|---|
 | 129 |                                 </td> | 
|---|
 | 130 |                             </tr> | 
|---|
 | 131 |                          | 
|---|
 | 132 |                             <tr class="prop"> | 
|---|
 | 133 |                                 <td valign="top" class="name"> | 
|---|
 | 134 |                                     <label for="durationHour">Work Duration:</label> | 
|---|
 | 135 |                                 </td> | 
|---|
 | 136 |  | 
|---|
 | 137 |                                 <td valign="top" class="value"> | 
|---|
 | 138 |                                     <input class="time ${hasErrors(bean:entryWorkDoneInstance,field:'durationHour','errors')}" | 
|---|
 | 139 |                                         type="text" id="entryWorkDone.durationHour" name="entryWorkDone.durationHour" | 
|---|
 | 140 |                                         value="${fieldValue(bean:entryWorkDoneInstance,field:'durationHour')}" /> | 
|---|
 | 141 |                                     : | 
|---|
 | 142 |                                     <input class="time ${hasErrors(bean:entryWorkDoneInstance,field:'durationMinute','errors')}" | 
|---|
 | 143 |                                         type="text" id="entryWorkDone.durationMinute" name="entryWorkDone.durationMinute"  | 
|---|
 | 144 |                                         value="${fieldValue(bean:entryWorkDoneInstance,field:'durationMinute')}" /> | 
|---|
 | 145 |                                     <g:helpBalloon code="entry.duration" /> | 
|---|
 | 146 |                                 </td>  | 
|---|
 | 147 |                             </tr> | 
|---|
 | 148 |                          | 
|---|
 | 149 |                         </tbody> | 
|---|
 | 150 |                     </table> | 
|---|
 | 151 |                 </div> | 
|---|
 | 152 |                 <div class="buttons"> | 
|---|
 | 153 |                     <span class="button"><input class="save" type="submit" value="Create" /></span> | 
|---|
 | 154 |                 </div> | 
|---|
 | 155 |             </g:form> | 
|---|
 | 156 |         </div> | 
|---|
 | 157 |     </body> | 
|---|
 | 158 | </html> | 
|---|