[826] | 1 | |
---|
[833] | 2 | |
---|
| 3 | <g:render template="/shared/messages" /> |
---|
| 4 | <g:hasErrors bean="${entryInstance}"> |
---|
| 5 | <div class="errors"> |
---|
| 6 | <g:renderErrors bean="${entryInstance}" as="list" /> |
---|
| 7 | </div> |
---|
| 8 | </g:hasErrors> |
---|
| 9 | <div class="pane_close"> |
---|
| 10 | <img src="${resource(dir:'images/skin',file:'cross.png')}" alt="Close" title="Close"/> |
---|
| 11 | </div> |
---|
| 12 | <g:form action="ajaxSave" method="post" name="createEntryForm"> |
---|
[826] | 13 | <g:hiddenField name="task.id" value="${entryInstance.task.id}" /> |
---|
| 14 | <g:hiddenField name="entryType.id" value="${entryInstance.entryType.id}" /> |
---|
| 15 | <div class="dialog"> |
---|
| 16 | <table> |
---|
| 17 | <tbody> |
---|
| 18 | |
---|
| 19 | <tr class="prop"> |
---|
| 20 | <td valign="top" class="name"> |
---|
| 21 | <label for="comment">${entryInstance?.entryType.encodeAsHTML()}:</label> |
---|
| 22 | </td> |
---|
| 23 | <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'comment','errors')}"> |
---|
| 24 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:entryInstance, field:'comment')}</textarea> |
---|
| 25 | <g:if test="${entryInstance?.entryType?.id == 1}"> |
---|
[830] | 26 | <custom:helpBalloon code="entry.comment.fault" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" /> |
---|
[826] | 27 | </g:if> |
---|
| 28 | <g:elseif test="${entryInstance?.entryType?.id == 2}"> |
---|
[830] | 29 | <custom:helpBalloon code="entry.comment.cause" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" /> |
---|
[826] | 30 | </g:elseif> |
---|
| 31 | <g:elseif test="${entryInstance?.entryType?.id == 3}"> |
---|
[830] | 32 | <custom:helpBalloon code="entry.comment.work.done" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" /> |
---|
[826] | 33 | </g:elseif> |
---|
[830] | 34 | <g:elseif test="${entryInstance?.entryType?.id == 6}"> |
---|
| 35 | <custom:helpBalloon code="entry.comment.pm.entry" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" /> |
---|
| 36 | </g:elseif> |
---|
[826] | 37 | </td> |
---|
| 38 | </tr> |
---|
| 39 | |
---|
| 40 | <tr class="prop"> |
---|
| 41 | <td valign="top" class="name"> |
---|
| 42 | <label for="dateDone">Date Done:</label> |
---|
| 43 | </td> |
---|
| 44 | <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'dateDone','errors')}"> |
---|
| 45 | <richui:dateChooser name="dateDone" format="dd-MM-yyyy" value="${entryInstance.dateDone}" /> |
---|
[830] | 46 | <custom:helpBalloon code="entry.date.done" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" /> |
---|
[826] | 47 | </td> |
---|
| 48 | </tr> |
---|
| 49 | |
---|
| 50 | <g:if test="${entryInstance?.entryType?.id == 1}"> |
---|
| 51 | <tr class="prop"> |
---|
| 52 | <td valign="top" class="name"> |
---|
| 53 | <label for="productionReference">Production:</label> |
---|
| 54 | </td> |
---|
| 55 | <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'productionReference','errors')}"> |
---|
| 56 | <g:select optionKey="id" |
---|
| 57 | from="${ProductionReference.findAllByIsActive(true)}" |
---|
| 58 | name="productionReference.id" |
---|
| 59 | value="${entryInstance.productionReference?.id}" |
---|
| 60 | noSelection="['null':'--None--']"> |
---|
| 61 | </g:select> |
---|
[830] | 62 | <custom:helpBalloon code="entry.productionReference.fault" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" /> |
---|
[826] | 63 | </td> |
---|
| 64 | </tr> |
---|
| 65 | </g:if> |
---|
| 66 | |
---|
| 67 | <g:if test="${entryInstance?.entryType?.id != 2}"> |
---|
| 68 | <tr class="prop"> |
---|
| 69 | <td valign="top" class="name"> |
---|
| 70 | <label for="durationHour">Duration:</label> |
---|
| 71 | </td> |
---|
| 72 | |
---|
| 73 | <td valign="top" class="value"> |
---|
| 74 | <input class="time ${hasErrors(bean:entryInstance,field:'durationHour','errors')}" |
---|
| 75 | type="text" id="durationHour" name="durationHour" |
---|
| 76 | value="${fieldValue(bean:entryInstance,field:'durationHour')}" /> |
---|
| 77 | : |
---|
| 78 | <input class="time ${hasErrors(bean:entryInstance,field:'durationMinute','errors')}" |
---|
| 79 | type="text" id="durationMinute" name="durationMinute" |
---|
| 80 | value="${fieldValue(bean:entryInstance,field:'durationMinute')}" /> |
---|
[830] | 81 | <custom:helpBalloon code="entry.duration" iconSrc="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}" /> |
---|
[826] | 82 | </td> |
---|
| 83 | </tr> |
---|
| 84 | </g:if> |
---|
| 85 | |
---|
| 86 | </tbody> |
---|
| 87 | </table> |
---|
| 88 | </div> |
---|
| 89 | <div class="buttons"> |
---|
| 90 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 91 | </div> |
---|
| 92 | </g:form> |
---|