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

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

Run generate-all on all controllers and views except Person and Authority.
Extensive work on Asset domain and application now compiles and runs well.
Update BootStrap? to suite.

File size: 5.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 AssetType</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">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">Asset Extended Attributes:</td>
47                           
48                            <td  valign="top" style="text-align:left;" class="value">
49                                <ul>
50                                <g:each var="a" in="${assetTypeInstance.assetExtendedAttributes}">
51                                    <li><g:link controller="assetExtendedAttribute" 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">Assets:</td>
60                           
61                            <td  valign="top" style="text-align:left;" class="value">
62                                <ul>
63                                <g:each var="a" in="${assetTypeInstance.assets}">
64                                    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
65                                </g:each>
66                                </ul>
67                            </td>
68                           
69                        </tr>
70                   
71                        <tr class="prop">
72                            <td valign="top" class="name">Description:</td>
73                           
74                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'description')}</td>
75                           
76                        </tr>
77                   
78                        <tr class="prop">
79                            <td valign="top" class="name">Is Active:</td>
80                           
81                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'isActive')}</td>
82                           
83                        </tr>
84                   
85                        <tr class="prop">
86                            <td valign="top" class="name">Maintenance Actions:</td>
87                           
88                            <td  valign="top" style="text-align:left;" class="value">
89                                <ul>
90                                <g:each var="m" in="${assetTypeInstance.maintenanceActions}">
91                                    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
92                                </g:each>
93                                </ul>
94                            </td>
95                           
96                        </tr>
97                   
98                        <tr class="prop">
99                            <td valign="top" class="name">Name:</td>
100                           
101                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'name')}</td>
102                           
103                        </tr>
104                   
105                    </tbody>
106                </table>
107            </div>
108            <div class="buttons">
109                <g:form>
110                    <input type="hidden" name="id" value="${assetTypeInstance?.id}" />
111                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
112                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
113                </g:form>
114            </div>
115        </div>
116    </body>
117</html>
Note: See TracBrowser for help on using the repository browser.