[274] | 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 AssetSubItem</title> |
---|
[369] | 8 | <nav:resources override="true"/> |
---|
[274] | 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
[369] | 12 | <nav:renderSubItems group="navAlt"/> |
---|
[274] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
[285] | 15 | <g:render template="/shared/messages" /> |
---|
[274] | 16 | <div class="dialog"> |
---|
| 17 | <table> |
---|
| 18 | <tbody> |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | <tr class="prop"> |
---|
| 22 | <td valign="top" class="name">Id:</td> |
---|
| 23 | |
---|
| 24 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'id')}</td> |
---|
| 25 | |
---|
| 26 | </tr> |
---|
| 27 | |
---|
| 28 | <tr class="prop"> |
---|
| 29 | <td valign="top" class="name">Name:</td> |
---|
| 30 | |
---|
| 31 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'name')}</td> |
---|
| 32 | |
---|
| 33 | </tr> |
---|
| 34 | |
---|
| 35 | <tr class="prop"> |
---|
| 36 | <td valign="top" class="name">Description:</td> |
---|
| 37 | |
---|
| 38 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'description')}</td> |
---|
| 39 | |
---|
| 40 | </tr> |
---|
| 41 | |
---|
| 42 | <tr class="prop"> |
---|
[330] | 43 | <td valign="top" class="name">Comment:</td> |
---|
| 44 | |
---|
| 45 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'comment')}</td> |
---|
| 46 | |
---|
| 47 | </tr> |
---|
| 48 | |
---|
| 49 | <tr class="prop"> |
---|
[274] | 50 | <td valign="top" class="name">Is Active:</td> |
---|
| 51 | |
---|
| 52 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'isActive')}</td> |
---|
| 53 | |
---|
| 54 | </tr> |
---|
| 55 | |
---|
| 56 | <tr class="prop"> |
---|
[388] | 57 | <td valign="top" class="name">Extended Attributes:</td> |
---|
[274] | 58 | |
---|
| 59 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 60 | <ul> |
---|
| 61 | <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes}"> |
---|
| 62 | <li><g:link controller="assetSubItemExtendedAttributeDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
| 63 | </g:each> |
---|
| 64 | </ul> |
---|
| 65 | </td> |
---|
| 66 | |
---|
| 67 | </tr> |
---|
[285] | 68 | |
---|
[276] | 69 | <tr class="prop"> |
---|
[388] | 70 | <td valign="top" class="name">Parent Item:</td> |
---|
[285] | 71 | |
---|
[388] | 72 | <td valign="top" class="value"> |
---|
| 73 | <g:if test="${assetSubItemInstance.assets}"> |
---|
| 74 | Assigned to assets. |
---|
| 75 | </g:if> |
---|
| 76 | <g:else> |
---|
| 77 | <g:link controller="assetSubItemDetailed" action="show" id="${assetSubItemInstance?.parentItem?.id}"> |
---|
| 78 | ${assetSubItemInstance?.parentItem?.encodeAsHTML()} |
---|
| 79 | </g:link> |
---|
| 80 | </g:else> |
---|
[276] | 81 | </td> |
---|
[285] | 82 | |
---|
[276] | 83 | </tr> |
---|
[285] | 84 | |
---|
| 85 | <tr class="prop"> |
---|
| 86 | <td valign="top" class="name">Assets:</td> |
---|
| 87 | |
---|
[274] | 88 | <td valign="top" style="text-align:left;" class="value"> |
---|
[388] | 89 | <g:if test="${assetSubItemInstance.parentItem}" > |
---|
| 90 | Assigned to parent item. |
---|
| 91 | </g:if> |
---|
| 92 | <g:else> |
---|
| 93 | <ul> |
---|
| 94 | <g:each var="a" in="${ assetSubItemInstance.assets.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
| 95 | <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
| 96 | </g:each> |
---|
| 97 | </ul> |
---|
| 98 | </g:else> |
---|
[274] | 99 | </td> |
---|
[285] | 100 | |
---|
[274] | 101 | </tr> |
---|
| 102 | |
---|
| 103 | <tr class="prop"> |
---|
| 104 | <td valign="top" class="name">Sub Items:</td> |
---|
| 105 | |
---|
| 106 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 107 | <ul> |
---|
| 108 | <g:each var="s" in="${assetSubItemInstance.subItems}"> |
---|
| 109 | <li><g:link controller="assetSubItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
| 110 | </g:each> |
---|
| 111 | </ul> |
---|
| 112 | </td> |
---|
| 113 | |
---|
| 114 | </tr> |
---|
| 115 | |
---|
[388] | 116 | <tr class="prop"> |
---|
| 117 | <td valign="top" class="name">Maintenance Actions:</td> |
---|
| 118 | |
---|
| 119 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 120 | <ul> |
---|
| 121 | <g:each var="m" in="${assetSubItemInstance.maintenanceActions}"> |
---|
| 122 | <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
| 123 | </g:each> |
---|
| 124 | </ul> |
---|
| 125 | </td> |
---|
| 126 | |
---|
| 127 | </tr> |
---|
| 128 | |
---|
[274] | 129 | </tbody> |
---|
| 130 | </table> |
---|
| 131 | </div> |
---|
| 132 | <div class="buttons"> |
---|
| 133 | <g:form> |
---|
| 134 | <input type="hidden" name="id" value="${assetSubItemInstance?.id}" /> |
---|
| 135 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
| 136 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 137 | </g:form> |
---|
| 138 | </div> |
---|
| 139 | </div> |
---|
| 140 | </body> |
---|
| 141 | </html> |
---|