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

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

Finishing touches to recurring tasks.

File size: 6.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>Edit TaskRecurringSchedule</title>
8        <resource:dateChooser />
9    </head>
10    <body>
11        <div class="nav">
12            <h1>Edit 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 method="post" >
24                <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" />
25                <input type="hidden" name="version" value="${taskRecurringScheduleInstance?.version}" />
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                                    <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.task?.id}">${taskRecurringScheduleInstance?.task?.encodeAsHTML()}</g:link>
36                                </td>
37                            </tr>
38                           
39                            <tr class="prop">
40                                <td valign="top" class="name">
41                                    <label for="nextTargetStartDate">Next Target Start Date:</label>
42                                </td>
43                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextTargetStartDate','errors')}">
44                                    <richui:dateChooser name="nextTargetStartDate" format="dd-MM-yyyy" value="${taskRecurringScheduleInstance?.nextTargetStartDate}" />
45                                    <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.nextTargetStartDate" />
46                                </td>
47                            </tr>   
48                     
49                            <tr class="prop">
50                                <td valign="top" class="name">
51                                    <label for="recurEvery">Recur Every:</label>
52                                </td>
53                                <td valign="top" class="value" >
54                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}"
55                                        id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" />
56                                    <g:select optionKey="id" from="${Period.list()}" name="recurPeriod.id" value="${taskRecurringScheduleInstance?.recurPeriod?.id}" ></g:select>
57                                    <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.recurEvery" />
58                                </td>
59                            </tr>   
60                     
61                            <tr class="prop">
62                                <td valign="top" class="name">
63                                    <label for="taskDuration">Task Duration:</label>
64                                </td>
65                                <td valign="top" class="value" >
66                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'taskDuration','errors')}"
67                                        id="taskDuration" name="taskDuration" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'taskDuration')}" />
68                                    <g:select optionKey="id" from="${Period.list()}" name="taskDurationPeriod.id" value="${taskRecurringScheduleInstance?.taskDurationPeriod?.id}" ></g:select>
69                                    <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.taskDuration" />
70                                </td>
71                            </tr>       
72                     
73                            <tr class="prop">
74                                <td valign="top" class="name">
75                                    <label for="generateAhead">Generate Ahead:</label>
76                                </td>
77                                <td valign="top" class="value" >
78                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAhead','errors')}"
79                                        id="generateAhead" name="generateAhead" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'generateAhead')}" />
80                                        ${Period.get(1).encodeAsHTML()}
81                                        <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.generateAhead" />
82                                </td>
83                            </tr>
84                       
85                            <tr class="prop">
86                                <td valign="top" class="name">
87                                    <label for="enabled">Enabled:</label>
88                                </td>
89                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}">
90                                    <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox>
91                                        <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.enabled" />
92                                </td>
93                            </tr>
94                       
95                        </tbody>
96                    </table>
97                </div>
98                <div class="buttons">
99                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
100<!--                     <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -->
101                </div>
102            </g:form>
103        </div>
104    </body>
105</html>
Note: See TracBrowser for help on using the repository browser.