[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"> |
---|
[683] | 65 | <td valign="top" class="groupHeader">Extended Attributes</td> |
---|
[274] | 66 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 67 | </td> |
---|
| 68 | </tr> |
---|
[683] | 69 | |
---|
| 70 | <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes.sort { p1, p2 -> p1.extendedAttributeType.name.compareToIgnoreCase(p2.extendedAttributeType.name) }}"> |
---|
| 71 | <tr class="prop"> |
---|
| 72 | <td valign="top" class="groupName"> |
---|
| 73 | ${a.extendedAttributeType.name.encodeAsHTML()}: |
---|
| 74 | </td> |
---|
| 75 | |
---|
| 76 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 77 | <g:link controller="assetSubItemExtendedAttributeDetailed" action="edit" id="${a.id}"> |
---|
| 78 | ${a.value.encodeAsHTML()} |
---|
| 79 | </g:link> |
---|
| 80 | </td> |
---|
| 81 | |
---|
| 82 | </tr> |
---|
[659] | 83 | </g:each> |
---|
| 84 | |
---|
[276] | 85 | <tr class="prop"> |
---|
[659] | 86 | <td valign="top" class="groupHeader"> |
---|
| 87 | <label for="name">Asset Tree</label> |
---|
| 88 | </td> |
---|
[388] | 89 | <td valign="top" class="value"> |
---|
[276] | 90 | </td> |
---|
| 91 | </tr> |
---|
[285] | 92 | |
---|
| 93 | <tr class="prop"> |
---|
[659] | 94 | <td valign="top" class="groupName">Assets:</td> |
---|
[285] | 95 | |
---|
[274] | 96 | <td valign="top" style="text-align:left;" class="value"> |
---|
[388] | 97 | <g:if test="${assetSubItemInstance.parentItem}" > |
---|
[659] | 98 | N/A (Assigned to parent item) |
---|
[388] | 99 | </g:if> |
---|
| 100 | <g:else> |
---|
[659] | 101 | <g:if test="${assetSubItemInstance.assets}"> |
---|
| 102 | <ul> |
---|
| 103 | <g:each var="a" in="${ assetSubItemInstance.assets.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
| 104 | <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
| 105 | </g:each> |
---|
| 106 | </ul> |
---|
| 107 | </g:if> |
---|
| 108 | <g:else> |
---|
| 109 | May be assigned via asset edit view. |
---|
| 110 | </g:else> |
---|
[388] | 111 | </g:else> |
---|
[274] | 112 | </td> |
---|
[285] | 113 | |
---|
[274] | 114 | </tr> |
---|
| 115 | |
---|
| 116 | <tr class="prop"> |
---|
[659] | 117 | <td valign="top" class="groupName">Parent Item:</td> |
---|
[274] | 118 | |
---|
[659] | 119 | <td valign="top" class="value"> |
---|
| 120 | <g:if test="${assetSubItemInstance.assets}"> |
---|
| 121 | Level 1 sub item (Assigned directly to assets) |
---|
| 122 | </g:if> |
---|
| 123 | <g:else> |
---|
| 124 | <g:link controller="assetSubItemDetailed" action="show" id="${assetSubItemInstance?.parentItem?.id}"> |
---|
| 125 | ${assetSubItemInstance?.parentItem?.encodeAsHTML()} |
---|
| 126 | </g:link> |
---|
| 127 | </g:else> |
---|
[274] | 128 | </td> |
---|
| 129 | |
---|
| 130 | </tr> |
---|
| 131 | |
---|
[388] | 132 | <tr class="prop"> |
---|
[659] | 133 | <td valign="top" class="groupName">Sub Items:</td> |
---|
[388] | 134 | |
---|
| 135 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 136 | <ul> |
---|
[881] | 137 | <g:each var="s" in="${assetSubItemInstance.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
[659] | 138 | <li><g:link controller="assetSubItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
[388] | 139 | </g:each> |
---|
| 140 | </ul> |
---|
| 141 | </td> |
---|
| 142 | |
---|
| 143 | </tr> |
---|
[659] | 144 | |
---|
| 145 | <tr class="prop"> |
---|
| 146 | <td valign="top" class="groupHeader"> |
---|
| 147 | <label for="name">Maintenance Actions</label> |
---|
| 148 | </td> |
---|
| 149 | <td valign="top" class="value"> |
---|
| 150 | </td> |
---|
| 151 | </tr> |
---|
[388] | 152 | |
---|
[659] | 153 | <g:each var="m" in="${assetSubItemInstance.maintenanceActions}"> |
---|
| 154 | <tr class="prop"> |
---|
| 155 | <td valign="top" class="name"></td> |
---|
| 156 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 157 | <g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link> |
---|
| 158 | </td> |
---|
| 159 | </tr> |
---|
| 160 | </g:each> |
---|
| 161 | |
---|
[274] | 162 | </tbody> |
---|
| 163 | </table> |
---|
| 164 | </div> |
---|
| 165 | <div class="buttons"> |
---|
| 166 | <g:form> |
---|
| 167 | <input type="hidden" name="id" value="${assetSubItemInstance?.id}" /> |
---|
| 168 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
| 169 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 170 | </g:form> |
---|
| 171 | </div> |
---|
| 172 | </div> |
---|
| 173 | </body> |
---|
| 174 | </html> |
---|