| 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>Create AssignedPerson</title>          | 
|---|
| 8 |     </head> | 
|---|
| 9 |     <body> | 
|---|
| 10 |         <div class="nav"> | 
|---|
| 11 |             <h1>Create Assigned Person</h1> | 
|---|
| 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" > | 
|---|
| 23 |                 <input type="hidden"  name="task.id" value="${assignedPersonInstance?.task?.id}" /> | 
|---|
| 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> | 
|---|
| 32 |                                 <td valign="top" class="value ${hasErrors(bean:assignedPersonInstance,field:'task','errors')}"> | 
|---|
| 33 |                                     ${assignedPersonInstance?.task} | 
|---|
| 34 |                                 </td> | 
|---|
| 35 |                             </tr>  | 
|---|
| 36 |                          | 
|---|
| 37 |                             <tr class="prop"> | 
|---|
| 38 |                                 <td valign="top" class="name"> | 
|---|
| 39 |                                     <label for="person">Person:</label> | 
|---|
| 40 |                                 </td> | 
|---|
| 41 |                                 <td valign="top" class="value ${hasErrors(bean:assignedPersonInstance,field:'person','errors')}"> | 
|---|
| 42 |                                     <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${assignedPersonInstance?.person?.id}" ></g:select> | 
|---|
| 43 |                                 </td> | 
|---|
| 44 |                             </tr>  | 
|---|
| 45 |                          | 
|---|
| 46 |                             <tr class="prop"> | 
|---|
| 47 |                                 <td valign="top" class="name"> | 
|---|
| 48 |                                     <label for="durationHour">Estimated Duration:</label> | 
|---|
| 49 |                                 </td> | 
|---|
| 50 |  | 
|---|
| 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 |                          | 
|---|
| 63 |                         </tbody> | 
|---|
| 64 |                     </table> | 
|---|
| 65 |                 </div> | 
|---|
| 66 |                 <div class="buttons"> | 
|---|
| 67 |                     <span class="button"><input class="save" type="submit" value="Create" /></span> | 
|---|
| 68 |                 </div> | 
|---|
| 69 |             </g:form> | 
|---|
| 70 |         </div> | 
|---|
| 71 |     </body> | 
|---|
| 72 | </html> | 
|---|