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:render template="/shared/messages" /> |
---|
16 | <div class="dialog"> |
---|
17 | <table> |
---|
18 | <tbody> |
---|
19 | |
---|
20 | <tr class="prop"> |
---|
21 | <td valign="top" class="groupHeader"> |
---|
22 | <label for="name">Asset</label> |
---|
23 | </td> |
---|
24 | <td valign="top" class="value"> |
---|
25 | </td> |
---|
26 | </tr> |
---|
27 | |
---|
28 | <tr class="prop"> |
---|
29 | <td valign="top" class="groupName">Id:</td> |
---|
30 | |
---|
31 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'id')}</td> |
---|
32 | |
---|
33 | </tr> |
---|
34 | |
---|
35 | <tr class="prop"> |
---|
36 | <td valign="top" class="groupName">Name:</td> |
---|
37 | |
---|
38 | <td valign="top" style="text-align:left;" class="value"> |
---|
39 | ${assetInstance.name.encodeAsHTML()} |
---|
40 | </td> |
---|
41 | |
---|
42 | </tr> |
---|
43 | |
---|
44 | <tr class="prop"> |
---|
45 | <td valign="top" class="groupName">Description:</td> |
---|
46 | |
---|
47 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> |
---|
48 | |
---|
49 | </tr> |
---|
50 | |
---|
51 | <tr class="prop"> |
---|
52 | <td valign="top" class="groupName">Comment:</td> |
---|
53 | |
---|
54 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'comment')}</td> |
---|
55 | |
---|
56 | </tr> |
---|
57 | |
---|
58 | <tr class="prop"> |
---|
59 | <td valign="top" class="groupName">Is Active:</td> |
---|
60 | |
---|
61 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
62 | |
---|
63 | </tr> |
---|
64 | |
---|
65 | <tr class="prop"> |
---|
66 | <td valign="top" class="groupName">Section:</td> |
---|
67 | |
---|
68 | <td valign="top" class="value"><g:link controller="sectionDetailed" action="show" id="${assetInstance?.section?.id}">${assetInstance?.section?.encodeAsHTML()}</g:link></td> |
---|
69 | |
---|
70 | </tr> |
---|
71 | |
---|
72 | <tr class="prop"> |
---|
73 | <td valign="top" class="groupHeader">Extended Attributes</td> |
---|
74 | |
---|
75 | <td valign="top" style="text-align:left;" class="value"> |
---|
76 | </td> |
---|
77 | |
---|
78 | </tr> |
---|
79 | |
---|
80 | <g:each var="a" in="${assetInstance.assetExtendedAttributes.sort { p1, p2 -> p1.extendedAttributeType.name.compareToIgnoreCase(p2.extendedAttributeType.name) }}"> |
---|
81 | <tr class="prop"> |
---|
82 | <td valign="top" class="groupName"> |
---|
83 | ${a.extendedAttributeType.name.encodeAsHTML()}: |
---|
84 | </td> |
---|
85 | |
---|
86 | <td valign="top" style="text-align:left;" class="value"> |
---|
87 | <g:link controller="assetExtendedAttributeDetailed" action="edit" id="${a.id}"> |
---|
88 | ${a.value.encodeAsHTML()} |
---|
89 | </g:link> |
---|
90 | </td> |
---|
91 | |
---|
92 | </tr> |
---|
93 | </g:each> |
---|
94 | |
---|
95 | <tr class="prop"> |
---|
96 | <td valign="top" class="groupHeader"> |
---|
97 | <label for="assetSubItems">Asset Tree</label> |
---|
98 | </td> |
---|
99 | <td valign="top" class="value"> |
---|
100 | </td> |
---|
101 | </tr> |
---|
102 | |
---|
103 | <tr class="prop"> |
---|
104 | <td valign="top" class="name"> |
---|
105 | </td> |
---|
106 | <td valign="top" class="value"> |
---|
107 | <g:render template="/shared/assetTree" /> |
---|
108 | </td> |
---|
109 | </tr> |
---|
110 | |
---|
111 | <tr class="prop"> |
---|
112 | <td valign="top" class="groupHeader">Maintenance Actions</td> |
---|
113 | |
---|
114 | <td valign="top" style="text-align:left;" class="value"> |
---|
115 | </td> |
---|
116 | |
---|
117 | </tr> |
---|
118 | |
---|
119 | |
---|
120 | <g:each var="m" in="${assetInstance.maintenanceActions}"> |
---|
121 | <tr class="prop"> |
---|
122 | <td valign="top" class="name"></td> |
---|
123 | |
---|
124 | <td valign="top" style="text-align:left;" class="value"> |
---|
125 | <g:link controller="maintenanceActionDetailed" action="show" id="${m.id}"> |
---|
126 | ${m?.encodeAsHTML()} |
---|
127 | </g:link> |
---|
128 | </td> |
---|
129 | |
---|
130 | </tr> |
---|
131 | </g:each> |
---|
132 | |
---|
133 | </tbody> |
---|
134 | </table> |
---|
135 | </div> |
---|
136 | <div class="buttons"> |
---|
137 | <g:form> |
---|
138 | <input type="hidden" name="id" value="${assetInstance?.id}" /> |
---|
139 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
140 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
141 | </g:form> |
---|
142 | </div> |
---|
143 | </div> |
---|
144 | </body> |
---|
145 | </html> |
---|