[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> |
---|
[659] | 19 | |
---|
| 20 | <tr class="prop"> |
---|
| 21 | <td valign="top" class="groupHeader"> |
---|
| 22 | <label for="name">Asset Sub Item</label> |
---|
| 23 | </td> |
---|
| 24 | <td valign="top" class="value"> |
---|
| 25 | </td> |
---|
| 26 | </tr> |
---|
[274] | 27 | |
---|
| 28 | |
---|
| 29 | <tr class="prop"> |
---|
[659] | 30 | <td valign="top" class="groupName">Id:</td> |
---|
[274] | 31 | |
---|
| 32 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'id')}</td> |
---|
| 33 | |
---|
| 34 | </tr> |
---|
| 35 | |
---|
| 36 | <tr class="prop"> |
---|
[659] | 37 | <td valign="top" class="groupName">Name:</td> |
---|
[274] | 38 | |
---|
| 39 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'name')}</td> |
---|
| 40 | |
---|
| 41 | </tr> |
---|
| 42 | |
---|
| 43 | <tr class="prop"> |
---|
[659] | 44 | <td valign="top" class="groupName">Description:</td> |
---|
[274] | 45 | |
---|
| 46 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'description')}</td> |
---|
| 47 | |
---|
| 48 | </tr> |
---|
| 49 | |
---|
| 50 | <tr class="prop"> |
---|
[659] | 51 | <td valign="top" class="groupName">Comment:</td> |
---|
[330] | 52 | |
---|
| 53 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'comment')}</td> |
---|
| 54 | |
---|
| 55 | </tr> |
---|
| 56 | |
---|
| 57 | <tr class="prop"> |
---|
[659] | 58 | <td valign="top" class="groupName">Is Active:</td> |
---|
[274] | 59 | |
---|
| 60 | <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'isActive')}</td> |
---|
| 61 | |
---|
| 62 | </tr> |
---|
[659] | 63 | |
---|
| 64 | <tr class="prop"> |
---|
| 65 | <td valign="top" class="groupHeader"> |
---|
| 66 | <label for="name">Extended Attributes</label> |
---|
| 67 | </td> |
---|
| 68 | <td valign="top" class="value"> |
---|
| 69 | </td> |
---|
| 70 | </tr> |
---|
[274] | 71 | |
---|
[659] | 72 | <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes}"> |
---|
[274] | 73 | <tr class="prop"> |
---|
[659] | 74 | <td valign="top" class="name"></td> |
---|
[274] | 75 | <td valign="top" style="text-align:left;" class="value"> |
---|
[659] | 76 | <g:link controller="assetSubItemExtendedAttributeDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link> |
---|
[274] | 77 | </td> |
---|
| 78 | </tr> |
---|
[659] | 79 | </g:each> |
---|
| 80 | |
---|
[276] | 81 | <tr class="prop"> |
---|
[659] | 82 | <td valign="top" class="groupHeader"> |
---|
| 83 | <label for="name">Asset Tree</label> |
---|
| 84 | </td> |
---|
[388] | 85 | <td valign="top" class="value"> |
---|
[276] | 86 | </td> |
---|
| 87 | </tr> |
---|
[285] | 88 | |
---|
| 89 | <tr class="prop"> |
---|
[659] | 90 | <td valign="top" class="groupName">Assets:</td> |
---|
[285] | 91 | |
---|
[274] | 92 | <td valign="top" style="text-align:left;" class="value"> |
---|
[388] | 93 | <g:if test="${assetSubItemInstance.parentItem}" > |
---|
[659] | 94 | N/A (Assigned to parent item) |
---|
[388] | 95 | </g:if> |
---|
| 96 | <g:else> |
---|
[659] | 97 | <g:if test="${assetSubItemInstance.assets}"> |
---|
| 98 | <ul> |
---|
| 99 | <g:each var="a" in="${ assetSubItemInstance.assets.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
| 100 | <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
| 101 | </g:each> |
---|
| 102 | </ul> |
---|
| 103 | </g:if> |
---|
| 104 | <g:else> |
---|
| 105 | May be assigned via asset edit view. |
---|
| 106 | </g:else> |
---|
[388] | 107 | </g:else> |
---|
[274] | 108 | </td> |
---|
[285] | 109 | |
---|
[274] | 110 | </tr> |
---|
| 111 | |
---|
| 112 | <tr class="prop"> |
---|
[659] | 113 | <td valign="top" class="groupName">Parent Item:</td> |
---|
[274] | 114 | |
---|
[659] | 115 | <td valign="top" class="value"> |
---|
| 116 | <g:if test="${assetSubItemInstance.assets}"> |
---|
| 117 | Level 1 sub item (Assigned directly to assets) |
---|
| 118 | </g:if> |
---|
| 119 | <g:else> |
---|
| 120 | <g:link controller="assetSubItemDetailed" action="show" id="${assetSubItemInstance?.parentItem?.id}"> |
---|
| 121 | ${assetSubItemInstance?.parentItem?.encodeAsHTML()} |
---|
| 122 | </g:link> |
---|
| 123 | </g:else> |
---|
[274] | 124 | </td> |
---|
| 125 | |
---|
| 126 | </tr> |
---|
| 127 | |
---|
[388] | 128 | <tr class="prop"> |
---|
[659] | 129 | <td valign="top" class="groupName">Sub Items:</td> |
---|
[388] | 130 | |
---|
| 131 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 132 | <ul> |
---|
[659] | 133 | <g:each var="s" in="${assetSubItemInstance.subItems}"> |
---|
| 134 | <li><g:link controller="assetSubItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
[388] | 135 | </g:each> |
---|
| 136 | </ul> |
---|
| 137 | </td> |
---|
| 138 | |
---|
| 139 | </tr> |
---|
[659] | 140 | |
---|
| 141 | <tr class="prop"> |
---|
| 142 | <td valign="top" class="groupHeader"> |
---|
| 143 | <label for="name">Maintenance Actions</label> |
---|
| 144 | </td> |
---|
| 145 | <td valign="top" class="value"> |
---|
| 146 | </td> |
---|
| 147 | </tr> |
---|
[388] | 148 | |
---|
[659] | 149 | <g:each var="m" in="${assetSubItemInstance.maintenanceActions}"> |
---|
| 150 | <tr class="prop"> |
---|
| 151 | <td valign="top" class="name"></td> |
---|
| 152 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 153 | <g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link> |
---|
| 154 | </td> |
---|
| 155 | </tr> |
---|
| 156 | </g:each> |
---|
| 157 | |
---|
[274] | 158 | </tbody> |
---|
| 159 | </table> |
---|
| 160 | </div> |
---|
| 161 | <div class="buttons"> |
---|
| 162 | <g:form> |
---|
| 163 | <input type="hidden" name="id" value="${assetSubItemInstance?.id}" /> |
---|
| 164 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
| 165 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 166 | </g:form> |
---|
| 167 | </div> |
---|
| 168 | </div> |
---|
| 169 | </body> |
---|
| 170 | </html> |
---|