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 AssetSubItem</title> |
---|
8 | <nav:resources override="true"/> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div class="nav"> |
---|
12 | <nav:renderSubItems group="navAlt"/> |
---|
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 Sub Item</label> |
---|
23 | </td> |
---|
24 | <td valign="top" class="value"> |
---|
25 | </td> |
---|
26 | </tr> |
---|
27 | |
---|
28 | |
---|
29 | <tr class="prop"> |
---|
30 | <td valign="top" class="groupName">Id:</td> |
---|
31 | |
---|
32 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'id')}</td> |
---|
33 | |
---|
34 | </tr> |
---|
35 | |
---|
36 | <tr class="prop"> |
---|
37 | <td valign="top" class="groupName">Name:</td> |
---|
38 | |
---|
39 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'name')}</td> |
---|
40 | |
---|
41 | </tr> |
---|
42 | |
---|
43 | <tr class="prop"> |
---|
44 | <td valign="top" class="groupName">Description:</td> |
---|
45 | |
---|
46 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'description')}</td> |
---|
47 | |
---|
48 | </tr> |
---|
49 | |
---|
50 | <tr class="prop"> |
---|
51 | <td valign="top" class="groupName">Comment:</td> |
---|
52 | |
---|
53 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'comment')}</td> |
---|
54 | |
---|
55 | </tr> |
---|
56 | |
---|
57 | <tr class="prop"> |
---|
58 | <td valign="top" class="groupName">Is Active:</td> |
---|
59 | |
---|
60 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'isActive')}</td> |
---|
61 | |
---|
62 | </tr> |
---|
63 | |
---|
64 | <tr class="prop"> |
---|
65 | <td valign="top" class="groupHeader"> |
---|
66 | <label for="name">Extended Attributes</label> |
---|
67 | </td> |
---|
68 | <td valign="top" class="value"> |
---|
69 | </td> |
---|
70 | </tr> |
---|
71 | |
---|
72 | <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes}"> |
---|
73 | <tr class="prop"> |
---|
74 | <td valign="top" class="name"></td> |
---|
75 | <td valign="top" style="text-align:left;" class="value"> |
---|
76 | <g:link controller="assetSubItemExtendedAttributeDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link> |
---|
77 | </td> |
---|
78 | </tr> |
---|
79 | </g:each> |
---|
80 | |
---|
81 | <tr class="prop"> |
---|
82 | <td valign="top" class="groupHeader"> |
---|
83 | <label for="name">Asset Tree</label> |
---|
84 | </td> |
---|
85 | <td valign="top" class="value"> |
---|
86 | </td> |
---|
87 | </tr> |
---|
88 | |
---|
89 | <tr class="prop"> |
---|
90 | <td valign="top" class="groupName">Assets:</td> |
---|
91 | |
---|
92 | <td valign="top" style="text-align:left;" class="value"> |
---|
93 | <g:if test="${assetSubItemInstance.parentItem}" > |
---|
94 | N/A (Assigned to parent item) |
---|
95 | </g:if> |
---|
96 | <g:else> |
---|
97 | <g:if test="${assetSubItemInstance.assets}"> |
---|
98 | <ul> |
---|
99 | <g:each var="a" in="${ assetSubItemInstance.assets.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
100 | <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
101 | </g:each> |
---|
102 | </ul> |
---|
103 | </g:if> |
---|
104 | <g:else> |
---|
105 | May be assigned via asset edit view. |
---|
106 | </g:else> |
---|
107 | </g:else> |
---|
108 | </td> |
---|
109 | |
---|
110 | </tr> |
---|
111 | |
---|
112 | <tr class="prop"> |
---|
113 | <td valign="top" class="groupName">Parent Item:</td> |
---|
114 | |
---|
115 | <td valign="top" class="value"> |
---|
116 | <g:if test="${assetSubItemInstance.assets}"> |
---|
117 | Level 1 sub item (Assigned directly to assets) |
---|
118 | </g:if> |
---|
119 | <g:else> |
---|
120 | <g:link controller="assetSubItemDetailed" action="show" id="${assetSubItemInstance?.parentItem?.id}"> |
---|
121 | ${assetSubItemInstance?.parentItem?.encodeAsHTML()} |
---|
122 | </g:link> |
---|
123 | </g:else> |
---|
124 | </td> |
---|
125 | |
---|
126 | </tr> |
---|
127 | |
---|
128 | <tr class="prop"> |
---|
129 | <td valign="top" class="groupName">Sub Items:</td> |
---|
130 | |
---|
131 | <td valign="top" style="text-align:left;" class="value"> |
---|
132 | <ul> |
---|
133 | <g:each var="s" in="${assetSubItemInstance.subItems}"> |
---|
134 | <li><g:link controller="assetSubItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
135 | </g:each> |
---|
136 | </ul> |
---|
137 | </td> |
---|
138 | |
---|
139 | </tr> |
---|
140 | |
---|
141 | <tr class="prop"> |
---|
142 | <td valign="top" class="groupHeader"> |
---|
143 | <label for="name">Maintenance Actions</label> |
---|
144 | </td> |
---|
145 | <td valign="top" class="value"> |
---|
146 | </td> |
---|
147 | </tr> |
---|
148 | |
---|
149 | <g:each var="m" in="${assetSubItemInstance.maintenanceActions}"> |
---|
150 | <tr class="prop"> |
---|
151 | <td valign="top" class="name"></td> |
---|
152 | <td valign="top" style="text-align:left;" class="value"> |
---|
153 | <g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link> |
---|
154 | </td> |
---|
155 | </tr> |
---|
156 | </g:each> |
---|
157 | |
---|
158 | </tbody> |
---|
159 | </table> |
---|
160 | </div> |
---|
161 | <div class="buttons"> |
---|
162 | <g:form> |
---|
163 | <input type="hidden" name="id" value="${assetSubItemInstance?.id}" /> |
---|
164 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
165 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
166 | </g:form> |
---|
167 | </div> |
---|
168 | </div> |
---|
169 | </body> |
---|
170 | </html> |
---|