[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 /> |
---|
| 145 | <g:if test="${t.safetyRequirement}" > |
---|
| 146 | <img src="${resource(dir:'images/skin',file:'lightning.png')}" alt="Safety Requirement" title="Safety Requirement" /> |
---|
| 147 | Safety |
---|
| 148 | </g:if> |
---|
| 149 | <g:if test="${t.regulatoryRequirement}" > |
---|
| 150 | <img src="${resource(dir:'images/skin',file:'script_lightning.png')}" alt="Regulatory Requirement" title="Regulatory Requirement" /> |
---|
| 151 | Regulatory |
---|
| 152 | </g:if> |
---|
| 153 | <g:if test="${t.mandatoryRequirement}" > |
---|
| 154 | <img src="${resource(dir:'images/skin',file:'script.png')}" alt="Mandatory Requirement" title="Mandatory Requirement" /> |
---|
| 155 | Mandatory |
---|
| 156 | </g:if> |
---|
[655] | 157 | </td> |
---|
| 158 | |
---|
| 159 | </tr> |
---|
| 160 | </g:each> |
---|
[278] | 161 | |
---|
[118] | 162 | </tbody> |
---|
| 163 | </table> |
---|
| 164 | </div> |
---|
| 165 | <div class="buttons"> |
---|
| 166 | <g:form> |
---|
| 167 | <input type="hidden" name="id" value="${assetInstance?.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> |
---|