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

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

Format to 4 spaces, no tabs.

File size: 5.8 KB
RevLine 
[122]1
2
3<html>
4    <head>
5        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6        <meta name="layout" content="main" />
[134]7        <title>Edit TaskRecurringSchedule</title>
[157]8        <resource:dateChooser />
[122]9    </head>
10    <body>
11        <div class="nav">
[157]12            <h1>Edit Recurring Schedule</h1>
[122]13        </div>
14        <div class="body">
15            <g:if test="${flash.message}">
16            <div class="message">${flash.message}</div>
17            </g:if>
[134]18            <g:hasErrors bean="${taskRecurringScheduleInstance}">
[122]19            <div class="errors">
[134]20                <g:renderErrors bean="${taskRecurringScheduleInstance}" as="list" />
[122]21            </div>
22            </g:hasErrors>
23            <g:form method="post" >
[134]24                <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" />
25                <input type="hidden" name="version" value="${taskRecurringScheduleInstance?.version}" />
[122]26                <div class="dialog">
27                    <table>
28                        <tbody>
[135]29
[212]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>
[135]38                           
[122]39                            <tr class="prop">
40                                <td valign="top" class="name">
[199]41                                    <label for="nextTargetStartDate">Next Target Start Date:</label>
[122]42                                </td>
[199]43                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextTargetStartDate','errors')}">
44                                    <richui:dateChooser name="nextTargetStartDate" format="dd-MM-yyyy" value="${taskRecurringScheduleInstance?.nextTargetStartDate}" />
[122]45                                </td>
[135]46                            </tr>   
47                     
[122]48                            <tr class="prop">
49                                <td valign="top" class="name">
[135]50                                    <label for="recurEvery">Recur Every:</label>
[122]51                                </td>
[135]52                                <td valign="top" class="value" >
53                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}"
[212]54                                        id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" />
[137]55                                    <g:select optionKey="id" from="${Period.list()}" name="recurPeriod.id" value="${taskRecurringScheduleInstance?.recurPeriod?.id}" ></g:select>
[122]56                                </td>
[137]57                            </tr>   
58                     
59                            <tr class="prop">
60                                <td valign="top" class="name">
61                                    <label for="recurEvery">Task Duration:</label>
62                                </td>
63                                <td valign="top" class="value" >
64                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'taskDuration','errors')}"
65                                        id="taskDuration" name="taskDuration" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'taskDuration')}" />
66                                    <g:select optionKey="id" from="${Period.list()}" name="taskDurationPeriod.id" value="${taskRecurringScheduleInstance?.taskDurationPeriod?.id}" ></g:select>
67                                </td>
68                            </tr>       
69                     
70                            <tr class="prop">
71                                <td valign="top" class="name">
72                                    <label for="recurEvery">Generate Ahead:</label>
73                                </td>
74                                <td valign="top" class="value" >
75                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAhead','errors')}"
76                                        id="generateAhead" name="generateAhead" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'generateAhead')}" />
[199]77                                        ${Period.get(1).encodeAsHTML()}
[137]78                                </td>
79                            </tr>
[122]80                       
81                            <tr class="prop">
82                                <td valign="top" class="name">
[199]83                                    <label for="enabled">Enabled:</label>
[134]84                                </td>
[199]85                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}">
86                                    <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox>
[134]87                                </td>
[135]88                            </tr>
[134]89                       
[122]90                        </tbody>
91                    </table>
92                </div>
93                <div class="buttons">
94                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
[137]95<!--                     <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -->
[122]96                </div>
97            </g:form>
98        </div>
99    </body>
100</html>
Note: See TracBrowser for help on using the repository browser.