[92] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
| 7 | <title>Edit Entry</title> |
---|
[147] | 8 | <resource:dateChooser /> |
---|
[92] | 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
[147] | 12 | <h1>Edit Entry</h1> |
---|
[92] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <g:if test="${flash.message}"> |
---|
| 16 | <div class="message">${flash.message}</div> |
---|
| 17 | </g:if> |
---|
| 18 | <g:hasErrors bean="${entryInstance}"> |
---|
| 19 | <div class="errors"> |
---|
| 20 | <g:renderErrors bean="${entryInstance}" as="list" /> |
---|
| 21 | </div> |
---|
| 22 | </g:hasErrors> |
---|
| 23 | <g:form method="post" > |
---|
| 24 | <input type="hidden" name="id" value="${entryInstance?.id}" /> |
---|
| 25 | <div class="dialog"> |
---|
| 26 | <table> |
---|
| 27 | <tbody> |
---|
| 28 | |
---|
| 29 | <tr class="prop"> |
---|
| 30 | <td valign="top" class="name"> |
---|
| 31 | <label for="task">Task:</label> |
---|
| 32 | </td> |
---|
[218] | 33 | <td valign="top" class="name"> |
---|
| 34 | <g:link controller="taskDetailed" action="show" id="${entryInstance.task.id}" > |
---|
| 35 | ${entryInstance?.task.encodeAsHTML()} |
---|
| 36 | </g:link> |
---|
[92] | 37 | </td> |
---|
[218] | 38 | </tr> |
---|
[92] | 39 | |
---|
| 40 | <tr class="prop"> |
---|
| 41 | <td valign="top" class="name"> |
---|
| 42 | <label for="comment">Comment:</label> |
---|
| 43 | </td> |
---|
| 44 | <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'comment','errors')}"> |
---|
| 45 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:entryInstance, field:'comment')}</textarea> |
---|
| 46 | </td> |
---|
[218] | 47 | </tr> |
---|
[92] | 48 | |
---|
| 49 | <tr class="prop"> |
---|
| 50 | <td valign="top" class="name"> |
---|
| 51 | <label for="dateDone">Date Done:</label> |
---|
| 52 | </td> |
---|
| 53 | <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'dateDone','errors')}"> |
---|
[147] | 54 | <richui:dateChooser name="dateDone" format="dd-MM-yyyy" value="${entryInstance?.dateDone}" /> |
---|
[92] | 55 | </td> |
---|
[218] | 56 | </tr> |
---|
[431] | 57 | |
---|
| 58 | <g:if test="${entryInstance?.entryType?.id == 1}"> |
---|
| 59 | <tr class="prop"> |
---|
| 60 | <td valign="top" class="name"> |
---|
| 61 | <label for="productionReference">Production:</label> |
---|
| 62 | </td> |
---|
| 63 | <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'productionReference','errors')}"> |
---|
| 64 | <g:select optionKey="id" |
---|
| 65 | from="${ProductionReference.findAllByIsActive(true)}" |
---|
| 66 | name="productionReference.id" |
---|
| 67 | value="${entryInstance.productionReference?.id}" |
---|
| 68 | noSelection="['null':'--None--']"> |
---|
| 69 | </g:select> |
---|
| 70 | <g:helpBalloon code="entry.productionReference.fault" /> |
---|
| 71 | </td> |
---|
| 72 | </tr> |
---|
| 73 | </g:if> |
---|
[98] | 74 | |
---|
[432] | 75 | <g:if test="${entryInstance?.entryType?.id != 2}"> |
---|
| 76 | <tr class="prop"> |
---|
| 77 | <td valign="top" class="name"> |
---|
| 78 | <label for="durationHour">Duration:</label> |
---|
| 79 | </td> |
---|
| 80 | |
---|
| 81 | <td valign="top" class="value"> |
---|
| 82 | <input class="time ${hasErrors(bean:entryInstance,field:'durationHour','errors')}" |
---|
| 83 | type="text" id="durationHour" name="durationHour" |
---|
| 84 | value="${fieldValue(bean:entryInstance,field:'durationHour')}" /> |
---|
| 85 | : |
---|
| 86 | <input class="time ${hasErrors(bean:entryInstance,field:'durationMinute','errors')}" |
---|
| 87 | type="text" id="durationMinute" name="durationMinute" |
---|
| 88 | value="${fieldValue(bean:entryInstance,field:'durationMinute')}" /> |
---|
| 89 | <g:helpBalloon code="entry.duration" /> |
---|
| 90 | </td> |
---|
| 91 | </tr> |
---|
| 92 | </g:if> |
---|
[92] | 93 | |
---|
| 94 | <tr class="prop"> |
---|
| 95 | <td valign="top" class="name"> |
---|
| 96 | <label for="dateEntered">Date Entered:</label> |
---|
| 97 | </td> |
---|
[98] | 98 | <td valign="top" class="value"> |
---|
[139] | 99 | <g:formatDate date="${entryInstance?.dateEntered}" format="EEE, dd-MMM-yyyy @ HH:mm"/> |
---|
[92] | 100 | </td> |
---|
[218] | 101 | </tr> |
---|
[92] | 102 | |
---|
| 103 | <tr class="prop"> |
---|
| 104 | <td valign="top" class="name"> |
---|
| 105 | <label for="enteredBy">Entered By:</label> |
---|
| 106 | </td> |
---|
[98] | 107 | <td valign="top" class="value"> |
---|
| 108 | ${entryInstance?.enteredBy?.toString()} |
---|
[92] | 109 | </td> |
---|
[218] | 110 | </tr> |
---|
[92] | 111 | |
---|
| 112 | <tr class="prop"> |
---|
| 113 | <td valign="top" class="name"> |
---|
| 114 | <label for="entryType">Entry Type:</label> |
---|
| 115 | </td> |
---|
[218] | 116 | <td valign="top" class="name"> |
---|
| 117 | ${entryInstance?.entryType.encodeAsHTML()} |
---|
[92] | 118 | </td> |
---|
[218] | 119 | </tr> |
---|
[92] | 120 | |
---|
| 121 | </tbody> |
---|
| 122 | </table> |
---|
| 123 | </div> |
---|
| 124 | <div class="buttons"> |
---|
| 125 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
[395] | 126 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
[92] | 127 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 128 | </div> |
---|
| 129 | </g:form> |
---|
| 130 | </div> |
---|
| 131 | </body> |
---|
| 132 | </html> |
---|