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> |
---|
8 | <nav:resources override="true"/> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div class="nav"> |
---|
12 | <nav:renderSubItems group="nav"/> |
---|
13 | </div> |
---|
14 | <div class="body"> |
---|
15 | <g:render template="/shared/messages" /> |
---|
16 | <div class="dialog"> |
---|
17 | <table> |
---|
18 | <tbody> |
---|
19 | |
---|
20 | <tr class="prop"> |
---|
21 | <td valign="top" class="groupHeader"> |
---|
22 | <label for="name">Asset</label> |
---|
23 | </td> |
---|
24 | <td valign="top" class="value"> |
---|
25 | </td> |
---|
26 | </tr> |
---|
27 | |
---|
28 | <tr class="prop"> |
---|
29 | <td valign="top" class="groupName">Id:</td> |
---|
30 | |
---|
31 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'id')}</td> |
---|
32 | |
---|
33 | </tr> |
---|
34 | |
---|
35 | <tr class="prop"> |
---|
36 | <td valign="top" class="groupName">Name:</td> |
---|
37 | |
---|
38 | <td valign="top" style="text-align:left;" class="value"> |
---|
39 | ${assetInstance.name.encodeAsHTML()} |
---|
40 | </td> |
---|
41 | |
---|
42 | </tr> |
---|
43 | |
---|
44 | <tr class="prop"> |
---|
45 | <td valign="top" class="groupName">Description:</td> |
---|
46 | |
---|
47 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> |
---|
48 | |
---|
49 | </tr> |
---|
50 | |
---|
51 | <tr class="prop"> |
---|
52 | <td valign="top" class="groupName">Comment:</td> |
---|
53 | |
---|
54 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'comment')}</td> |
---|
55 | |
---|
56 | </tr> |
---|
57 | |
---|
58 | <tr class="prop"> |
---|
59 | <td valign="top" class="groupName">Is Active:</td> |
---|
60 | |
---|
61 | <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
62 | |
---|
63 | </tr> |
---|
64 | |
---|
65 | <tr class="prop"> |
---|
66 | <td valign="top" class="groupName">Section:</td> |
---|
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"> |
---|
73 | <td valign="top" class="groupHeader">Extended Attributes</td> |
---|
74 | |
---|
75 | <td valign="top" style="text-align:left;" class="value"> |
---|
76 | </td> |
---|
77 | |
---|
78 | </tr> |
---|
79 | |
---|
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 | |
---|
95 | <tr class="prop"> |
---|
96 | <td valign="top" class="groupHeader"> |
---|
97 | <label for="assetSubItems">Asset Tree</label> |
---|
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"> |
---|
112 | <td valign="top" class="groupHeader">Life Plan</td> |
---|
113 | |
---|
114 | <td valign="top" style="text-align:left;" class="value"> |
---|
115 | </td> |
---|
116 | |
---|
117 | </tr> |
---|
118 | |
---|
119 | <g:each var="t" in="${parentPMs}"> |
---|
120 | <tr class="prop"> |
---|
121 | <td valign="top" class="name"></td> |
---|
122 | |
---|
123 | <td valign="top" style="text-align:left;" class="value"> |
---|
124 | <g:link controller="taskDetailed" action="show" id="${t.id}"> |
---|
125 | Task #${t.id} |
---|
126 | </g:link> |
---|
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.taskProcedureRevision?.maintenanceActions}" > |
---|
146 | <custom:taskProcedureMachines taskProcedureRevision="${t.taskProcedureRevision}" /> |
---|
147 | <br /> |
---|
148 | </g:if> |
---|
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> |
---|
161 | </td> |
---|
162 | |
---|
163 | </tr> |
---|
164 | </g:each> |
---|
165 | |
---|
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> |
---|