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