source: trunk/grails-app/views/assetType/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.9 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 AssetType</title>
8    </head>
9    <body>
10        <div class="nav">
11            <span class="menuButton"><g:link class="list" action="list">AssetType List</g:link></span>
12            <span class="menuButton"><g:link class="create" action="create">New AssetType</g:link></span>
13        </div>
14        <div class="body">
15            <h1>Show AssetType</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:assetTypeInstance, field:'id')}</td>
28                           
29                        </tr>
30                   
31                        <tr class="prop">
32                            <td valign="top" class="name">Assemblies:</td>
33                           
34                            <td  valign="top" style="text-align:left;" class="value">
35                                <ul>
36                                <g:each var="a" in="${assetTypeInstance.assemblies}">
37                                    <li><g:link controller="assembly" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
38                                </g:each>
39                                </ul>
40                            </td>
41                           
42                        </tr>
43                   
44                        <tr class="prop">
45                            <td valign="top" class="name">Assets:</td>
46                           
47                            <td  valign="top" style="text-align:left;" class="value">
48                                <ul>
49                                <g:each var="a" in="${assetTypeInstance.assets}">
50                                    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
51                                </g:each>
52                                </ul>
53                            </td>
54                           
55                        </tr>
56                   
57                        <tr class="prop">
58                            <td valign="top" class="name">Cost Code:</td>
59                           
60                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'costCode')}</td>
61                           
62                        </tr>
63                   
64                        <tr class="prop">
65                            <td valign="top" class="name">Description:</td>
66                           
67                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'description')}</td>
68                           
69                        </tr>
70                   
71                        <tr class="prop">
72                            <td valign="top" class="name">Is Active:</td>
73                           
74                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'isActive')}</td>
75                           
76                        </tr>
77                   
78                        <tr class="prop">
79                            <td valign="top" class="name">Maintenance Actions:</td>
80                           
81                            <td  valign="top" style="text-align:left;" class="value">
82                                <ul>
83                                <g:each var="m" in="${assetTypeInstance.maintenanceActions}">
84                                    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
85                                </g:each>
86                                </ul>
87                            </td>
88                           
89                        </tr>
90                   
91                        <tr class="prop">
92                            <td valign="top" class="name">Name:</td>
93                           
94                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'name')}</td>
95                           
96                        </tr>
97                   
98                    </tbody>
99                </table>
100            </div>
101            <div class="buttons">
102                <g:form>
103                    <input type="hidden" name="id" value="${assetTypeInstance?.id}" />
104                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
105                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
106                </g:form>
107            </div>
108        </div>
109    </body>
110</html>
Note: See TracBrowser for help on using the repository browser.