[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" /> |
---|
[134] | 7 | <title>Edit TaskRecurringSchedule</title> |
---|
[157] | 8 | <resource:dateChooser /> |
---|
[122] | 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
[157] | 12 | <h1>Edit 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 method="post" > |
---|
[134] | 24 | <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" /> |
---|
| 25 | <input type="hidden" name="version" value="${taskRecurringScheduleInstance?.version}" /> |
---|
[122] | 26 | <div class="dialog"> |
---|
| 27 | <table> |
---|
| 28 | <tbody> |
---|
[135] | 29 | |
---|
[212] | 30 | <tr class="prop"> |
---|
| 31 | <td valign="top" class="name"> |
---|
| 32 | <label for="recForTask">Recurring Schedule for Task:</label> |
---|
| 33 | </td> |
---|
| 34 | <td valign="top" name="recForTask" class="value"> |
---|
| 35 | <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.task?.id}">${taskRecurringScheduleInstance?.task?.encodeAsHTML()}</g:link> |
---|
| 36 | </td> |
---|
| 37 | </tr> |
---|
[445] | 38 | |
---|
| 39 | <tr class="prop"> |
---|
| 40 | <td valign="top" class="name"> |
---|
| 41 | <label for="enabled">Enabled:</label> |
---|
| 42 | </td> |
---|
| 43 | <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}"> |
---|
| 44 | <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox> |
---|
| 45 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.enabled" /> |
---|
| 46 | </td> |
---|
| 47 | </tr> |
---|
[135] | 48 | |
---|
[122] | 49 | <tr class="prop"> |
---|
| 50 | <td valign="top" class="name"> |
---|
[199] | 51 | <label for="nextTargetStartDate">Next Target Start Date:</label> |
---|
[122] | 52 | </td> |
---|
[199] | 53 | <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextTargetStartDate','errors')}"> |
---|
| 54 | <richui:dateChooser name="nextTargetStartDate" format="dd-MM-yyyy" value="${taskRecurringScheduleInstance?.nextTargetStartDate}" /> |
---|
[213] | 55 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.nextTargetStartDate" /> |
---|
[122] | 56 | </td> |
---|
[135] | 57 | </tr> |
---|
| 58 | |
---|
[122] | 59 | <tr class="prop"> |
---|
| 60 | <td valign="top" class="name"> |
---|
[135] | 61 | <label for="recurEvery">Recur Every:</label> |
---|
[122] | 62 | </td> |
---|
[135] | 63 | <td valign="top" class="value" > |
---|
| 64 | <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}" |
---|
[212] | 65 | id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" /> |
---|
[137] | 66 | <g:select optionKey="id" from="${Period.list()}" name="recurPeriod.id" value="${taskRecurringScheduleInstance?.recurPeriod?.id}" ></g:select> |
---|
[213] | 67 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.recurEvery" /> |
---|
[122] | 68 | </td> |
---|
[137] | 69 | </tr> |
---|
| 70 | |
---|
| 71 | <tr class="prop"> |
---|
| 72 | <td valign="top" class="name"> |
---|
[213] | 73 | <label for="taskDuration">Task Duration:</label> |
---|
[137] | 74 | </td> |
---|
| 75 | <td valign="top" class="value" > |
---|
| 76 | <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'taskDuration','errors')}" |
---|
| 77 | id="taskDuration" name="taskDuration" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'taskDuration')}" /> |
---|
| 78 | <g:select optionKey="id" from="${Period.list()}" name="taskDurationPeriod.id" value="${taskRecurringScheduleInstance?.taskDurationPeriod?.id}" ></g:select> |
---|
[213] | 79 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.taskDuration" /> |
---|
[137] | 80 | </td> |
---|
| 81 | </tr> |
---|
| 82 | |
---|
| 83 | <tr class="prop"> |
---|
| 84 | <td valign="top" class="name"> |
---|
[213] | 85 | <label for="generateAhead">Generate Ahead:</label> |
---|
[137] | 86 | </td> |
---|
| 87 | <td valign="top" class="value" > |
---|
| 88 | <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAhead','errors')}" |
---|
| 89 | id="generateAhead" name="generateAhead" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'generateAhead')}" /> |
---|
[199] | 90 | ${Period.get(1).encodeAsHTML()} |
---|
[213] | 91 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.generateAhead" /> |
---|
[137] | 92 | </td> |
---|
| 93 | </tr> |
---|
[445] | 94 | |
---|
| 95 | <tr class="prop"> |
---|
| 96 | <td valign="top" class="name"> |
---|
| 97 | <label for="maxSubTasks">Max Sub Tasks:</label> |
---|
| 98 | </td> |
---|
| 99 | <td valign="top" class="value" > |
---|
| 100 | <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'maxSubTasks','errors')}" |
---|
| 101 | id="maxSubTasks" name="maxSubTasks" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'maxSubTasks')}" /> |
---|
| 102 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.maxSubTasks" /> |
---|
| 103 | </td> |
---|
| 104 | </tr> |
---|
[122] | 105 | |
---|
| 106 | <tr class="prop"> |
---|
| 107 | <td valign="top" class="name"> |
---|
[445] | 108 | <label for="useTargetCompletionDate">Use Target Completion Date:</label> |
---|
[134] | 109 | </td> |
---|
[445] | 110 | <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'useTargetCompletionDate','errors')}"> |
---|
| 111 | <g:checkBox name="useTargetCompletionDate" |
---|
| 112 | value="${taskRecurringScheduleInstance?.useTargetCompletionDate}" > |
---|
| 113 | </g:checkBox> |
---|
| 114 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.useTargetCompletionDate" /> |
---|
| 115 | <g:formatDate date="${taskRecurringScheduleInstance.task.targetCompletionDate}" |
---|
| 116 | format="EEE, dd-MMM-yyyy"/> |
---|
[134] | 117 | </td> |
---|
[135] | 118 | </tr> |
---|
[134] | 119 | |
---|
[122] | 120 | </tbody> |
---|
| 121 | </table> |
---|
| 122 | </div> |
---|
| 123 | <div class="buttons"> |
---|
| 124 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
[137] | 125 | <!-- <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> --> |
---|
[122] | 126 | </div> |
---|
| 127 | </g:form> |
---|
| 128 | </div> |
---|
| 129 | </body> |
---|
| 130 | </html> |
---|