| [92] | 1 |  | 
|---|
 | 2 |  | 
|---|
 | 3 | <html> | 
|---|
 | 4 |     <head> | 
|---|
 | 5 |         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | 
|---|
 | 6 |         <meta name="layout" content="main" /> | 
|---|
| [147] | 7 |         <title>Create Entry</title> | 
|---|
 | 8 |         <nav:resources override="true"/> | 
|---|
 | 9 |         <resource:dateChooser /> | 
|---|
| [92] | 10 |     </head> | 
|---|
 | 11 |     <body> | 
|---|
 | 12 |         <div class="nav"> | 
|---|
| [147] | 13 |             <h1>Create Entry</h1> | 
|---|
| [92] | 14 |         </div> | 
|---|
 | 15 |         <div class="body"> | 
|---|
 | 16 |             <g:if test="${flash.message}"> | 
|---|
 | 17 |             <div class="message">${flash.message}</div> | 
|---|
 | 18 |             </g:if> | 
|---|
 | 19 |             <g:hasErrors bean="${entryInstance}"> | 
|---|
 | 20 |             <div class="errors"> | 
|---|
 | 21 |                 <g:renderErrors bean="${entryInstance}" as="list" /> | 
|---|
 | 22 |             </div> | 
|---|
 | 23 |             </g:hasErrors> | 
|---|
 | 24 |             <g:form action="save" method="post" > | 
|---|
 | 25 |                 <g:hiddenField name="task.id" value="${entryInstance.task.id}" /> | 
|---|
| [191] | 26 |                 <g:hiddenField name="entryType.id" value="${entryInstance.entryType.id}" /> | 
|---|
| [92] | 27 |                 <div class="dialog"> | 
|---|
 | 28 |                     <table> | 
|---|
 | 29 |                         <tbody> | 
|---|
 | 30 |                          | 
|---|
 | 31 |                             <tr class="prop"> | 
|---|
 | 32 |                                 <td valign="top" class="name"> | 
|---|
 | 33 |                                     <label for="task">Task:</label> | 
|---|
 | 34 |                                 </td> | 
|---|
 | 35 |                                 <td valign="top" class="name"> | 
|---|
| [191] | 36 |                                     <g:link controller="taskDetailed" action="show" id="${entryInstance.task.id}" > | 
|---|
| [218] | 37 |                                         ${entryInstance?.task.encodeAsHTML()} | 
|---|
| [191] | 38 |                                     </g:link> | 
|---|
| [92] | 39 |                                 </td> | 
|---|
| [191] | 40 |                             </tr> | 
|---|
| [92] | 41 |                          | 
|---|
 | 42 |                             <tr class="prop"> | 
|---|
 | 43 |                                 <td valign="top" class="name"> | 
|---|
| [191] | 44 |                                     <label for="comment">${entryInstance?.entryType}:</label> | 
|---|
| [92] | 45 |                                 </td> | 
|---|
 | 46 |                                 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'comment','errors')}"> | 
|---|
| [98] | 47 |                                     <textarea rows="5" cols="40" name="comment">${fieldValue(bean:entryInstance, field:'comment')}</textarea> | 
|---|
| [92] | 48 |                                 </td> | 
|---|
 | 49 |                             </tr>  | 
|---|
 | 50 |                          | 
|---|
 | 51 |                             <tr class="prop"> | 
|---|
 | 52 |                                 <td valign="top" class="name"> | 
|---|
 | 53 |                                     <label for="dateDone">Date Done:</label> | 
|---|
 | 54 |                                 </td> | 
|---|
 | 55 |                                 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'dateDone','errors')}"> | 
|---|
| [147] | 56 |                                     <richui:dateChooser name="dateDone" format="dd-MM-yyyy" value="${new Date()}" /> | 
|---|
| [92] | 57 |                                 </td> | 
|---|
 | 58 |                             </tr>  | 
|---|
 | 59 |                          | 
|---|
 | 60 |                             <tr class="prop"> | 
|---|
 | 61 |                                 <td valign="top" class="name"> | 
|---|
| [98] | 62 |                                     <label for="durationHour">Duration:</label> | 
|---|
| [92] | 63 |                                 </td> | 
|---|
 | 64 |  | 
|---|
| [98] | 65 |                                 <td valign="top" class="value"> | 
|---|
| [134] | 66 |                                     <input class="time ${hasErrors(bean:entryInstance,field:'durationHour','errors')}"  | 
|---|
| [98] | 67 |                                         type="text" id="durationHour" name="durationHour"  | 
|---|
 | 68 |                                         value="${fieldValue(bean:entryInstance,field:'durationHour')}" /> | 
|---|
 | 69 |                                     : | 
|---|
| [134] | 70 |                                     <input class="time ${hasErrors(bean:entryInstance,field:'durationMinute','errors')}"  | 
|---|
| [98] | 71 |                                         type="text" id="durationMinute" name="durationMinute"  | 
|---|
 | 72 |                                         value="${fieldValue(bean:entryInstance,field:'durationMinute')}" /> | 
|---|
 | 73 |                                     <g:helpBalloon code="entry.duration" /> | 
|---|
 | 74 |                                 </td>  | 
|---|
 | 75 |                             </tr> | 
|---|
| [92] | 76 |                          | 
|---|
 | 77 |                         </tbody> | 
|---|
 | 78 |                     </table> | 
|---|
 | 79 |                 </div> | 
|---|
 | 80 |                 <div class="buttons"> | 
|---|
 | 81 |                     <span class="button"><input class="save" type="submit" value="Create" /></span> | 
|---|
 | 82 |                 </div> | 
|---|
 | 83 |             </g:form> | 
|---|
 | 84 |         </div> | 
|---|
 | 85 |     </body> | 
|---|
 | 86 | </html> | 
|---|