| 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 TaskRecurringSchedule</title> | 
|---|
| 8 |         <resource:dateChooser /> | 
|---|
| 9 |     </head> | 
|---|
| 10 |     <body> | 
|---|
| 11 |         <div class="nav"> | 
|---|
| 12 |             <h1>Create Recurring Schedule</h1> | 
|---|
| 13 |         </div> | 
|---|
| 14 |         <div class="body"> | 
|---|
| 15 |             <g:if test="${flash.message}"> | 
|---|
| 16 |             <div class="message">${flash.message}</div> | 
|---|
| 17 |             </g:if> | 
|---|
| 18 |             <g:hasErrors bean="${taskRecurringScheduleInstance}"> | 
|---|
| 19 |             <div class="errors"> | 
|---|
| 20 |                 <g:renderErrors bean="${taskRecurringScheduleInstance}" as="list" /> | 
|---|
| 21 |             </div> | 
|---|
| 22 |             </g:hasErrors> | 
|---|
| 23 |             <g:form action="save" method="post" > | 
|---|
| 24 |                 <g:hiddenField name="task.id" value="${taskRecurringScheduleInstance.task.id}" /> | 
|---|
| 25 |                 <div class="dialog"> | 
|---|
| 26 |                     <table> | 
|---|
| 27 |                         <tbody> | 
|---|
| 28 |  | 
|---|
| 29 |                             <tr class="prop"> | 
|---|
| 30 |                                 <td valign="top" class="name"> | 
|---|
| 31 |                                     <label for="recForTask">Recurring Schedule for Task:</label> | 
|---|
| 32 |                                 </td> | 
|---|
| 33 |                                 <td valign="top" name="recForTask" class="value"> | 
|---|
| 34 |                                     <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.task?.id}">${taskRecurringScheduleInstance?.task?.encodeAsHTML()}</g:link> | 
|---|
| 35 |                                 </td> | 
|---|
| 36 |                             </tr> | 
|---|
| 37 |                              | 
|---|
| 38 |                             <tr class="prop"> | 
|---|
| 39 |                                 <td valign="top" class="name"> | 
|---|
| 40 |                                     <label for="nextTargetStartDate">Next Target Start Date:</label> | 
|---|
| 41 |                                 </td> | 
|---|
| 42 |                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextTargetStartDate','errors')}"> | 
|---|
| 43 |                                     <richui:dateChooser name="nextTargetStartDate" format="dd-MM-yyyy" value="${taskRecurringScheduleInstance?.nextTargetStartDate}" /> | 
|---|
| 44 |                                     <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.nextTargetStartDate" /> | 
|---|
| 45 |                                 </td> | 
|---|
| 46 |                             </tr>    | 
|---|
| 47 |                        | 
|---|
| 48 |                             <tr class="prop"> | 
|---|
| 49 |                                 <td valign="top" class="name"> | 
|---|
| 50 |                                     <label for="recurEvery">Recur Every:</label> | 
|---|
| 51 |                                 </td> | 
|---|
| 52 |                                 <td valign="top" class="value" > | 
|---|
| 53 |                                     <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}" | 
|---|
| 54 |                                         id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" /> | 
|---|
| 55 |                                     <g:select optionKey="id" from="${Period.list()}" name="recurPeriod.id" value="${taskRecurringScheduleInstance?.recurPeriod?.id}" ></g:select> | 
|---|
| 56 |                                     <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.recurEvery" /> | 
|---|
| 57 |                                 </td> | 
|---|
| 58 |                             </tr>    | 
|---|
| 59 |                        | 
|---|
| 60 |                             <tr class="prop"> | 
|---|
| 61 |                                 <td valign="top" class="name"> | 
|---|
| 62 |                                     <label for="taskDuration">Task Duration:</label> | 
|---|
| 63 |                                 </td> | 
|---|
| 64 |                                 <td valign="top" class="value" > | 
|---|
| 65 |                                     <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'taskDuration','errors')}" | 
|---|
| 66 |                                         id="taskDuration" name="taskDuration" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'taskDuration')}" /> | 
|---|
| 67 |                                     <g:select optionKey="id" from="${Period.list()}" name="taskDurationPeriod.id" value="${taskRecurringScheduleInstance?.taskDurationPeriod?.id}" ></g:select> | 
|---|
| 68 |                                     <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.taskDuration" /> | 
|---|
| 69 |                                 </td> | 
|---|
| 70 |                             </tr>    | 
|---|
| 71 |                        | 
|---|
| 72 |                             <tr class="prop"> | 
|---|
| 73 |                                 <td valign="top" class="name"> | 
|---|
| 74 |                                     <label for="generateAhead">Generate Ahead:</label> | 
|---|
| 75 |                                 </td> | 
|---|
| 76 |                                 <td valign="top" class="value" > | 
|---|
| 77 |                                     <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAhead','errors')}" | 
|---|
| 78 |                                         id="generateAhead" name="generateAhead" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'generateAhead')}" /> | 
|---|
| 79 |                                         ${Period.get(1).encodeAsHTML()} | 
|---|
| 80 |                                         <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.generateAhead" /> | 
|---|
| 81 |                                 </td> | 
|---|
| 82 |                             </tr> | 
|---|
| 83 |                          | 
|---|
| 84 |                             <tr class="prop"> | 
|---|
| 85 |                                 <td valign="top" class="name"> | 
|---|
| 86 |                                     <label for="enabled">Enabled:</label> | 
|---|
| 87 |                                 </td> | 
|---|
| 88 |                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}"> | 
|---|
| 89 |                                     <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox> | 
|---|
| 90 |                                         <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.enabled" /> | 
|---|
| 91 |                                 </td> | 
|---|
| 92 |                             </tr> | 
|---|
| 93 |                          | 
|---|
| 94 |                         </tbody> | 
|---|
| 95 |                     </table> | 
|---|
| 96 |                 </div> | 
|---|
| 97 |                 <div class="buttons"> | 
|---|
| 98 |                     <span class="button"><input class="save" type="submit" value="Create" /></span> | 
|---|
| 99 |                 </div> | 
|---|
| 100 |             </g:form> | 
|---|
| 101 |         </div> | 
|---|
| 102 |     </body> | 
|---|
| 103 | </html> | 
|---|