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