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