[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" /> |
---|
| 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> |
---|
[418] | 25 | <g:hasErrors bean="${entryCauseInstance}"> |
---|
| 26 | <div class="errors"> |
---|
| 27 | <g:renderErrors bean="${entryCauseInstance}" as="list" /> |
---|
| 28 | </div> |
---|
| 29 | </g:hasErrors> |
---|
[395] | 30 | <g:hasErrors bean="${entryWorkDoneInstance}"> |
---|
| 31 | <div class="errors"> |
---|
| 32 | <g:renderErrors bean="${entryWorkDoneInstance}" as="list" /> |
---|
| 33 | </div> |
---|
| 34 | </g:hasErrors> |
---|
| 35 | |
---|
[418] | 36 | <g:form action="saveImmediateCallout" method="post" name="createTaskForm"> |
---|
[395] | 37 | <div class="dialog"> |
---|
| 38 | <table> |
---|
| 39 | <tbody> |
---|
| 40 | |
---|
| 41 | <tr class="prop"> |
---|
| 42 | <td valign="top" class="name"> |
---|
[418] | 43 | <label for="description">Callout Description:</label> |
---|
[395] | 44 | </td> |
---|
| 45 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
---|
| 46 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
| 47 | <g:helpBalloon class="helpballoon" code="task.description" /> |
---|
| 48 | </td> |
---|
| 49 | </tr> |
---|
| 50 | |
---|
| 51 | <tr class="prop"> |
---|
| 52 | <td valign="top" class="name"> |
---|
[418] | 53 | <label for="durationHour">Down Time:</label> |
---|
[395] | 54 | </td> |
---|
| 55 | |
---|
| 56 | <td valign="top" class="value"> |
---|
| 57 | <input class="time ${hasErrors(bean:entryFaultInstance,field:'durationHour','errors')}" |
---|
| 58 | type="text" id="entryFault.durationHour" name="entryFault.durationHour" |
---|
| 59 | value="${fieldValue(bean:entryFaultInstance,field:'durationHour')}" /> |
---|
| 60 | : |
---|
| 61 | <input class="time ${hasErrors(bean:entryFaultInstance,field:'durationMinute','errors')}" |
---|
| 62 | type="text" id="entryFault.durationMinute" name="entryFault.durationMinute" |
---|
| 63 | value="${fieldValue(bean:entryFaultInstance,field:'durationMinute')}" /> |
---|
| 64 | <g:helpBalloon code="entry.duration" /> |
---|
| 65 | </td> |
---|
| 66 | </tr> |
---|
| 67 | |
---|
| 68 | <tr class="prop"> |
---|
| 69 | <td valign="top" class="name"> |
---|
[418] | 70 | <label for="comment">${entryFaultInstance?.entryType.encodeAsHTML()}:</label> |
---|
| 71 | </td> |
---|
| 72 | <td valign="top" class="value ${hasErrors(bean:entryFaultInstance,field:'comment','errors')}"> |
---|
| 73 | <textarea rows="5" cols="40" name="entryFault.comment">${fieldValue(bean:entryFaultInstance, field:'comment')}</textarea> |
---|
| 74 | <g:helpBalloon code="entry.comment.fault" /> |
---|
| 75 | </td> |
---|
| 76 | </tr> |
---|
| 77 | |
---|
| 78 | <tr class="prop"> |
---|
| 79 | <td valign="top" class="name"> |
---|
| 80 | <label for="comment">${entryCauseInstance?.entryType.encodeAsHTML()}:</label> |
---|
| 81 | </td> |
---|
| 82 | <td valign="top" class="value ${hasErrors(bean:entryCauseInstance,field:'comment','errors')}"> |
---|
| 83 | <textarea rows="5" cols="40" name="entryCause.comment">${fieldValue(bean:entryCauseInstance, field:'comment')}</textarea> |
---|
| 84 | <g:helpBalloon code="entry.comment.cause" /> |
---|
| 85 | </td> |
---|
| 86 | </tr> |
---|
| 87 | |
---|
| 88 | <tr class="prop"> |
---|
| 89 | <td valign="top" class="name"> |
---|
[395] | 90 | <label for="comment">${entryWorkDoneInstance?.entryType.encodeAsHTML()}:</label> |
---|
| 91 | </td> |
---|
| 92 | <td valign="top" class="value ${hasErrors(bean:entryWorkDoneInstance,field:'comment','errors')}"> |
---|
| 93 | <textarea rows="5" cols="40" name="entryWorkDone.comment">${fieldValue(bean:entryWorkDoneInstance, field:'comment')}</textarea> |
---|
| 94 | <g:helpBalloon code="entry.comment.work.done" /> |
---|
| 95 | </td> |
---|
| 96 | </tr> |
---|
| 97 | |
---|
| 98 | <tr class="prop"> |
---|
| 99 | <td valign="top" class="name"> |
---|
| 100 | <label for="durationHour">Work Duration:</label> |
---|
| 101 | </td> |
---|
| 102 | |
---|
| 103 | <td valign="top" class="value"> |
---|
| 104 | <input class="time ${hasErrors(bean:entryWorkDoneInstance,field:'durationHour','errors')}" |
---|
| 105 | type="text" id="entryWorkDone.durationHour" name="entryWorkDone.durationHour" |
---|
| 106 | value="${fieldValue(bean:entryWorkDoneInstance,field:'durationHour')}" /> |
---|
| 107 | : |
---|
| 108 | <input class="time ${hasErrors(bean:entryWorkDoneInstance,field:'durationMinute','errors')}" |
---|
| 109 | type="text" id="entryWorkDone.durationMinute" name="entryWorkDone.durationMinute" |
---|
| 110 | value="${fieldValue(bean:entryWorkDoneInstance,field:'durationMinute')}" /> |
---|
| 111 | <g:helpBalloon code="entry.duration" /> |
---|
| 112 | </td> |
---|
| 113 | </tr> |
---|
| 114 | |
---|
| 115 | <tr class="prop"> |
---|
| 116 | <td valign="top" class="name"> |
---|
| 117 | <label for="primaryAsset">Primary Asset:</label> |
---|
| 118 | </td> |
---|
| 119 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> |
---|
| 120 | <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'--None--']"></g:select> |
---|
| 121 | <g:helpBalloon code="task.primaryAsset" /> |
---|
| 122 | </td> |
---|
| 123 | </tr> |
---|
| 124 | |
---|
| 125 | <tr class="prop"> |
---|
| 126 | <td valign="top" class="name"> |
---|
| 127 | <label for="associatedAssets">Associated Assets:</label> |
---|
| 128 | </td> |
---|
| 129 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'associatedAssets','errors')}"> |
---|
| 130 | <g:select id="associatedAssets" name="associatedAssets" |
---|
| 131 | from="${Asset.list()}" |
---|
| 132 | size="5" multiple="yes" optionKey="id" |
---|
| 133 | value="${taskInstance?.associatedAssets?.id}" noSelection="['':'--None--']"/> |
---|
| 134 | <g:helpBalloon code="task.associatedAssets" /> |
---|
| 135 | </td> |
---|
| 136 | </tr> |
---|
| 137 | |
---|
| 138 | </tbody> |
---|
| 139 | </table> |
---|
| 140 | </div> |
---|
| 141 | <div class="buttons"> |
---|
| 142 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 143 | </div> |
---|
| 144 | </g:form> |
---|
| 145 | </div> |
---|
| 146 | </body> |
---|
| 147 | </html> |
---|