source: branches/features/purchaseOrders/grails-app/views/taskDetailed/_showRecurrenceTab.gsp @ 923

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

Refactor task show view to use templates, ensure newlines at end of files.

File size: 3.3 KB
Line 
1
2    <g:if test="${!taskRecurringScheduleExits}">
3        <br />
4        No Recurring Schedule.
5        <br />
6        <br />
7        <g:form controller="taskRecurringScheduleDetailed" >
8            <g:hiddenField name="task.id" value="${taskInstance.id}" />
9
10            <div class="buttons">
11                <span class="button">
12                    <g:actionSubmit value="Add" action="create" class="add" />
13                </span>
14            </div>
15
16        </g:form>
17
18    </g:if>
19    <g:else>
20
21    <div class="dialog">
22            <table>
23                <tbody>
24                    <tr class="prop">
25                        <td valign="top" class="name">Recurring Schedule:</td>
26
27                        <td valign="top" class="value">${taskRecurringScheduleInstance.encodeAsHTML()}</td>
28                    </tr>
29
30                    <tr class="prop">
31                        <td valign="top" class="name">Enabled:</td>
32
33                        <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td>
34                    </tr>
35
36                    <tr class="prop">
37                        <td valign="top" class="name">Next Generation Date:</td>
38
39                        <td valign="top" class="value">
40                            <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/>
41                        </td>
42                    </tr>
43
44                    <tr class="prop">
45                        <td valign="top" class="name">Generate Ahead:</td>
46
47                        <td valign="top" class="value">
48                            ${taskRecurringScheduleInstance?.generateAhead} ${Period.get(1).encodeAsHTML()}
49                        </td>
50                    </tr>
51
52                    <tr class="prop">
53                        <td valign="top" class="name">Next Target Start Date:</td>
54
55                        <td valign="top" class="value">
56                            <g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/>
57                        </td>
58                    </tr>
59
60                    <tr class="prop">
61                        <td valign="top" class="name">Task Duration:</td>
62
63                        <td valign="top" class="value">
64                            ${taskRecurringScheduleInstance?.taskDuration} ${taskRecurringScheduleInstance?.taskDurationPeriod}
65                        </td>
66                    </tr>
67
68                    <tr class="prop">
69                        <td valign="top" class="name">Next Target Completion Date:</td>
70
71                        <td valign="top" class="value">
72                            <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/>
73                        </td>
74                    </tr>
75
76                </tbody>
77            </table>
78        </div>
79        <div class="buttons">
80            <g:form controller="taskRecurringScheduleDetailed">
81                <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" />
82                <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
83                <span class="button"><g:actionSubmit class="go" value="Show" /></span>
84            </g:form>
85        </div>
86
87    </g:else>
Note: See TracBrowser for help on using the repository browser.