[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> |
---|
[122] | 83 | |
---|
| 84 | <tr class="prop"> |
---|
| 85 | <td valign="top" class="name"> |
---|
[199] | 86 | <label for="enabled">Enabled:</label> |
---|
[122] | 87 | </td> |
---|
[199] | 88 | <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}"> |
---|
| 89 | <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox> |
---|
[213] | 90 | <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.enabled" /> |
---|
[122] | 91 | </td> |
---|
[134] | 92 | </tr> |
---|
| 93 | |
---|
[122] | 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> |
---|