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

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

Protect taskRecurringSchedule from creating if one already exists.
Turn some taskInstance text into links.
Work on taskRecurringSchedule detail and creation.

File size: 4.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>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="recForTask">Recurring Schedule for Task:</label>
35                                                                </td>
36                                                                <td valign="top" name="recForTask" class="value">
37                                                                        <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.task?.id}">${taskRecurringScheduleInstance?.task?.encodeAsHTML()}</g:link>
38                                                                </td>
39                                                        </tr>
40                           
41                            <tr class="prop">
42                                <td valign="top" class="name">
43                                    <label for="startDate">Start Date:</label>
44                                </td>
45                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}">
46                                    <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}"  precision="day"></g:datePicker>
47                                </td>
48                            </tr>   
49                     
50                            <tr class="prop">
51                                <td valign="top" class="name">
52                                    <label for="recurEvery">Recur Every:</label>
53                                </td>
54                                <td valign="top" class="value" >
55                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}"
56                                                                                id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" />
57                                    <g:select optionKey="id" from="${Period.list()}" name="period.id" value="${taskRecurringScheduleInstance?.period?.id}" ></g:select>
58                                </td>
59                            </tr>
60                       
61                            <tr class="prop">
62                                <td valign="top" class="name">
63                                    <label for="isEnabled">Is Enabled:</label>
64                                </td>
65                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}">
66                                    <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox>
67                                </td>
68                            </tr>
69                       
70                        </tbody>
71                    </table>
72                </div>
73                <div class="buttons">
74                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
75                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
76                </div>
77            </g:form>
78        </div>
79    </body>
80</html>
Note: See TracBrowser for help on using the repository browser.