1 | |
---|
2 | <div class="dialog"> |
---|
3 | <table> |
---|
4 | <tbody> |
---|
5 | |
---|
6 | <tr class="prop"> |
---|
7 | <td valign="top" class="name">Procedure Id:</td> |
---|
8 | <td valign="top" class="value"> |
---|
9 | ${fieldValue(bean:taskProcedureRevision, field:'taskProcedureId')} |
---|
10 | </td> |
---|
11 | </tr> |
---|
12 | |
---|
13 | <tr class="prop"> |
---|
14 | <td valign="top" class="name">Linked Task:</td> |
---|
15 | <td valign="top" class="value"> |
---|
16 | <g:link controller="taskDetailed" |
---|
17 | action="show" |
---|
18 | id="${taskProcedureRevision.linkedTask.id}"> |
---|
19 | ${taskProcedureRevision.linkedTask.encodeAsHTML()} |
---|
20 | </g:link> |
---|
21 | </td> |
---|
22 | </tr> |
---|
23 | |
---|
24 | <tr class="prop"> |
---|
25 | <td valign="top" class="name">Linked Asset:</td> |
---|
26 | <td valign="top" class="value"> |
---|
27 | <g:include controller="assetDetailed" action="assetTreeCompact" id="${taskProcedureRevision.linkedTask.primaryAsset.id}" /> |
---|
28 | |
---|
29 | </td> |
---|
30 | </tr> |
---|
31 | |
---|
32 | <tr class="prop"> |
---|
33 | <td valign="top" class="name">Revision:</td> |
---|
34 | <td valign="top" class="value"> |
---|
35 | ${fieldValue(bean:taskProcedureRevision, field:'revisionDateString')} |
---|
36 | </td> |
---|
37 | </tr> |
---|
38 | |
---|
39 | </tbody> |
---|
40 | </table> |
---|
41 | </div> |
---|
42 | <div class="buttons"> |
---|
43 | <g:form controller="taskProcedureDetailed"> |
---|
44 | <input type="hidden" name="id" value="${taskProcedureRevision.taskProcedureId}" /> |
---|
45 | Latest Revision: ${taskProcedureRevision?.taskProcedure.revision} |
---|
46 | <span class="button"> |
---|
47 | <g:actionSubmit class="edit" value="Edit" /> |
---|
48 | </span> |
---|
49 | <span class="button"> |
---|
50 | <g:actionSubmit class="go" value="Show" /> |
---|
51 | </span> |
---|
52 | </g:form> |
---|
53 | </div> |
---|
54 | |
---|
55 | <br /> |
---|
56 | |
---|
57 | <g:if test="${taskProcedureRevision.documentReferences}"> |
---|
58 | <div class="list"> |
---|
59 | <table> |
---|
60 | <thead> |
---|
61 | <tr> |
---|
62 | <th>Document Reference</th> |
---|
63 | <th>Location</th> |
---|
64 | </tr> |
---|
65 | </thead> |
---|
66 | <tbody> |
---|
67 | <g:each in="${taskProcedureRevision.documentReferences}" status="i" var="docRef"> |
---|
68 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
69 | |
---|
70 | <td valign="top" class="name"> |
---|
71 | ${fieldValue(bean:docRef, field:'name')} |
---|
72 | </td> |
---|
73 | |
---|
74 | <td valign="top" style="text-align:left;" class="value"> |
---|
75 | <custom:easyUrl url="${docRef.location}" /> |
---|
76 | </td> |
---|
77 | |
---|
78 | </tr> |
---|
79 | </g:each> |
---|
80 | |
---|
81 | </tbody> |
---|
82 | </table> |
---|
83 | </div> |
---|
84 | </g:if> |
---|
85 | |
---|
86 | <br /> |
---|
87 | |
---|
88 | <g:if test="${taskProcedureRevision.maintenanceActions}"> |
---|
89 | <div class="list"> |
---|
90 | <table> |
---|
91 | <thead> |
---|
92 | <tr> |
---|
93 | <th>Step</th> |
---|
94 | <th>Assembly</th> |
---|
95 | <th>Description</th> |
---|
96 | <th>Page Ref</th> |
---|
97 | <th>Condition</th> |
---|
98 | </tr> |
---|
99 | </thead> |
---|
100 | <tbody> |
---|
101 | <g:each in="${taskProcedureRevision.maintenanceActions}" status="i" var="maintenanceAction"> |
---|
102 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
103 | |
---|
104 | <td valign="top" class="name"> |
---|
105 | ${fieldValue(bean:maintenanceAction, field:'procedureStepNumber')} |
---|
106 | </td> |
---|
107 | |
---|
108 | <td valign="top" style="text-align:left;" class="value"> |
---|
109 | <g:if test="${maintenanceAction.assetSubItem}"> |
---|
110 | ${maintenanceAction.assetSubItem.parentItem?.encodeAsHTML()} |
---|
111 | -- |
---|
112 | ${maintenanceAction.assetSubItem.encodeAsHTML()} |
---|
113 | </g:if> |
---|
114 | </td> |
---|
115 | |
---|
116 | <td valign="top" style="text-align:left;" class="value"> |
---|
117 | ${fieldValue(bean:maintenanceAction, field:'description')} |
---|
118 | </td> |
---|
119 | |
---|
120 | <td valign="top" style="text-align:left;" class="value"> |
---|
121 | ${maintenanceAction.pageRef.encodeAsHTML() ?: '-'} |
---|
122 | </td> |
---|
123 | |
---|
124 | <td valign="top" style="text-align:left; white-space:nowrap;" class="value"> |
---|
125 | ${'A | B | C | D | E'} |
---|
126 | </td> |
---|
127 | |
---|
128 | </tr> |
---|
129 | </g:each> |
---|
130 | |
---|
131 | </tbody> |
---|
132 | </table> |
---|
133 | <div class="buttons"> |
---|
134 | <g:set var="conditionSeverityList" value="${ConditionSeverity.findAllByIsActive(true)}" /> |
---|
135 | |
---|
136 | <% out << conditionSeverityList[0..1].join(' | ') %> |
---|
137 | <br /> |
---|
138 | <% out << conditionSeverityList[2..-1].join(' | ') %> |
---|
139 | </div> |
---|
140 | </div> |
---|
141 | </g:if> |
---|