[122] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
[157] | 7 | <title>Create TaskRecurringSchedule</title> |
---|
| 8 | <resource:dateChooser /> |
---|
[122] | 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
[157] | 12 | <h1>Create Recurring Schedule</h1> |
---|
[122] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <g:if test="${flash.message}"> |
---|
| 16 | <div class="message">${flash.message}</div> |
---|
| 17 | </g:if> |
---|
[134] | 18 | <g:hasErrors bean="${taskRecurringScheduleInstance}"> |
---|
[122] | 19 | <div class="errors"> |
---|
[134] | 20 | <g:renderErrors bean="${taskRecurringScheduleInstance}" as="list" /> |
---|
[122] | 21 | </div> |
---|
| 22 | </g:hasErrors> |
---|
| 23 | <g:form action="save" method="post" > |
---|
[134] | 24 | <g:hiddenField name="task.id" value="${taskRecurringScheduleInstance.task.id}" /> |
---|
[122] | 25 | <div class="dialog"> |
---|
| 26 | <table> |
---|
| 27 | <tbody> |
---|
[134] | 28 | |
---|
[122] | 29 | <tr class="prop"> |
---|
| 30 | <td valign="top" class="name"> |
---|
[134] | 31 | <label for="recForTask">Recurring Schedule for Task:</label> |
---|
[122] | 32 | </td> |
---|
[211] | 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> |
---|
[135] | 36 | </tr> |
---|
| 37 | |
---|
[134] | 38 | <tr class="prop"> |
---|
| 39 | <td valign="top" class="name"> |
---|
[199] | 40 | <label for="nextTargetStartDate">Next Target Start Date:</label> |
---|
[134] | 41 | </td> |
---|
[199] | 42 | <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextTargetStartDate','errors')}"> |
---|
| 43 | <richui:dateChooser name="nextTargetStartDate" format="dd-MM-yyyy" value="${taskRecurringScheduleInstance?.nextTargetStartDate}" /> |
---|
[213] | 44 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.nextTargetStartDate" /> |
---|
[134] | 45 | </td> |
---|
[135] | 46 | </tr> |
---|
| 47 | |
---|
[122] | 48 | <tr class="prop"> |
---|
| 49 | <td valign="top" class="name"> |
---|
[135] | 50 | <label for="recurEvery">Recur Every:</label> |
---|
[122] | 51 | </td> |
---|
[135] | 52 | <td valign="top" class="value" > |
---|
| 53 | <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}" |
---|
[211] | 54 | id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" /> |
---|
[137] | 55 | <g:select optionKey="id" from="${Period.list()}" name="recurPeriod.id" value="${taskRecurringScheduleInstance?.recurPeriod?.id}" ></g:select> |
---|
[213] | 56 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.recurEvery" /> |
---|
[122] | 57 | </td> |
---|
[137] | 58 | </tr> |
---|
| 59 | |
---|
| 60 | <tr class="prop"> |
---|
| 61 | <td valign="top" class="name"> |
---|
[213] | 62 | <label for="taskDuration">Task Duration:</label> |
---|
[137] | 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> |
---|
[213] | 68 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.taskDuration" /> |
---|
[137] | 69 | </td> |
---|
| 70 | </tr> |
---|
| 71 | |
---|
| 72 | <tr class="prop"> |
---|
| 73 | <td valign="top" class="name"> |
---|
[213] | 74 | <label for="generateAhead">Generate Ahead:</label> |
---|
[137] | 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')}" /> |
---|
[199] | 79 | ${Period.get(1).encodeAsHTML()} |
---|
[213] | 80 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.generateAhead" /> |
---|
[137] | 81 | </td> |
---|
[135] | 82 | </tr> |
---|
[445] | 83 | |
---|
| 84 | <tr class="prop"> |
---|
| 85 | <td valign="top" class="name"> |
---|
| 86 | <label for="maxSubTasks">Max Sub Tasks:</label> |
---|
| 87 | </td> |
---|
| 88 | <td valign="top" class="value" > |
---|
| 89 | <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'maxSubTasks','errors')}" |
---|
| 90 | id="maxSubTasks" name="maxSubTasks" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'maxSubTasks')}" /> |
---|
| 91 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.maxSubTasks" /> |
---|
| 92 | </td> |
---|
| 93 | </tr> |
---|
[122] | 94 | |
---|
| 95 | <tr class="prop"> |
---|
| 96 | <td valign="top" class="name"> |
---|
[445] | 97 | <label for="useTargetCompletionDate">Use Target Completion Date:</label> |
---|
| 98 | </td> |
---|
| 99 | <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'useTargetCompletionDate','errors')}"> |
---|
| 100 | <g:checkBox name="useTargetCompletionDate" |
---|
| 101 | value="${taskRecurringScheduleInstance?.useTargetCompletionDate}" > |
---|
| 102 | </g:checkBox> |
---|
| 103 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.useTargetCompletionDate" /> |
---|
| 104 | <g:formatDate date="${taskRecurringScheduleInstance.task.targetCompletionDate}" |
---|
| 105 | format="EEE, dd-MMM-yyyy"/> |
---|
| 106 | </td> |
---|
| 107 | </tr> |
---|
| 108 | |
---|
| 109 | <tr class="prop"> |
---|
| 110 | <td valign="top" class="name"> |
---|
[199] | 111 | <label for="enabled">Enabled:</label> |
---|
[122] | 112 | </td> |
---|
[199] | 113 | <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}"> |
---|
| 114 | <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox> |
---|
[213] | 115 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.enabled" /> |
---|
[122] | 116 | </td> |
---|
[134] | 117 | </tr> |
---|
| 118 | |
---|
[122] | 119 | </tbody> |
---|
| 120 | </table> |
---|
| 121 | </div> |
---|
| 122 | <div class="buttons"> |
---|
| 123 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 124 | </div> |
---|
| 125 | </g:form> |
---|
| 126 | </div> |
---|
| 127 | </body> |
---|
| 128 | </html> |
---|