[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"> |
---|
[349] | 15 | <g:render template="/shared/messages" /> |
---|
[118] | 16 | <div class="dialog"> |
---|
| 17 | <table> |
---|
| 18 | <tbody> |
---|
[278] | 19 | |
---|
[118] | 20 | <tr class="prop"> |
---|
[655] | 21 | <td valign="top" class="groupHeader"> |
---|
| 22 | <label for="name">Asset</label> |
---|
| 23 | </td> |
---|
| 24 | <td valign="top" class="value"> |
---|
| 25 | </td> |
---|
| 26 | </tr> |
---|
[278] | 27 | |
---|
[655] | 28 | <tr class="prop"> |
---|
| 29 | <td valign="top" class="groupName">Id:</td> |
---|
| 30 | |
---|
[118] | 31 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'id')}</td> |
---|
[278] | 32 | |
---|
[118] | 33 | </tr> |
---|
[278] | 34 | |
---|
[118] | 35 | <tr class="prop"> |
---|
[655] | 36 | <td valign="top" class="groupName">Name:</td> |
---|
[271] | 37 | |
---|
| 38 | <td valign="top" style="text-align:left;" class="value"> |
---|
[655] | 39 | ${assetInstance.name.encodeAsHTML()} |
---|
[271] | 40 | </td> |
---|
| 41 | |
---|
[118] | 42 | </tr> |
---|
[278] | 43 | |
---|
| 44 | <tr class="prop"> |
---|
[655] | 45 | <td valign="top" class="groupName">Description:</td> |
---|
[278] | 46 | |
---|
| 47 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> |
---|
| 48 | |
---|
| 49 | </tr> |
---|
[329] | 50 | |
---|
| 51 | <tr class="prop"> |
---|
[655] | 52 | <td valign="top" class="groupName">Comment:</td> |
---|
[329] | 53 | |
---|
| 54 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'comment')}</td> |
---|
| 55 | |
---|
| 56 | </tr> |
---|
[278] | 57 | |
---|
| 58 | <tr class="prop"> |
---|
[655] | 59 | <td valign="top" class="groupName">Is Active:</td> |
---|
[278] | 60 | |
---|
| 61 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
| 62 | |
---|
| 63 | </tr> |
---|
| 64 | |
---|
| 65 | <tr class="prop"> |
---|
[655] | 66 | <td valign="top" class="groupName">Section:</td> |
---|
[278] | 67 | |
---|
| 68 | <td valign="top" class="value"><g:link controller="sectionDetailed" action="show" id="${assetInstance?.section?.id}">${assetInstance?.section?.encodeAsHTML()}</g:link></td> |
---|
| 69 | |
---|
| 70 | </tr> |
---|
| 71 | |
---|
| 72 | <tr class="prop"> |
---|
[655] | 73 | <td valign="top" class="groupHeader">Extended Attributes</td> |
---|
[278] | 74 | |
---|
| 75 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 76 | </td> |
---|
| 77 | |
---|
| 78 | </tr> |
---|
| 79 | |
---|
[655] | 80 | <g:each var="a" in="${assetInstance.assetExtendedAttributes.sort { p1, p2 -> p1.extendedAttributeType.name.compareToIgnoreCase(p2.extendedAttributeType.name) }}"> |
---|
| 81 | <tr class="prop"> |
---|
| 82 | <td valign="top" class="groupName"> |
---|
| 83 | ${a.extendedAttributeType.name.encodeAsHTML()}: |
---|
| 84 | </td> |
---|
| 85 | |
---|
| 86 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 87 | <g:link controller="assetExtendedAttributeDetailed" action="edit" id="${a.id}"> |
---|
| 88 | ${a.value.encodeAsHTML()} |
---|
| 89 | </g:link> |
---|
| 90 | </td> |
---|
| 91 | |
---|
| 92 | </tr> |
---|
| 93 | </g:each> |
---|
| 94 | |
---|
[278] | 95 | <tr class="prop"> |
---|
[655] | 96 | <td valign="top" class="groupHeader"> |
---|
[657] | 97 | <label for="assetSubItems">Asset Tree</label> |
---|
[655] | 98 | </td> |
---|
| 99 | <td valign="top" class="value"> |
---|
| 100 | </td> |
---|
| 101 | </tr> |
---|
| 102 | |
---|
| 103 | <tr class="prop"> |
---|
| 104 | <td valign="top" class="name"> |
---|
| 105 | </td> |
---|
| 106 | <td valign="top" class="value"> |
---|
| 107 | <g:render template="/shared/assetTree" /> |
---|
| 108 | </td> |
---|
| 109 | </tr> |
---|
| 110 | |
---|
| 111 | <tr class="prop"> |
---|
| 112 | <td valign="top" class="groupHeader">Maintenance Actions</td> |
---|
[278] | 113 | |
---|
| 114 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 115 | </td> |
---|
| 116 | |
---|
| 117 | </tr> |
---|
[655] | 118 | |
---|
| 119 | |
---|
| 120 | <g:each var="m" in="${assetInstance.maintenanceActions}"> |
---|
| 121 | <tr class="prop"> |
---|
| 122 | <td valign="top" class="name"></td> |
---|
| 123 | |
---|
| 124 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 125 | <g:link controller="maintenanceActionDetailed" action="show" id="${m.id}"> |
---|
| 126 | ${m?.encodeAsHTML()} |
---|
| 127 | </g:link> |
---|
| 128 | </td> |
---|
| 129 | |
---|
| 130 | </tr> |
---|
| 131 | </g:each> |
---|
[278] | 132 | |
---|
[118] | 133 | </tbody> |
---|
| 134 | </table> |
---|
| 135 | </div> |
---|
| 136 | <div class="buttons"> |
---|
| 137 | <g:form> |
---|
| 138 | <input type="hidden" name="id" value="${assetInstance?.id}" /> |
---|
| 139 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
| 140 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 141 | </g:form> |
---|
| 142 | </div> |
---|
| 143 | </div> |
---|
| 144 | </body> |
---|
| 145 | </html> |
---|