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