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