[66] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
[93] | 7 | <title>Edit TaskModification</title> |
---|
[66] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[93] | 11 | <span class="menuButton"><g:link class="list" action="list">TaskModification List</g:link></span> |
---|
| 12 | <span class="menuButton"><g:link class="create" action="create">New TaskModification</g:link></span> |
---|
[66] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
[93] | 15 | <h1>Edit TaskModification</h1> |
---|
[66] | 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
[93] | 19 | <g:hasErrors bean="${taskModificationInstance}"> |
---|
[66] | 20 | <div class="errors"> |
---|
[93] | 21 | <g:renderErrors bean="${taskModificationInstance}" as="list" /> |
---|
[66] | 22 | </div> |
---|
| 23 | </g:hasErrors> |
---|
| 24 | <g:form method="post" > |
---|
[93] | 25 | <input type="hidden" name="id" value="${taskModificationInstance?.id}" /> |
---|
| 26 | <input type="hidden" name="version" value="${taskModificationInstance?.version}" /> |
---|
[66] | 27 | <div class="dialog"> |
---|
| 28 | <table> |
---|
| 29 | <tbody> |
---|
| 30 | |
---|
| 31 | <tr class="prop"> |
---|
| 32 | <td valign="top" class="name"> |
---|
| 33 | <label for="person">Person:</label> |
---|
| 34 | </td> |
---|
[93] | 35 | <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'person','errors')}"> |
---|
| 36 | <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${taskModificationInstance?.person?.id}" ></g:select> |
---|
[66] | 37 | </td> |
---|
| 38 | </tr> |
---|
| 39 | |
---|
| 40 | <tr class="prop"> |
---|
| 41 | <td valign="top" class="name"> |
---|
[93] | 42 | <label for="taskModificationType">Task Modification Type:</label> |
---|
[66] | 43 | </td> |
---|
[93] | 44 | <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'taskModificationType','errors')}"> |
---|
| 45 | <g:select optionKey="id" from="${TaskModificationType.list()}" name="taskModificationType.id" value="${taskModificationInstance?.taskModificationType?.id}" ></g:select> |
---|
[66] | 46 | </td> |
---|
| 47 | </tr> |
---|
| 48 | |
---|
| 49 | <tr class="prop"> |
---|
| 50 | <td valign="top" class="name"> |
---|
| 51 | <label for="task">Task:</label> |
---|
| 52 | </td> |
---|
[93] | 53 | <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'task','errors')}"> |
---|
| 54 | <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${taskModificationInstance?.task?.id}" ></g:select> |
---|
[66] | 55 | </td> |
---|
| 56 | </tr> |
---|
| 57 | |
---|
| 58 | <tr class="prop"> |
---|
| 59 | <td valign="top" class="name"> |
---|
| 60 | <label for="date">Date:</label> |
---|
| 61 | </td> |
---|
[93] | 62 | <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'date','errors')}"> |
---|
[178] | 63 | <g:datePicker name="date" value="${taskModificationInstance?.date}" precision="minute" ></g:datePicker> |
---|
[66] | 64 | </td> |
---|
| 65 | </tr> |
---|
| 66 | |
---|
| 67 | <tr class="prop"> |
---|
| 68 | <td valign="top" class="name"> |
---|
| 69 | <label for="comment">Comment:</label> |
---|
| 70 | </td> |
---|
[93] | 71 | <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'comment','errors')}"> |
---|
| 72 | <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskModificationInstance,field:'comment')}"/> |
---|
[66] | 73 | </td> |
---|
| 74 | </tr> |
---|
| 75 | |
---|
| 76 | </tbody> |
---|
| 77 | </table> |
---|
| 78 | </div> |
---|
| 79 | <div class="buttons"> |
---|
| 80 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 81 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 82 | </div> |
---|
| 83 | </g:form> |
---|
| 84 | </div> |
---|
| 85 | </body> |
---|
| 86 | </html> |
---|