source: trunk/grails-app/views/subAssembly/show.gsp @ 178

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

Resolve ticket #12 again.
Turn query cache on again since this did not resolve the problem.
Implement fix as per http://jira.codehaus.org/browse/GRAILS-5111, add flush:true to save.
Adjust templates to include above and remove home url.
Re-generate all non detailed views and controllers.
Manually add flush:true and remove home url to detailed views and controllers.

File size: 4.4 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>Show SubAssembly</title>
8    </head>
9    <body>
10        <div class="nav">
11            <span class="menuButton"><g:link class="list" action="list">SubAssembly List</g:link></span>
12            <span class="menuButton"><g:link class="create" action="create">New SubAssembly</g:link></span>
13        </div>
14        <div class="body">
15            <h1>Show SubAssembly</h1>
16            <g:if test="${flash.message}">
17            <div class="message">${flash.message}</div>
18            </g:if>
19            <div class="dialog">
20                <table>
21                    <tbody>
22
23                   
24                        <tr class="prop">
25                            <td valign="top" class="name">Id:</td>
26                           
27                            <td valign="top" class="value">${fieldValue(bean:subAssemblyInstance, field:'id')}</td>
28                           
29                        </tr>
30                   
31                        <tr class="prop">
32                            <td valign="top" class="name">Assembly:</td>
33                           
34                            <td valign="top" class="value"><g:link controller="assembly" action="show" id="${subAssemblyInstance?.assembly?.id}">${subAssemblyInstance?.assembly?.encodeAsHTML()}</g:link></td>
35                           
36                        </tr>
37                   
38                        <tr class="prop">
39                            <td valign="top" class="name">Component Items:</td>
40                           
41                            <td  valign="top" style="text-align:left;" class="value">
42                                <ul>
43                                <g:each var="c" in="${subAssemblyInstance.componentItems}">
44                                    <li><g:link controller="componentItem" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></li>
45                                </g:each>
46                                </ul>
47                            </td>
48                           
49                        </tr>
50                   
51                        <tr class="prop">
52                            <td valign="top" class="name">Description:</td>
53                           
54                            <td valign="top" class="value">${fieldValue(bean:subAssemblyInstance, field:'description')}</td>
55                           
56                        </tr>
57                   
58                        <tr class="prop">
59                            <td valign="top" class="name">Is Active:</td>
60                           
61                            <td valign="top" class="value">${fieldValue(bean:subAssemblyInstance, field:'isActive')}</td>
62                           
63                        </tr>
64                   
65                        <tr class="prop">
66                            <td valign="top" class="name">Maintenance Actions:</td>
67                           
68                            <td  valign="top" style="text-align:left;" class="value">
69                                <ul>
70                                <g:each var="m" in="${subAssemblyInstance.maintenanceActions}">
71                                    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
72                                </g:each>
73                                </ul>
74                            </td>
75                           
76                        </tr>
77                   
78                        <tr class="prop">
79                            <td valign="top" class="name">Name:</td>
80                           
81                            <td valign="top" class="value">${fieldValue(bean:subAssemblyInstance, field:'name')}</td>
82                           
83                        </tr>
84                   
85                    </tbody>
86                </table>
87            </div>
88            <div class="buttons">
89                <g:form>
90                    <input type="hidden" name="id" value="${subAssemblyInstance?.id}" />
91                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
92                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
93                </g:form>
94            </div>
95        </div>
96    </body>
97</html>
Note: See TracBrowser for help on using the repository browser.