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

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

Detail controller and views for Asset, AssetExtendedAttribute?, PlannedMaintenance?, MaintenanceAction?, RecurringSchedule?, SystemSection?.
Some minor work on Task controller and views.
Change PlannedMaintenance? relationship, adjust ERD, Bootstrap and Domain classes to suite.

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