source: trunk/grails-app/views/assetType/show.gsp @ 160

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

Add costCode attribute to AssetType? and regen controller and views.

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