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">Extended Attributes</td> |
---|
66 | <td valign="top" style="text-align:left;" class="value"> |
---|
67 | </td> |
---|
68 | </tr> |
---|
69 | |
---|
70 | <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes.sort { p1, p2 -> p1.extendedAttributeType.name.compareToIgnoreCase(p2.extendedAttributeType.name) }}"> |
---|
71 | <tr class="prop"> |
---|
72 | <td valign="top" class="groupName"> |
---|
73 | ${a.extendedAttributeType.name.encodeAsHTML()}: |
---|
74 | </td> |
---|
75 | |
---|
76 | <td valign="top" style="text-align:left;" class="value"> |
---|
77 | <g:link controller="assetSubItemExtendedAttributeDetailed" action="edit" id="${a.id}"> |
---|
78 | ${a.value.encodeAsHTML()} |
---|
79 | </g:link> |
---|
80 | </td> |
---|
81 | |
---|
82 | </tr> |
---|
83 | </g:each> |
---|
84 | |
---|
85 | <tr class="prop"> |
---|
86 | <td valign="top" class="groupHeader"> |
---|
87 | <label for="name">Asset Tree</label> |
---|
88 | </td> |
---|
89 | <td valign="top" class="value"> |
---|
90 | </td> |
---|
91 | </tr> |
---|
92 | |
---|
93 | <tr class="prop"> |
---|
94 | <td valign="top" class="groupName">Assets:</td> |
---|
95 | |
---|
96 | <td valign="top" style="text-align:left;" class="value"> |
---|
97 | <g:if test="${assetSubItemInstance.parentItem}" > |
---|
98 | N/A (Assigned to parent item) |
---|
99 | </g:if> |
---|
100 | <g:else> |
---|
101 | <g:if test="${assetSubItemInstance.assets}"> |
---|
102 | <ul> |
---|
103 | <g:each var="a" in="${ assetSubItemInstance.assets.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
104 | <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
105 | </g:each> |
---|
106 | </ul> |
---|
107 | </g:if> |
---|
108 | <g:else> |
---|
109 | May be assigned via asset edit view. |
---|
110 | </g:else> |
---|
111 | </g:else> |
---|
112 | </td> |
---|
113 | |
---|
114 | </tr> |
---|
115 | |
---|
116 | <tr class="prop"> |
---|
117 | <td valign="top" class="groupName">Parent Item:</td> |
---|
118 | |
---|
119 | <td valign="top" class="value"> |
---|
120 | <g:if test="${assetSubItemInstance.assets}"> |
---|
121 | Level 1 sub item (Assigned directly to assets) |
---|
122 | </g:if> |
---|
123 | <g:else> |
---|
124 | <g:link controller="assetSubItemDetailed" action="show" id="${assetSubItemInstance?.parentItem?.id}"> |
---|
125 | ${assetSubItemInstance?.parentItem?.encodeAsHTML()} |
---|
126 | </g:link> |
---|
127 | </g:else> |
---|
128 | </td> |
---|
129 | |
---|
130 | </tr> |
---|
131 | |
---|
132 | <tr class="prop"> |
---|
133 | <td valign="top" class="groupName">Sub Items:</td> |
---|
134 | |
---|
135 | <td valign="top" style="text-align:left;" class="value"> |
---|
136 | <ul> |
---|
137 | <g:each var="s" in="${assetSubItemInstance.subItems}"> |
---|
138 | <li><g:link controller="assetSubItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
139 | </g:each> |
---|
140 | </ul> |
---|
141 | </td> |
---|
142 | |
---|
143 | </tr> |
---|
144 | |
---|
145 | <tr class="prop"> |
---|
146 | <td valign="top" class="groupHeader"> |
---|
147 | <label for="name">Maintenance Actions</label> |
---|
148 | </td> |
---|
149 | <td valign="top" class="value"> |
---|
150 | </td> |
---|
151 | </tr> |
---|
152 | |
---|
153 | <g:each var="m" in="${assetSubItemInstance.maintenanceActions}"> |
---|
154 | <tr class="prop"> |
---|
155 | <td valign="top" class="name"></td> |
---|
156 | <td valign="top" style="text-align:left;" class="value"> |
---|
157 | <g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link> |
---|
158 | </td> |
---|
159 | </tr> |
---|
160 | </g:each> |
---|
161 | |
---|
162 | </tbody> |
---|
163 | </table> |
---|
164 | </div> |
---|
165 | <div class="buttons"> |
---|
166 | <g:form> |
---|
167 | <input type="hidden" name="id" value="${assetSubItemInstance?.id}" /> |
---|
168 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
169 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
170 | </g:form> |
---|
171 | </div> |
---|
172 | </div> |
---|
173 | </body> |
---|
174 | </html> |
---|