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">Description:</td> |
---|
39 | |
---|
40 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> |
---|
41 | |
---|
42 | </tr> |
---|
43 | |
---|
44 | <tr class="prop"> |
---|
45 | <td valign="top" class="name">Cost Code:</td> |
---|
46 | |
---|
47 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'costCode')}</td> |
---|
48 | |
---|
49 | </tr> |
---|
50 | |
---|
51 | <tr class="prop"> |
---|
52 | <td valign="top" class="name">Asset Type:</td> |
---|
53 | |
---|
54 | <td valign="top" class="value"> |
---|
55 | ${assetInstance?.assetType?.encodeAsHTML()} |
---|
56 | <ul> |
---|
57 | <g:each var="a" in="${assetInstance.assetType.assemblies}"> |
---|
58 | <li> |
---|
59 | ${a?.encodeAsHTML()} |
---|
60 | <ul> |
---|
61 | <g:each var="s" in="${a.subAssemblies}"> |
---|
62 | <li>${s?.encodeAsHTML()}</li> |
---|
63 | </g:each> |
---|
64 | </ul> |
---|
65 | </li> |
---|
66 | </g:each> |
---|
67 | </ul> |
---|
68 | </td> |
---|
69 | |
---|
70 | </tr> |
---|
71 | |
---|
72 | <tr class="prop"> |
---|
73 | <td valign="top" class="name">System Section:</td> |
---|
74 | |
---|
75 | <td valign="top" class="value"><g:link controller="systemSectionDetailed" action="show" id="${assetInstance?.systemSection?.id}">${assetInstance?.systemSection?.encodeAsHTML()}</g:link></td> |
---|
76 | |
---|
77 | </tr> |
---|
78 | |
---|
79 | <tr class="prop"> |
---|
80 | <td valign="top" class="name">Asset Extended Attributes:</td> |
---|
81 | |
---|
82 | <td valign="top" style="text-align:left;" class="value"> |
---|
83 | <ul> |
---|
84 | <g:each var="a" in="${assetInstance.assetExtendedAttributes}"> |
---|
85 | <li><g:link controller="assetExtendedAttributeDetailed" action="show" id="${a.id}">${a?.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">Is Active:</td> |
---|
94 | |
---|
95 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
96 | |
---|
97 | </tr> |
---|
98 | |
---|
99 | <tr class="prop"> |
---|
100 | <td valign="top" class="name">Maintenance Actions:</td> |
---|
101 | |
---|
102 | <td valign="top" style="text-align:left;" class="value"> |
---|
103 | <ul> |
---|
104 | <g:each var="m" in="${assetInstance.maintenanceActions}"> |
---|
105 | <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
106 | </g:each> |
---|
107 | </ul> |
---|
108 | </td> |
---|
109 | |
---|
110 | </tr> |
---|
111 | |
---|
112 | </tbody> |
---|
113 | </table> |
---|
114 | </div> |
---|
115 | <div class="buttons"> |
---|
116 | <g:form> |
---|
117 | <input type="hidden" name="id" value="${assetInstance?.id}" /> |
---|
118 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
119 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
120 | </g:form> |
---|
121 | </div> |
---|
122 | </div> |
---|
123 | </body> |
---|
124 | </html> |
---|