source: trunk/grails-app/views/systemSectionDetailed/edit.gsp @ 151

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

Replace all deprecated "createLinkTo" links with "resource".

File size: 5.7 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 SystemSection</title>
8    </head>
9    <body>
10        <div class="nav">
11            <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span>
12            <span class="menuButton"><g:link class="list" action="list">SystemSection List</g:link></span>
13            <span class="menuButton"><g:link class="create" action="create">New SystemSection</g:link></span>
14        </div>
15        <div class="body">
16            <h1>Edit SystemSection</h1>
17            <g:if test="${flash.message}">
18            <div class="message">${flash.message}</div>
19            </g:if>
20            <g:hasErrors bean="${systemSectionInstance}">
21            <div class="errors">
22                <g:renderErrors bean="${systemSectionInstance}" as="list" />
23            </div>
24            </g:hasErrors>
25            <g:form method="post" >
26                <input type="hidden" name="id" value="${systemSectionInstance?.id}" />
27                <input type="hidden" name="version" value="${systemSectionInstance?.version}" />
28                <div class="dialog">
29                    <table>
30                        <tbody>
31                       
32                            <tr class="prop">
33                                <td valign="top" class="name">
34                                    <label for="assets">Assets:</label>
35                                </td>
36                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'assets','errors')}">
37                                   
38<ul>
39<g:each var="a" in="${systemSectionInstance?.assets?}">
40    <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
41</g:each>
42</ul>
43<g:link controller="assetDetailed" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link>
44
45                                </td>
46                            </tr>
47                       
48                            <tr class="prop">
49                                <td valign="top" class="name">
50                                    <label for="description">Description:</label>
51                                </td>
52                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}">
53                                    <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/>
54                                </td>
55                            </tr>
56                       
57                            <tr class="prop">
58                                <td valign="top" class="name">
59                                    <label for="isActive">Is Active:</label>
60                                </td>
61                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}">
62                                    <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox>
63                                </td>
64                            </tr>
65                       
66                            <tr class="prop">
67                                <td valign="top" class="name">
68                                    <label for="maintenanceActions">Maintenance Actions:</label>
69                                </td>
70                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'maintenanceActions','errors')}">
71                                   
72<ul>
73<g:each var="m" in="${systemSectionInstance?.maintenanceActions?}">
74    <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
75</g:each>
76</ul>
77<g:link controller="maintenanceActionDetailed" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link>
78
79                                </td>
80                            </tr>
81                       
82                            <tr class="prop">
83                                <td valign="top" class="name">
84                                    <label for="name">Name:</label>
85                                </td>
86                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}">
87                                    <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/>
88                                </td>
89                            </tr>
90                       
91                            <tr class="prop">
92                                <td valign="top" class="name">
93                                    <label for="site">Site:</label>
94                                </td>
95                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}">
96                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select>
97                                </td>
98                            </tr>
99                       
100                        </tbody>
101                    </table>
102                </div>
103                <div class="buttons">
104                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
105                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
106                </div>
107            </g:form>
108        </div>
109    </body>
110</html>
Note: See TracBrowser for help on using the repository browser.