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