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 Asset</title> |
---|
8 | <nav:resources override="true"/> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div class="nav"> |
---|
12 | <nav:renderSubItems group="nav"/> |
---|
13 | </div> |
---|
14 | <div class="body"> |
---|
15 | <g:if test="${flash.message}"> |
---|
16 | <div class="message">${flash.message}</div> |
---|
17 | </g:if> |
---|
18 | <div class="dialog"> |
---|
19 | <table> |
---|
20 | <tbody> |
---|
21 | |
---|
22 | |
---|
23 | <tr class="prop"> |
---|
24 | <td valign="top" class="name">Id:</td> |
---|
25 | |
---|
26 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'id')}</td> |
---|
27 | |
---|
28 | </tr> |
---|
29 | |
---|
30 | <tr class="prop"> |
---|
31 | <td valign="top" class="name">Name:</td> |
---|
32 | |
---|
33 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'name')}</td> |
---|
34 | |
---|
35 | </tr> |
---|
36 | |
---|
37 | <tr class="prop"> |
---|
38 | <td valign="top" class="name">Asset Type:</td> |
---|
39 | |
---|
40 | <td valign="top" class="value"> |
---|
41 | ${assetInstance?.assetType?.encodeAsHTML()} |
---|
42 | <ul> |
---|
43 | <g:each var="a" in="${assetInstance.assetType.assemblies}"> |
---|
44 | <li> |
---|
45 | ${a?.encodeAsHTML()} |
---|
46 | <ul> |
---|
47 | <g:each var="s" in="${a.subAssemblies}"> |
---|
48 | <li>${s?.encodeAsHTML()}</li> |
---|
49 | </g:each> |
---|
50 | </ul> |
---|
51 | </li> |
---|
52 | </g:each> |
---|
53 | </ul> |
---|
54 | </td> |
---|
55 | |
---|
56 | </tr> |
---|
57 | |
---|
58 | <tr class="prop"> |
---|
59 | <td valign="top" class="name">System Section:</td> |
---|
60 | |
---|
61 | <td valign="top" class="value"><g:link controller="systemSectionDetailed" action="show" id="${assetInstance?.systemSection?.id}">${assetInstance?.systemSection?.encodeAsHTML()}</g:link></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:assetInstance, field:'description')}</td> |
---|
69 | |
---|
70 | </tr> |
---|
71 | |
---|
72 | <tr class="prop"> |
---|
73 | <td valign="top" class="name">Asset Extended Attributes:</td> |
---|
74 | |
---|
75 | <td valign="top" style="text-align:left;" class="value"> |
---|
76 | <ul> |
---|
77 | <g:each var="a" in="${assetInstance.assetExtendedAttributes}"> |
---|
78 | <li><g:link controller="assetExtendedAttributeDetailed" action="show" id="${a.id}">${a?.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">Is Active:</td> |
---|
87 | |
---|
88 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
89 | |
---|
90 | </tr> |
---|
91 | |
---|
92 | <tr class="prop"> |
---|
93 | <td valign="top" class="name">Maintenance Actions:</td> |
---|
94 | |
---|
95 | <td valign="top" style="text-align:left;" class="value"> |
---|
96 | <ul> |
---|
97 | <g:each var="m" in="${assetInstance.maintenanceActions}"> |
---|
98 | <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
99 | </g:each> |
---|
100 | </ul> |
---|
101 | </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="${assetInstance?.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> |
---|