source: trunk/grails-app/views/taskRecurringSchedule/edit.gsp @ 157

Last change on this file since 157 was 157, checked in by gav, 14 years ago

Detail work on TaskRecurringSchedule? views and controller.
Regen non-detail views.
Format TaskRecurringScheduleDetailedController? to 4 spaces, no tabs.

File size: 10.7 KB
Line 
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="recurEvery">Recur Every:</label>
35                                </td>
36                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}">
37                                    <input type="text" id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" />
38                                </td>
39                            </tr>
40                       
41                            <tr class="prop">
42                                <td valign="top" class="name">
43                                    <label for="taskDuration">Task Duration:</label>
44                                </td>
45                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'taskDuration','errors')}">
46                                    <input type="text" id="taskDuration" name="taskDuration" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'taskDuration')}" />
47                                </td>
48                            </tr>
49                       
50                            <tr class="prop">
51                                <td valign="top" class="name">
52                                    <label for="generateAhead">Generate Ahead:</label>
53                                </td>
54                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAhead','errors')}">
55                                    <input type="text" id="generateAhead" name="generateAhead" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'generateAhead')}" />
56                                </td>
57                            </tr>
58                       
59                            <tr class="prop">
60                                <td valign="top" class="name">
61                                    <label for="lastGeneratedDate">Last Generated Date:</label>
62                                </td>
63                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedDate','errors')}">
64                                    <g:datePicker name="lastGeneratedDate" value="${taskRecurringScheduleInstance?.lastGeneratedDate}" noSelection="['':'']"></g:datePicker>
65                                </td>
66                            </tr>
67                       
68                            <tr class="prop">
69                                <td valign="top" class="name">
70                                    <label for="lastGeneratedSubTask">Last Generated Sub Task:</label>
71                                </td>
72                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedSubTask','errors')}">
73                                    <g:select optionKey="id" from="${Task.list()}" name="lastGeneratedSubTask.id" value="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}" noSelection="['null':'']"></g:select>
74                                </td>
75                            </tr>
76                       
77                            <tr class="prop">
78                                <td valign="top" class="name">
79                                    <label for="generateAheadPeriod">Generate Ahead Period:</label>
80                                </td>
81                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAheadPeriod','errors')}">
82                                    <g:select optionKey="id" from="${Period.list()}" name="generateAheadPeriod.id" value="${taskRecurringScheduleInstance?.generateAheadPeriod?.id}" ></g:select>
83                                </td>
84                            </tr>
85                       
86                            <tr class="prop">
87                                <td valign="top" class="name">
88                                    <label for="isEnabled">Is Enabled:</label>
89                                </td>
90                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}">
91                                    <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox>
92                                </td>
93                            </tr>
94                       
95                            <tr class="prop">
96                                <td valign="top" class="name">
97                                    <label for="nextGenerationDate">Next Generation Date:</label>
98                                </td>
99                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextGenerationDate','errors')}">
100                                    <g:datePicker name="nextGenerationDate" value="${taskRecurringScheduleInstance?.nextGenerationDate}" ></g:datePicker>
101                                </td>
102                            </tr>
103                       
104                            <tr class="prop">
105                                <td valign="top" class="name">
106                                    <label for="nextTargetCompletionDate">Next Target Completion Date:</label>
107                                </td>
108                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextTargetCompletionDate','errors')}">
109                                    <g:datePicker name="nextTargetCompletionDate" value="${taskRecurringScheduleInstance?.nextTargetCompletionDate}" ></g:datePicker>
110                                </td>
111                            </tr>
112                       
113                            <tr class="prop">
114                                <td valign="top" class="name">
115                                    <label for="nextTargetStartDate">Next Target Start Date:</label>
116                                </td>
117                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextTargetStartDate','errors')}">
118                                    <g:datePicker name="nextTargetStartDate" value="${taskRecurringScheduleInstance?.nextTargetStartDate}" ></g:datePicker>
119                                </td>
120                            </tr>
121                       
122                            <tr class="prop">
123                                <td valign="top" class="name">
124                                    <label for="recurPeriod">Recur Period:</label>
125                                </td>
126                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurPeriod','errors')}">
127                                    <g:select optionKey="id" from="${Period.list()}" name="recurPeriod.id" value="${taskRecurringScheduleInstance?.recurPeriod?.id}" ></g:select>
128                                </td>
129                            </tr>
130                       
131                            <tr class="prop">
132                                <td valign="top" class="name">
133                                    <label for="startDate">Start Date:</label>
134                                </td>
135                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}">
136                                    <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}" ></g:datePicker>
137                                </td>
138                            </tr>
139                       
140                            <tr class="prop">
141                                <td valign="top" class="name">
142                                    <label for="task">Task:</label>
143                                </td>
144                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'task','errors')}">
145                                    <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${taskRecurringScheduleInstance?.task?.id}" ></g:select>
146                                </td>
147                            </tr>
148                       
149                            <tr class="prop">
150                                <td valign="top" class="name">
151                                    <label for="taskDurationPeriod">Task Duration Period:</label>
152                                </td>
153                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'taskDurationPeriod','errors')}">
154                                    <g:select optionKey="id" from="${Period.list()}" name="taskDurationPeriod.id" value="${taskRecurringScheduleInstance?.taskDurationPeriod?.id}" ></g:select>
155                                </td>
156                            </tr>
157                       
158                        </tbody>
159                    </table>
160                </div>
161                <div class="buttons">
162                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
163                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
164                </div>
165            </g:form>
166        </div>
167    </body>
168</html>
Note: See TracBrowser for help on using the repository browser.