[96] | 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 AssignedPerson</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[147] | 11 | <h1>Edit Assigned Person</h1> |
---|
[96] | 12 | </div> |
---|
| 13 | <div class="body"> |
---|
| 14 | <g:if test="${flash.message}"> |
---|
| 15 | <div class="message">${flash.message}</div> |
---|
| 16 | </g:if> |
---|
| 17 | <g:hasErrors bean="${assignedPersonInstance}"> |
---|
| 18 | <div class="errors"> |
---|
| 19 | <g:renderErrors bean="${assignedPersonInstance}" as="list" /> |
---|
| 20 | </div> |
---|
| 21 | </g:hasErrors> |
---|
| 22 | <g:form method="post" > |
---|
| 23 | <input type="hidden" name="id" value="${assignedPersonInstance?.id}" /> |
---|
| 24 | <input type="hidden" name="version" value="${assignedPersonInstance?.version}" /> |
---|
| 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> |
---|
| 33 | <td valign="top" class="value ${hasErrors(bean:assignedPersonInstance,field:'task','errors')}"> |
---|
| 34 | <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${assignedPersonInstance?.task?.id}" ></g:select> |
---|
| 35 | </td> |
---|
| 36 | </tr> |
---|
| 37 | |
---|
| 38 | <tr class="prop"> |
---|
| 39 | <td valign="top" class="name"> |
---|
| 40 | <label for="person">Person:</label> |
---|
| 41 | </td> |
---|
| 42 | <td valign="top" class="value ${hasErrors(bean:assignedPersonInstance,field:'person','errors')}"> |
---|
| 43 | <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${assignedPersonInstance?.person?.id}" ></g:select> |
---|
| 44 | </td> |
---|
[147] | 45 | </tr> |
---|
| 46 | |
---|
[96] | 47 | <tr class="prop"> |
---|
| 48 | <td valign="top" class="name"> |
---|
[147] | 49 | <label for="durationHour">Estimated Duration:</label> |
---|
[96] | 50 | </td> |
---|
[147] | 51 | <td valign="top" class="value"> |
---|
| 52 | <input class="time ${hasErrors(bean:assignedPersonInstance,field:'estimatedHour','errors')}" |
---|
| 53 | type="text" id="estimatedHour" name="estimatedHour" |
---|
| 54 | value="${fieldValue(bean:assignedPersonInstance,field:'estimatedHour')}" /> |
---|
| 55 | : |
---|
| 56 | <input class="time ${hasErrors(bean:assignedPersonInstance,field:'estimatedMinute','errors')}" |
---|
| 57 | type="text" id="estimatedMinute" name="estimatedMinute" |
---|
| 58 | value="${fieldValue(bean:assignedPersonInstance,field:'estimatedMinute')}" /> |
---|
| 59 | <g:helpBalloon code="assignedPerson.estimatedDuration" /> |
---|
| 60 | </td> |
---|
| 61 | </tr> |
---|
| 62 | |
---|
[96] | 63 | </tbody> |
---|
| 64 | </table> |
---|
| 65 | </div> |
---|
| 66 | <div class="buttons"> |
---|
| 67 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 68 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 69 | </div> |
---|
| 70 | </g:form> |
---|
| 71 | </div> |
---|
| 72 | </body> |
---|
| 73 | </html> |
---|