source: trunk/grails-app/views/taskRecurringScheduleDetailed/edit.gsp @ 134

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

Add icons from famfamfam silk icons, add acknowledgement page to suite.
Adjust AssignedPerson? controller so that a task.id is required to create.
Move Add AssignedPerson? link up to TaskDetailed? show page.
Further improvements to taskDetailed show tabs.
Adjust TaskProcedureDetailed? controller to allow linking a Procedure to a task during creation.
Adjust TaskRecurringSchedule? to a one-to-one cascading relationship.
Modify CSS class duration to time and added icons.
Regenerate some pages.

File size: 6.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="lastGeneratedDate">Last Generated Date:</label>
35                                </td>
36                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedDate','errors')}">
37                                    <g:datePicker name="lastGeneratedDate" value="${taskRecurringScheduleInstance?.lastGeneratedDate}" noSelection="['':'']"></g:datePicker>
38                                </td>
39                            </tr>
40                       
41                            <tr class="prop">
42                                <td valign="top" class="name">
43                                    <label for="lastGeneratedSubTask">Last Generated Sub Task:</label>
44                                </td>
45                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedSubTask','errors')}">
46                                    <g:select optionKey="id" from="${Task.list()}" name="lastGeneratedSubTask.id" value="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}" noSelection="['null':'']"></g:select>
47                                </td>
48                            </tr>
49                       
50                            <tr class="prop">
51                                <td valign="top" class="name">
52                                    <label for="isEnabled">Is Enabled:</label>
53                                </td>
54                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}">
55                                    <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox>
56                                </td>
57                            </tr>
58                       
59                            <tr class="prop">
60                                <td valign="top" class="name">
61                                    <label for="nextDueDate">Next Due Date:</label>
62                                </td>
63                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextDueDate','errors')}">
64                                    <g:datePicker name="nextDueDate" value="${taskRecurringScheduleInstance?.nextDueDate}" ></g:datePicker>
65                                </td>
66                            </tr>
67                       
68                            <tr class="prop">
69                                <td valign="top" class="name">
70                                    <label for="period">Period:</label>
71                                </td>
72                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'period','errors')}">
73                                    <g:select optionKey="id" from="${Period.list()}" name="period.id" value="${taskRecurringScheduleInstance?.period?.id}" ></g:select>
74                                </td>
75                            </tr>
76                       
77                            <tr class="prop">
78                                <td valign="top" class="name">
79                                    <label for="recurEvery">Recur Every:</label>
80                                </td>
81                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}">
82                                    <input type="text" id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" />
83                                </td>
84                            </tr>
85                       
86                            <tr class="prop">
87                                <td valign="top" class="name">
88                                    <label for="startDate">Start Date:</label>
89                                </td>
90                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}">
91                                    <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}" ></g:datePicker>
92                                </td>
93                            </tr>
94                       
95                            <tr class="prop">
96                                <td valign="top" class="name">
97                                    <label for="task">Task:</label>
98                                </td>
99                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'task','errors')}">
100                                    <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${taskRecurringScheduleInstance?.task?.id}" ></g:select>
101                                </td>
102                            </tr>
103                       
104                        </tbody>
105                    </table>
106                </div>
107                <div class="buttons">
108                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
109                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
110                </div>
111            </g:form>
112        </div>
113    </body>
114</html>
Note: See TracBrowser for help on using the repository browser.