[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 | <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"> |
---|
[271] | 30 | <td valign="top" class="name">Asset:</td> |
---|
| 31 | |
---|
| 32 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 33 | ${assetInstance.encodeAsHTML()} |
---|
| 34 | <g:link controller="assetSubItemDetailed" params="['asset.id':assetInstance?.id]" action="create"> |
---|
| 35 | <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item"/> |
---|
| 36 | </g:link> |
---|
| 37 | <g:link params="['asset.id':assetInstance?.id]" action="copy"> |
---|
| 38 | <img src="${resource(dir:'images/skin',file:'page_copy.png')}" alt="Copy" title="Copy Asset"/> |
---|
| 39 | </g:link> |
---|
| 40 | <br /> |
---|
| 41 | <br /> |
---|
| 42 | <ul> |
---|
| 43 | <g:each var="assetSubItem1" in="${assetInstance.assetSubItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
| 44 | <li> |
---|
| 45 | <g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem1.id}">${assetSubItem1?.encodeAsHTML()}</g:link> |
---|
| 46 | <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItem1?.id]" action="create"> |
---|
| 47 | <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item" /> |
---|
| 48 | </g:link> |
---|
| 49 | </li> |
---|
| 50 | <ul> |
---|
| 51 | <g:each var="assetSubItem2" in="${assetSubItem1.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
| 52 | <li> |
---|
| 53 | <g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem2.id}">${assetSubItem2?.encodeAsHTML()}</g:link> |
---|
| 54 | <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItem2?.id]" action="create"> |
---|
| 55 | <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item" /> |
---|
| 56 | </g:link> |
---|
| 57 | </li> |
---|
| 58 | <ul> |
---|
| 59 | <g:each var="assetSubItem3" in="${assetSubItem2.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
| 60 | <li> |
---|
| 61 | <g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem3.id}">${assetSubItem3?.encodeAsHTML()}</g:link> |
---|
| 62 | <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItem3?.id]" action="create"> |
---|
| 63 | <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item" /> |
---|
| 64 | </g:link> |
---|
| 65 | </li> |
---|
| 66 | <ul> |
---|
| 67 | <g:each var="assetSubItem4" in="${assetSubItem3.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
| 68 | <li><g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem4.id}">${assetSubItem4?.encodeAsHTML()}</g:link></li> |
---|
| 69 | </g:each> <!--assetSubItem4--> |
---|
| 70 | </ul> |
---|
| 71 | </g:each> <!--assetSubItem3--> |
---|
| 72 | </ul> |
---|
| 73 | </g:each> <!--assetSubItem2--> |
---|
| 74 | </ul> |
---|
| 75 | <br /> |
---|
| 76 | <br /> |
---|
| 77 | </g:each> <!--assetSubItem1--> |
---|
| 78 | </ul> |
---|
| 79 | </td> |
---|
| 80 | |
---|
[118] | 81 | </tr> |
---|
| 82 | |
---|
| 83 | <tr class="prop"> |
---|
[161] | 84 | <td valign="top" class="name">Description:</td> |
---|
| 85 | |
---|
| 86 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> |
---|
| 87 | |
---|
| 88 | </tr> |
---|
| 89 | |
---|
| 90 | <tr class="prop"> |
---|
[271] | 91 | <td valign="top" class="name">Is Active:</td> |
---|
[161] | 92 | |
---|
[271] | 93 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
[161] | 94 | |
---|
| 95 | </tr> |
---|
| 96 | |
---|
| 97 | <tr class="prop"> |
---|
[271] | 98 | <td valign="top" class="name">Section:</td> |
---|
[118] | 99 | |
---|
[271] | 100 | <td valign="top" class="value"><g:link controller="sectionDetailed" action="show" id="${assetInstance?.section?.id}">${assetInstance?.section?.encodeAsHTML()}</g:link></td> |
---|
[118] | 101 | |
---|
| 102 | </tr> |
---|
| 103 | |
---|
| 104 | <tr class="prop"> |
---|
[124] | 105 | <td valign="top" class="name">Asset Extended Attributes:</td> |
---|
[118] | 106 | |
---|
[122] | 107 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 108 | <ul> |
---|
[124] | 109 | <g:each var="a" in="${assetInstance.assetExtendedAttributes}"> |
---|
[271] | 110 | <li><g:link controller="assetExtendedAttributeDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
[122] | 111 | </g:each> |
---|
| 112 | </ul> |
---|
| 113 | </td> |
---|
[118] | 114 | |
---|
| 115 | </tr> |
---|
| 116 | |
---|
| 117 | <tr class="prop"> |
---|
[124] | 118 | <td valign="top" class="name">Maintenance Actions:</td> |
---|
[118] | 119 | |
---|
[124] | 120 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 121 | <ul> |
---|
| 122 | <g:each var="m" in="${assetInstance.maintenanceActions}"> |
---|
[271] | 123 | <li><g:link controller="maintenanceActionDetailed" action="edit" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
[124] | 124 | </g:each> |
---|
| 125 | </ul> |
---|
| 126 | </td> |
---|
[118] | 127 | |
---|
| 128 | </tr> |
---|
| 129 | |
---|
| 130 | </tbody> |
---|
| 131 | </table> |
---|
| 132 | </div> |
---|
| 133 | <div class="buttons"> |
---|
| 134 | <g:form> |
---|
| 135 | <input type="hidden" name="id" value="${assetInstance?.id}" /> |
---|
| 136 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
| 137 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 138 | </g:form> |
---|
| 139 | </div> |
---|
| 140 | </div> |
---|
| 141 | </body> |
---|
| 142 | </html> |
---|