[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" /> |
---|
[255] | 7 | <title>Create AssignedPerson</title> |
---|
[96] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[147] | 11 | <h1>Create 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 action="save" method="post" > |
---|
[249] | 23 | <g:hiddenField name="task.id" value="${assignedPersonInstance?.task?.id}" /> |
---|
[96] | 24 | <div class="dialog"> |
---|
| 25 | <table> |
---|
| 26 | <tbody> |
---|
| 27 | |
---|
| 28 | <tr class="prop"> |
---|
| 29 | <td valign="top" class="name"> |
---|
| 30 | <label for="task">Task:</label> |
---|
| 31 | </td> |
---|
[242] | 32 | <td valign="top" class="name"> |
---|
| 33 | <g:link controller="taskDetailed" action="show" id="${assignedPersonInstance.task.id}" > |
---|
| 34 | ${assignedPersonInstance?.task.encodeAsHTML()} |
---|
| 35 | </g:link> |
---|
[96] | 36 | </td> |
---|
[242] | 37 | </tr> |
---|
[96] | 38 | |
---|
| 39 | <tr class="prop"> |
---|
| 40 | <td valign="top" class="name"> |
---|
| 41 | <label for="person">Person:</label> |
---|
| 42 | </td> |
---|
| 43 | <td valign="top" class="value ${hasErrors(bean:assignedPersonInstance,field:'person','errors')}"> |
---|
[255] | 44 | <g:select optionKey="id" |
---|
| 45 | from="${Person.list().sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) }}" |
---|
| 46 | name="person.id" |
---|
| 47 | value="${assignedPersonInstance?.person?.id}" |
---|
| 48 | onchange="${remoteFunction(action:'groupsForPerson', update:'groupsForPerson', params: '\'person.id=\' + this.value' )}"> |
---|
| 49 | </g:select> |
---|
[96] | 50 | </td> |
---|
[255] | 51 | </tr> |
---|
[96] | 52 | |
---|
| 53 | <tr class="prop"> |
---|
| 54 | <td valign="top" class="name"> |
---|
[147] | 55 | <label for="durationHour">Estimated Duration:</label> |
---|
[96] | 56 | </td> |
---|
[147] | 57 | |
---|
| 58 | <td valign="top" class="value"> |
---|
| 59 | <input class="time ${hasErrors(bean:assignedPersonInstance,field:'estimatedHour','errors')}" |
---|
| 60 | type="text" id="estimatedHour" name="estimatedHour" |
---|
| 61 | value="${fieldValue(bean:assignedPersonInstance,field:'estimatedHour')}" /> |
---|
| 62 | : |
---|
| 63 | <input class="time ${hasErrors(bean:assignedPersonInstance,field:'estimatedMinute','errors')}" |
---|
| 64 | type="text" id="estimatedMinute" name="estimatedMinute" |
---|
| 65 | value="${fieldValue(bean:assignedPersonInstance,field:'estimatedMinute')}" /> |
---|
| 66 | <g:helpBalloon code="assignedPerson.estimatedDuration" /> |
---|
| 67 | </td> |
---|
| 68 | </tr> |
---|
[96] | 69 | |
---|
| 70 | </tbody> |
---|
| 71 | </table> |
---|
| 72 | </div> |
---|
| 73 | <div class="buttons"> |
---|
| 74 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 75 | </div> |
---|
| 76 | </g:form> |
---|
[255] | 77 | |
---|
| 78 | <br /> |
---|
| 79 | |
---|
| 80 | <div id="groupsForPerson" class="dialog"> |
---|
| 81 | <g:render template="groupsForPerson" /> |
---|
| 82 | </div> |
---|
| 83 | |
---|
[96] | 84 | </div> |
---|
| 85 | </body> |
---|
| 86 | </html> |
---|