1 | |
---|
2 | |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
6 | <meta name="layout" content="main" /> |
---|
7 | <title>Edit TaskRecurringSchedule</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
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> |
---|
14 | </div> |
---|
15 | <div class="body"> |
---|
16 | <h1>Edit TaskRecurringSchedule</h1> |
---|
17 | <g:if test="${flash.message}"> |
---|
18 | <div class="message">${flash.message}</div> |
---|
19 | </g:if> |
---|
20 | <g:hasErrors bean="${taskRecurringScheduleInstance}"> |
---|
21 | <div class="errors"> |
---|
22 | <g:renderErrors bean="${taskRecurringScheduleInstance}" as="list" /> |
---|
23 | </div> |
---|
24 | </g:hasErrors> |
---|
25 | <g:form method="post" > |
---|
26 | <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" /> |
---|
27 | <input type="hidden" name="version" value="${taskRecurringScheduleInstance?.version}" /> |
---|
28 | <div class="dialog"> |
---|
29 | <table> |
---|
30 | <tbody> |
---|
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 | |
---|
41 | <tr class="prop"> |
---|
42 | <td valign="top" class="name"> |
---|
43 | <label for="startDate">Start Date:</label> |
---|
44 | </td> |
---|
45 | <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}"> |
---|
46 | <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}" precision="day"></g:datePicker> |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | |
---|
50 | <tr class="prop"> |
---|
51 | <td valign="top" class="name"> |
---|
52 | <label for="recurEvery">Recur Every:</label> |
---|
53 | </td> |
---|
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')}" /> |
---|
57 | <g:select optionKey="id" from="${Period.list()}" name="recurPeriod.id" value="${taskRecurringScheduleInstance?.recurPeriod?.id}" ></g:select> |
---|
58 | </td> |
---|
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> |
---|
82 | |
---|
83 | <tr class="prop"> |
---|
84 | <td valign="top" class="name"> |
---|
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> |
---|
90 | </tr> |
---|
91 | |
---|
92 | </tbody> |
---|
93 | </table> |
---|
94 | </div> |
---|
95 | <div class="buttons"> |
---|
96 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
97 | <!-- <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> --> |
---|
98 | </div> |
---|
99 | </g:form> |
---|
100 | </div> |
---|
101 | </body> |
---|
102 | </html> |
---|