source: trunk/grails-app/views/period/edit.gsp @ 134

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

Add icons from famfamfam silk icons, add acknowledgement page to suite.
Adjust AssignedPerson? controller so that a task.id is required to create.
Move Add AssignedPerson? link up to TaskDetailed? show page.
Further improvements to taskDetailed show tabs.
Adjust TaskProcedureDetailed? controller to allow linking a Procedure to a task during creation.
Adjust TaskRecurringSchedule? to a one-to-one cascading relationship.
Modify CSS class duration to time and added icons.
Regenerate some pages.

File size: 3.6 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 Period</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">Period List</g:link></span>
13            <span class="menuButton"><g:link class="create" action="create">New Period</g:link></span>
14        </div>
15        <div class="body">
16            <h1>Edit Period</h1>
17            <g:if test="${flash.message}">
18            <div class="message">${flash.message}</div>
19            </g:if>
20            <g:hasErrors bean="${periodInstance}">
21            <div class="errors">
22                <g:renderErrors bean="${periodInstance}" as="list" />
23            </div>
24            </g:hasErrors>
25            <g:form method="post" >
26                <input type="hidden" name="id" value="${periodInstance?.id}" />
27                <input type="hidden" name="version" value="${periodInstance?.version}" />
28                <div class="dialog">
29                    <table>
30                        <tbody>
31                       
32                            <tr class="prop">
33                                <td valign="top" class="name">
34                                    <label for="isActive">Is Active:</label>
35                                </td>
36                                <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'isActive','errors')}">
37                                    <g:checkBox name="isActive" value="${periodInstance?.isActive}" ></g:checkBox>
38                                </td>
39                            </tr>
40                       
41                            <tr class="prop">
42                                <td valign="top" class="name">
43                                    <label for="period">Period:</label>
44                                </td>
45                                <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'period','errors')}">
46                                    <input type="text" id="period" name="period" value="${fieldValue(bean:periodInstance,field:'period')}"/>
47                                </td>
48                            </tr>
49                       
50                            <tr class="prop">
51                                <td valign="top" class="name">
52                                    <label for="taskRecurringSchedules">Task Recurring Schedules:</label>
53                                </td>
54                                <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'taskRecurringSchedules','errors')}">
55                                   
56<ul>
57<g:each var="t" in="${periodInstance?.taskRecurringSchedules?}">
58    <li><g:link controller="taskRecurringSchedule" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li>
59</g:each>
60</ul>
61<g:link controller="taskRecurringSchedule" params="['period.id':periodInstance?.id]" action="create">Add TaskRecurringSchedule</g:link>
62
63                                </td>
64                            </tr>
65                       
66                        </tbody>
67                    </table>
68                </div>
69                <div class="buttons">
70                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
71                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
72                </div>
73            </g:form>
74        </div>
75    </body>
76</html>
Note: See TracBrowser for help on using the repository browser.