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 | <tr class="prop"> |
---|
23 | <td valign="top" class="name">Id:</td> |
---|
24 | |
---|
25 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'id')}</td> |
---|
26 | |
---|
27 | </tr> |
---|
28 | |
---|
29 | <tr class="prop"> |
---|
30 | <td valign="top" class="name">Asset:</td> |
---|
31 | |
---|
32 | <td valign="top" style="text-align:left;" class="value"> |
---|
33 | <g:render template="/shared/assetTree" /> |
---|
34 | </td> |
---|
35 | |
---|
36 | </tr> |
---|
37 | |
---|
38 | <tr class="prop"> |
---|
39 | <td valign="top" class="name">Description:</td> |
---|
40 | |
---|
41 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> |
---|
42 | |
---|
43 | </tr> |
---|
44 | |
---|
45 | <tr class="prop"> |
---|
46 | <td valign="top" class="name">Comment:</td> |
---|
47 | |
---|
48 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'comment')}</td> |
---|
49 | |
---|
50 | </tr> |
---|
51 | |
---|
52 | <tr class="prop"> |
---|
53 | <td valign="top" class="name">Is Active:</td> |
---|
54 | |
---|
55 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
56 | |
---|
57 | </tr> |
---|
58 | |
---|
59 | <tr class="prop"> |
---|
60 | <td valign="top" class="name">Section:</td> |
---|
61 | |
---|
62 | <td valign="top" class="value"><g:link controller="sectionDetailed" action="show" id="${assetInstance?.section?.id}">${assetInstance?.section?.encodeAsHTML()}</g:link></td> |
---|
63 | |
---|
64 | </tr> |
---|
65 | |
---|
66 | <tr class="prop"> |
---|
67 | <td valign="top" class="name">Asset Extended Attributes:</td> |
---|
68 | |
---|
69 | <td valign="top" style="text-align:left;" class="value"> |
---|
70 | <ul> |
---|
71 | <g:each var="a" in="${assetInstance.assetExtendedAttributes}"> |
---|
72 | <li><g:link controller="assetExtendedAttributeDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
73 | </g:each> |
---|
74 | </ul> |
---|
75 | </td> |
---|
76 | |
---|
77 | </tr> |
---|
78 | |
---|
79 | <tr class="prop"> |
---|
80 | <td valign="top" class="name">Maintenance Actions:</td> |
---|
81 | |
---|
82 | <td valign="top" style="text-align:left;" class="value"> |
---|
83 | <ul> |
---|
84 | <g:each var="m" in="${assetInstance.maintenanceActions}"> |
---|
85 | <li><g:link controller="maintenanceActionDetailed" action="edit" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
86 | </g:each> |
---|
87 | </ul> |
---|
88 | </td> |
---|
89 | |
---|
90 | </tr> |
---|
91 | |
---|
92 | </tbody> |
---|
93 | </table> |
---|
94 | </div> |
---|
95 | <div class="buttons"> |
---|
96 | <g:form> |
---|
97 | <input type="hidden" name="id" value="${assetInstance?.id}" /> |
---|
98 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
99 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
100 | </g:form> |
---|
101 | </div> |
---|
102 | </div> |
---|
103 | </body> |
---|
104 | </html> |
---|