[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> |
---|
[135] | 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 | |
---|
[134] | 38 | <tr class="prop"> |
---|
| 39 | <td valign="top" class="name"> |
---|
[135] | 40 | <label for="startDate">Start Date:</label> |
---|
[134] | 41 | </td> |
---|
[135] | 42 | <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}"> |
---|
[157] | 43 | <richui:dateChooser name="startDate" format="dd-MM-yyyy" value="${taskRecurringScheduleInstance?.startDate}" /> |
---|
[134] | 44 | </td> |
---|
[135] | 45 | </tr> |
---|
| 46 | |
---|
[122] | 47 | <tr class="prop"> |
---|
| 48 | <td valign="top" class="name"> |
---|
[135] | 49 | <label for="recurEvery">Recur Every:</label> |
---|
[122] | 50 | </td> |
---|
[135] | 51 | <td valign="top" class="value" > |
---|
| 52 | <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}" |
---|
| 53 | id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" /> |
---|
[137] | 54 | <g:select optionKey="id" from="${Period.list()}" name="recurPeriod.id" value="${taskRecurringScheduleInstance?.recurPeriod?.id}" ></g:select> |
---|
[122] | 55 | </td> |
---|
[137] | 56 | </tr> |
---|
| 57 | |
---|
| 58 | <tr class="prop"> |
---|
| 59 | <td valign="top" class="name"> |
---|
| 60 | <label for="recurEvery">Task Duration:</label> |
---|
| 61 | </td> |
---|
| 62 | <td valign="top" class="value" > |
---|
| 63 | <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'taskDuration','errors')}" |
---|
| 64 | id="taskDuration" name="taskDuration" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'taskDuration')}" /> |
---|
| 65 | <g:select optionKey="id" from="${Period.list()}" name="taskDurationPeriod.id" value="${taskRecurringScheduleInstance?.taskDurationPeriod?.id}" ></g:select> |
---|
| 66 | </td> |
---|
| 67 | </tr> |
---|
| 68 | |
---|
| 69 | <tr class="prop"> |
---|
| 70 | <td valign="top" class="name"> |
---|
| 71 | <label for="recurEvery">Generate Ahead:</label> |
---|
| 72 | </td> |
---|
| 73 | <td valign="top" class="value" > |
---|
| 74 | <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAhead','errors')}" |
---|
| 75 | id="generateAhead" name="generateAhead" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'generateAhead')}" /> |
---|
| 76 | <g:select optionKey="id" from="${Period.list()}" name="generateAheadPeriod.id" value="${taskRecurringScheduleInstance?.generateAheadPeriod?.id}" ></g:select> |
---|
| 77 | </td> |
---|
[135] | 78 | </tr> |
---|
[122] | 79 | |
---|
| 80 | <tr class="prop"> |
---|
| 81 | <td valign="top" class="name"> |
---|
[134] | 82 | <label for="isEnabled">Is Enabled:</label> |
---|
[122] | 83 | </td> |
---|
[134] | 84 | <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}"> |
---|
| 85 | <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox> |
---|
[122] | 86 | </td> |
---|
[134] | 87 | </tr> |
---|
| 88 | |
---|
[122] | 89 | </tbody> |
---|
| 90 | </table> |
---|
| 91 | </div> |
---|
| 92 | <div class="buttons"> |
---|
| 93 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 94 | </div> |
---|
| 95 | </g:form> |
---|
| 96 | </div> |
---|
| 97 | </body> |
---|
| 98 | </html> |
---|