source: trunk/grails-app/views/taskRecurringScheduleDetailed/create.gsp @ 445

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

Add maxSubTasks and useTargetCompletionDate to TaskRecurringSchedule as features to end subTask generation.

File size: 8.0 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        <resource:dateChooser />
9    </head>
10    <body>
11        <div class="nav">
12            <h1>Create Recurring Schedule</h1>
13        </div>
14        <div class="body">
15            <g:if test="${flash.message}">
16            <div class="message">${flash.message}</div>
17            </g:if>
18            <g:hasErrors bean="${taskRecurringScheduleInstance}">
19            <div class="errors">
20                <g:renderErrors bean="${taskRecurringScheduleInstance}" as="list" />
21            </div>
22            </g:hasErrors>
23            <g:form action="save" method="post" >
24                <g:hiddenField name="task.id" value="${taskRecurringScheduleInstance.task.id}" />
25                <div class="dialog">
26                    <table>
27                        <tbody>
28
29                            <tr class="prop">
30                                <td valign="top" class="name">
31                                    <label for="recForTask">Recurring Schedule for Task:</label>
32                                </td>
33                                <td valign="top" name="recForTask" class="value">
34                                    <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.task?.id}">${taskRecurringScheduleInstance?.task?.encodeAsHTML()}</g:link>
35                                </td>
36                            </tr>
37                           
38                            <tr class="prop">
39                                <td valign="top" class="name">
40                                    <label for="nextTargetStartDate">Next Target Start Date:</label>
41                                </td>
42                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextTargetStartDate','errors')}">
43                                    <richui:dateChooser name="nextTargetStartDate" format="dd-MM-yyyy" value="${taskRecurringScheduleInstance?.nextTargetStartDate}" />
44                                    <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.nextTargetStartDate" />
45                                </td>
46                            </tr>   
47                     
48                            <tr class="prop">
49                                <td valign="top" class="name">
50                                    <label for="recurEvery">Recur Every:</label>
51                                </td>
52                                <td valign="top" class="value" >
53                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}"
54                                        id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" />
55                                    <g:select optionKey="id" from="${Period.list()}" name="recurPeriod.id" value="${taskRecurringScheduleInstance?.recurPeriod?.id}" ></g:select>
56                                    <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.recurEvery" />
57                                </td>
58                            </tr>   
59                     
60                            <tr class="prop">
61                                <td valign="top" class="name">
62                                    <label for="taskDuration">Task Duration:</label>
63                                </td>
64                                <td valign="top" class="value" >
65                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'taskDuration','errors')}"
66                                        id="taskDuration" name="taskDuration" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'taskDuration')}" />
67                                    <g:select optionKey="id" from="${Period.list()}" name="taskDurationPeriod.id" value="${taskRecurringScheduleInstance?.taskDurationPeriod?.id}" ></g:select>
68                                    <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.taskDuration" />
69                                </td>
70                            </tr>   
71                     
72                            <tr class="prop">
73                                <td valign="top" class="name">
74                                    <label for="generateAhead">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                                        ${Period.get(1).encodeAsHTML()}
80                                        <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.generateAhead" />
81                                </td>
82                            </tr>
83                     
84                            <tr class="prop">
85                                <td valign="top" class="name">
86                                    <label for="maxSubTasks">Max Sub Tasks:</label>
87                                </td>
88                                <td valign="top" class="value" >
89                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'maxSubTasks','errors')}"
90                                        id="maxSubTasks" name="maxSubTasks" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'maxSubTasks')}" />
91                                        <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.maxSubTasks" />
92                                </td>
93                            </tr>
94                       
95                            <tr class="prop">
96                                <td valign="top" class="name">
97                                    <label for="useTargetCompletionDate">Use Target Completion Date:</label>
98                                </td>
99                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'useTargetCompletionDate','errors')}">
100                                    <g:checkBox name="useTargetCompletionDate"
101                                                            value="${taskRecurringScheduleInstance?.useTargetCompletionDate}" >
102                                    </g:checkBox>
103                                    <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.useTargetCompletionDate" />
104                                    <g:formatDate date="${taskRecurringScheduleInstance.task.targetCompletionDate}"
105                                                                    format="EEE, dd-MMM-yyyy"/>
106                                </td>
107                            </tr>
108                       
109                            <tr class="prop">
110                                <td valign="top" class="name">
111                                    <label for="enabled">Enabled:</label>
112                                </td>
113                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}">
114                                    <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox>
115                                        <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.enabled" />
116                                </td>
117                            </tr>
118                       
119                        </tbody>
120                    </table>
121                </div>
122                <div class="buttons">
123                    <span class="button"><input class="save" type="submit" value="Create" /></span>
124                </div>
125            </g:form>
126        </div>
127    </body>
128</html>
Note: See TracBrowser for help on using the repository browser.