[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"> |
---|
[749] | 112 | <td valign="top" class="groupHeader">Life Plan</td> |
---|
[278] | 113 | |
---|
| 114 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 115 | </td> |
---|
| 116 | |
---|
| 117 | </tr> |
---|
[655] | 118 | |
---|
[749] | 119 | <g:each var="t" in="${parentPMs}"> |
---|
[655] | 120 | <tr class="prop"> |
---|
| 121 | <td valign="top" class="name"></td> |
---|
| 122 | |
---|
| 123 | <td valign="top" style="text-align:left;" class="value"> |
---|
[749] | 124 | <g:link controller="taskDetailed" action="show" id="${t.id}"> |
---|
| 125 | Task #${t.id} |
---|
[655] | 126 | </g:link> |
---|
[749] | 127 | <g:if test="${t.approved}" > |
---|
| 128 | <img src="${resource(dir:'images/skin',file:'cog.png')}" alt="Approved" title="Approved" /> |
---|
| 129 | </g:if> |
---|
| 130 | <g:if test="${t.taskRecurringSchedule?.enabled}" > |
---|
| 131 | <img src="${resource(dir:'images/skin',file:'arrow_refresh.png')}" alt="Recurrence Enabled" title="Recurrence Enabled" /> |
---|
| 132 | </g:if> |
---|
| 133 | <g:if test="${t.taskStatus.id == 2}" > |
---|
| 134 | <img src="${resource(dir:'images/skin',file:'arrow_right.png')}" alt="In Progress" title="In Progress" /> |
---|
| 135 | </g:if> |
---|
| 136 | <g:if test="${t.attentionFlag}" > |
---|
| 137 | <img src="${resource(dir:'images/skin',file:'flag_red.png')}" alt="Attention Flag" title="Attention Flag" /> |
---|
| 138 | </g:if> |
---|
| 139 | <g:if test="${t.taskStatus.id == 3}" > |
---|
| 140 | <img src="${resource(dir:'images/skin',file:'tick.png')}" alt="Complete" title="Complete" /> |
---|
| 141 | </g:if> |
---|
| 142 | <br /> |
---|
| 143 | ${fieldValue(bean:t, field:'description')} |
---|
| 144 | <br /> |
---|
[817] | 145 | <g:if test="${t.taskProcedureRevision?.maintenanceActions}" > |
---|
| 146 | <custom:taskProcedureMachines taskProcedureRevision="${t.taskProcedureRevision}" /> |
---|
| 147 | <br /> |
---|
| 148 | </g:if> |
---|
[749] | 149 | <g:if test="${t.safetyRequirement}" > |
---|
| 150 | <img src="${resource(dir:'images/skin',file:'lightning.png')}" alt="Safety Requirement" title="Safety Requirement" /> |
---|
| 151 | Safety |
---|
| 152 | </g:if> |
---|
| 153 | <g:if test="${t.regulatoryRequirement}" > |
---|
| 154 | <img src="${resource(dir:'images/skin',file:'script_lightning.png')}" alt="Regulatory Requirement" title="Regulatory Requirement" /> |
---|
| 155 | Regulatory |
---|
| 156 | </g:if> |
---|
| 157 | <g:if test="${t.mandatoryRequirement}" > |
---|
| 158 | <img src="${resource(dir:'images/skin',file:'script.png')}" alt="Mandatory Requirement" title="Mandatory Requirement" /> |
---|
| 159 | Mandatory |
---|
| 160 | </g:if> |
---|
[655] | 161 | </td> |
---|
| 162 | |
---|
| 163 | </tr> |
---|
| 164 | </g:each> |
---|
[278] | 165 | |
---|
[118] | 166 | </tbody> |
---|
| 167 | </table> |
---|
| 168 | </div> |
---|
| 169 | <div class="buttons"> |
---|
| 170 | <g:form> |
---|
| 171 | <input type="hidden" name="id" value="${assetInstance?.id}" /> |
---|
| 172 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
| 173 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 174 | </g:form> |
---|
| 175 | </div> |
---|
| 176 | </div> |
---|
| 177 | </body> |
---|
| 178 | </html> |
---|