[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>Create TaskModification</title> |
---|
[66] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[151] | 11 | <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> |
---|
[93] | 12 | <span class="menuButton"><g:link class="list" action="list">TaskModification List</g:link></span> |
---|
[66] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
[93] | 15 | <h1>Create 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 action="save" method="post" > |
---|
| 25 | <div class="dialog"> |
---|
| 26 | <table> |
---|
| 27 | <tbody> |
---|
| 28 | |
---|
| 29 | <tr class="prop"> |
---|
| 30 | <td valign="top" class="name"> |
---|
| 31 | <label for="person">Person:</label> |
---|
| 32 | </td> |
---|
[93] | 33 | <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'person','errors')}"> |
---|
| 34 | <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${taskModificationInstance?.person?.id}" ></g:select> |
---|
[66] | 35 | </td> |
---|
| 36 | </tr> |
---|
| 37 | |
---|
| 38 | <tr class="prop"> |
---|
| 39 | <td valign="top" class="name"> |
---|
[93] | 40 | <label for="taskModificationType">Task Modification Type:</label> |
---|
[66] | 41 | </td> |
---|
[93] | 42 | <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'taskModificationType','errors')}"> |
---|
| 43 | <g:select optionKey="id" from="${TaskModificationType.list()}" name="taskModificationType.id" value="${taskModificationInstance?.taskModificationType?.id}" ></g:select> |
---|
[66] | 44 | </td> |
---|
| 45 | </tr> |
---|
| 46 | |
---|
| 47 | <tr class="prop"> |
---|
| 48 | <td valign="top" class="name"> |
---|
| 49 | <label for="task">Task:</label> |
---|
| 50 | </td> |
---|
[93] | 51 | <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'task','errors')}"> |
---|
| 52 | <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${taskModificationInstance?.task?.id}" ></g:select> |
---|
[66] | 53 | </td> |
---|
| 54 | </tr> |
---|
| 55 | |
---|
| 56 | <tr class="prop"> |
---|
| 57 | <td valign="top" class="name"> |
---|
| 58 | <label for="date">Date:</label> |
---|
| 59 | </td> |
---|
[93] | 60 | <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'date','errors')}"> |
---|
| 61 | <g:datePicker name="date" value="${taskModificationInstance?.date}" ></g:datePicker> |
---|
[66] | 62 | </td> |
---|
| 63 | </tr> |
---|
| 64 | |
---|
| 65 | <tr class="prop"> |
---|
| 66 | <td valign="top" class="name"> |
---|
| 67 | <label for="comment">Comment:</label> |
---|
| 68 | </td> |
---|
[93] | 69 | <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'comment','errors')}"> |
---|
| 70 | <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskModificationInstance,field:'comment')}"/> |
---|
[66] | 71 | </td> |
---|
| 72 | </tr> |
---|
| 73 | |
---|
| 74 | </tbody> |
---|
| 75 | </table> |
---|
| 76 | </div> |
---|
| 77 | <div class="buttons"> |
---|
| 78 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 79 | </div> |
---|
| 80 | </g:form> |
---|
| 81 | </div> |
---|
| 82 | </body> |
---|
| 83 | </html> |
---|