[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> |
---|
[122] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
[134] | 12 | <span class="menuButton"><g:link class="list" action="list">TaskRecurringSchedule List</g:link></span> |
---|
| 13 | <span class="menuButton"><g:link class="create" action="create">New TaskRecurringSchedule</g:link></span> |
---|
[122] | 14 | </div> |
---|
| 15 | <div class="body"> |
---|
[134] | 16 | <h1>Edit TaskRecurringSchedule</h1> |
---|
[122] | 17 | <g:if test="${flash.message}"> |
---|
| 18 | <div class="message">${flash.message}</div> |
---|
| 19 | </g:if> |
---|
[134] | 20 | <g:hasErrors bean="${taskRecurringScheduleInstance}"> |
---|
[122] | 21 | <div class="errors"> |
---|
[134] | 22 | <g:renderErrors bean="${taskRecurringScheduleInstance}" as="list" /> |
---|
[122] | 23 | </div> |
---|
| 24 | </g:hasErrors> |
---|
| 25 | <g:form method="post" > |
---|
[134] | 26 | <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" /> |
---|
| 27 | <input type="hidden" name="version" value="${taskRecurringScheduleInstance?.version}" /> |
---|
[122] | 28 | <div class="dialog"> |
---|
| 29 | <table> |
---|
| 30 | <tbody> |
---|
[135] | 31 | |
---|
| 32 | <tr class="prop"> |
---|
| 33 | <td valign="top" class="name"> |
---|
| 34 | <label for="recForTask">Recurring Schedule for Task:</label> |
---|
| 35 | </td> |
---|
| 36 | <td valign="top" name="recForTask" class="value"> |
---|
| 37 | <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.task?.id}">${taskRecurringScheduleInstance?.task?.encodeAsHTML()}</g:link> |
---|
| 38 | </td> |
---|
| 39 | </tr> |
---|
| 40 | |
---|
[122] | 41 | <tr class="prop"> |
---|
| 42 | <td valign="top" class="name"> |
---|
[135] | 43 | <label for="startDate">Start Date:</label> |
---|
[122] | 44 | </td> |
---|
[135] | 45 | <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}"> |
---|
| 46 | <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}" precision="day"></g:datePicker> |
---|
[122] | 47 | </td> |
---|
[135] | 48 | </tr> |
---|
| 49 | |
---|
[122] | 50 | <tr class="prop"> |
---|
| 51 | <td valign="top" class="name"> |
---|
[135] | 52 | <label for="recurEvery">Recur Every:</label> |
---|
[122] | 53 | </td> |
---|
[135] | 54 | <td valign="top" class="value" > |
---|
| 55 | <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}" |
---|
| 56 | id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" /> |
---|
[137] | 57 | <g:select optionKey="id" from="${Period.list()}" name="recurPeriod.id" value="${taskRecurringScheduleInstance?.recurPeriod?.id}" ></g:select> |
---|
[122] | 58 | </td> |
---|
[137] | 59 | </tr> |
---|
| 60 | |
---|
| 61 | <tr class="prop"> |
---|
| 62 | <td valign="top" class="name"> |
---|
| 63 | <label for="recurEvery">Task Duration:</label> |
---|
| 64 | </td> |
---|
| 65 | <td valign="top" class="value" > |
---|
| 66 | <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'taskDuration','errors')}" |
---|
| 67 | id="taskDuration" name="taskDuration" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'taskDuration')}" /> |
---|
| 68 | <g:select optionKey="id" from="${Period.list()}" name="taskDurationPeriod.id" value="${taskRecurringScheduleInstance?.taskDurationPeriod?.id}" ></g:select> |
---|
| 69 | </td> |
---|
| 70 | </tr> |
---|
| 71 | |
---|
| 72 | <tr class="prop"> |
---|
| 73 | <td valign="top" class="name"> |
---|
| 74 | <label for="recurEvery">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 | <g:select optionKey="id" from="${Period.list()}" name="generateAheadPeriod.id" value="${taskRecurringScheduleInstance?.generateAheadPeriod?.id}" ></g:select> |
---|
| 80 | </td> |
---|
| 81 | </tr> |
---|
[122] | 82 | |
---|
| 83 | <tr class="prop"> |
---|
| 84 | <td valign="top" class="name"> |
---|
[134] | 85 | <label for="isEnabled">Is Enabled:</label> |
---|
| 86 | </td> |
---|
| 87 | <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}"> |
---|
| 88 | <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox> |
---|
| 89 | </td> |
---|
[135] | 90 | </tr> |
---|
[134] | 91 | |
---|
[122] | 92 | </tbody> |
---|
| 93 | </table> |
---|
| 94 | </div> |
---|
| 95 | <div class="buttons"> |
---|
| 96 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
[137] | 97 | <!-- <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> --> |
---|
[122] | 98 | </div> |
---|
| 99 | </g:form> |
---|
| 100 | </div> |
---|
| 101 | </body> |
---|
| 102 | </html> |
---|