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

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

Format to 4 spaces, no tabs.

File size: 5.5 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" />
[157]7        <title>Create TaskRecurringSchedule</title>
8        <resource:dateChooser />
[122]9    </head>
10    <body>
11        <div class="nav">
[157]12            <h1>Create 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 action="save" method="post" >
[134]24                <g:hiddenField name="task.id" value="${taskRecurringScheduleInstance.task.id}" />
[122]25                <div class="dialog">
26                    <table>
27                        <tbody>
[134]28
[122]29                            <tr class="prop">
30                                <td valign="top" class="name">
[134]31                                    <label for="recForTask">Recurring Schedule for Task:</label>
[122]32                                </td>
[211]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>
[135]36                            </tr>
37                           
[134]38                            <tr class="prop">
39                                <td valign="top" class="name">
[199]40                                    <label for="nextTargetStartDate">Next Target Start Date:</label>
[134]41                                </td>
[199]42                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextTargetStartDate','errors')}">
43                                    <richui:dateChooser name="nextTargetStartDate" format="dd-MM-yyyy" value="${taskRecurringScheduleInstance?.nextTargetStartDate}" />
[134]44                                </td>
[135]45                            </tr>   
46                     
[122]47                            <tr class="prop">
48                                <td valign="top" class="name">
[135]49                                    <label for="recurEvery">Recur Every:</label>
[122]50                                </td>
[135]51                                <td valign="top" class="value" >
52                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}"
[211]53                                        id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" />
[137]54                                    <g:select optionKey="id" from="${Period.list()}" name="recurPeriod.id" value="${taskRecurringScheduleInstance?.recurPeriod?.id}" ></g:select>
[122]55                                </td>
[137]56                            </tr>   
57                     
58                            <tr class="prop">
59                                <td valign="top" class="name">
60                                    <label for="recurEvery">Task Duration:</label>
61                                </td>
62                                <td valign="top" class="value" >
63                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'taskDuration','errors')}"
64                                        id="taskDuration" name="taskDuration" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'taskDuration')}" />
65                                    <g:select optionKey="id" from="${Period.list()}" name="taskDurationPeriod.id" value="${taskRecurringScheduleInstance?.taskDurationPeriod?.id}" ></g:select>
66                                </td>
67                            </tr>   
68                     
69                            <tr class="prop">
70                                <td valign="top" class="name">
71                                    <label for="recurEvery">Generate Ahead:</label>
72                                </td>
73                                <td valign="top" class="value" >
74                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAhead','errors')}"
75                                        id="generateAhead" name="generateAhead" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'generateAhead')}" />
[199]76                                        ${Period.get(1).encodeAsHTML()}
[137]77                                </td>
[135]78                            </tr>
[122]79                       
80                            <tr class="prop">
81                                <td valign="top" class="name">
[199]82                                    <label for="enabled">Enabled:</label>
[122]83                                </td>
[199]84                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}">
85                                    <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox>
[122]86                                </td>
[134]87                            </tr>
88                       
[122]89                        </tbody>
90                    </table>
91                </div>
92                <div class="buttons">
93                    <span class="button"><input class="save" type="submit" value="Create" /></span>
94                </div>
95            </g:form>
96        </div>
97    </body>
98</html>
Note: See TracBrowser for help on using the repository browser.