source: trunk/grails-app/views/taskRecurringSchedule/create.gsp @ 137

Last change on this file since 137 was 137, checked in by gav, 15 years ago

Update to grails-1.1.1 release.
Fix WorkDone? and Fault entries not showing after update, now using criteria.
Work on TaskRecurringSchedule, add DateUtilService class, regenerate views to suite.
Finally have correct rollback behaviour on TaskRecurringSchedule? domain object updates by using transactions.
Added name to copyright since the license has no meaning without it.

File size: 8.3 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>Create 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        </div>
14        <div class="body">
15            <h1>Create TaskRecurringSchedule</h1>
16            <g:if test="${flash.message}">
17            <div class="message">${flash.message}</div>
18            </g:if>
19            <g:hasErrors bean="${taskRecurringScheduleInstance}">
20            <div class="errors">
21                <g:renderErrors bean="${taskRecurringScheduleInstance}" as="list" />
22            </div>
23            </g:hasErrors>
24            <g:form action="save" method="post" >
25                <div class="dialog">
26                    <table>
27                        <tbody>
28                       
29                            <tr class="prop">
30                                <td valign="top" class="name">
31                                    <label for="lastGeneratedDate">Last Generated Date:</label>
32                                </td>
33                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedDate','errors')}">
34                                    <g:datePicker name="lastGeneratedDate" value="${taskRecurringScheduleInstance?.lastGeneratedDate}" noSelection="['':'']"></g:datePicker>
35                                </td>
36                            </tr>
37                       
38                            <tr class="prop">
39                                <td valign="top" class="name">
40                                    <label for="lastGeneratedSubTask">Last Generated Sub Task:</label>
41                                </td>
42                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedSubTask','errors')}">
43                                    <g:select optionKey="id" from="${Task.list()}" name="lastGeneratedSubTask.id" value="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}" noSelection="['null':'']"></g:select>
44                                </td>
45                            </tr>
46                       
47                            <tr class="prop">
48                                <td valign="top" class="name">
49                                    <label for="generateAhead">Generate Ahead:</label>
50                                </td>
51                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAhead','errors')}">
52                                    <input type="text" id="generateAhead" name="generateAhead" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'generateAhead')}" />
53                                </td>
54                            </tr>
55                       
56                            <tr class="prop">
57                                <td valign="top" class="name">
58                                    <label for="generateAheadPeriod">Generate Ahead Period:</label>
59                                </td>
60                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAheadPeriod','errors')}">
61                                    <g:select optionKey="id" from="${Period.list()}" name="generateAheadPeriod.id" value="${taskRecurringScheduleInstance?.generateAheadPeriod?.id}" ></g:select>
62                                </td>
63                            </tr>
64                       
65                            <tr class="prop">
66                                <td valign="top" class="name">
67                                    <label for="isEnabled">Is Enabled:</label>
68                                </td>
69                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}">
70                                    <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox>
71                                </td>
72                            </tr>
73                       
74                            <tr class="prop">
75                                <td valign="top" class="name">
76                                    <label for="nextDueDate">Next Due Date:</label>
77                                </td>
78                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextDueDate','errors')}">
79                                    <g:datePicker name="nextDueDate" value="${taskRecurringScheduleInstance?.nextDueDate}" ></g:datePicker>
80                                </td>
81                            </tr>
82                       
83                            <tr class="prop">
84                                <td valign="top" class="name">
85                                    <label for="nextGenerationDate">Next Generation Date:</label>
86                                </td>
87                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextGenerationDate','errors')}">
88                                    <g:datePicker name="nextGenerationDate" value="${taskRecurringScheduleInstance?.nextGenerationDate}" ></g:datePicker>
89                                </td>
90                            </tr>
91                       
92                            <tr class="prop">
93                                <td valign="top" class="name">
94                                    <label for="recurEvery">Recur Every:</label>
95                                </td>
96                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}">
97                                    <input type="text" id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" />
98                                </td>
99                            </tr>
100                       
101                            <tr class="prop">
102                                <td valign="top" class="name">
103                                    <label for="recurPeriod">Recur Period:</label>
104                                </td>
105                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurPeriod','errors')}">
106                                    <g:select optionKey="id" from="${Period.list()}" name="recurPeriod.id" value="${taskRecurringScheduleInstance?.recurPeriod?.id}" ></g:select>
107                                </td>
108                            </tr>
109                       
110                            <tr class="prop">
111                                <td valign="top" class="name">
112                                    <label for="startDate">Start Date:</label>
113                                </td>
114                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}">
115                                    <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}" ></g:datePicker>
116                                </td>
117                            </tr>
118                       
119                            <tr class="prop">
120                                <td valign="top" class="name">
121                                    <label for="task">Task:</label>
122                                </td>
123                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'task','errors')}">
124                                    <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${taskRecurringScheduleInstance?.task?.id}" ></g:select>
125                                </td>
126                            </tr>
127                       
128                        </tbody>
129                    </table>
130                </div>
131                <div class="buttons">
132                    <span class="button"><input class="save" type="submit" value="Create" /></span>
133                </div>
134            </g:form>
135        </div>
136    </body>
137</html>
Note: See TracBrowser for help on using the repository browser.