Last change
on this file since 954 was
885,
checked in by gav, 14 years ago
|
Refactor assetTreeCompact to use includes and controller action instead of direct render call in gsp.
|
File size:
2.3 KB
|
Line | |
---|
1 | |
---|
2 | <div class="dialog"> |
---|
3 | <table> |
---|
4 | <tbody> |
---|
5 | |
---|
6 | <g:if test="${taskProcedureInstance.id}"> |
---|
7 | <tr class="prop"> |
---|
8 | <td valign="top" class="name">Procedure Id:</td> |
---|
9 | <td valign="top" class="value"> |
---|
10 | ${fieldValue(bean:taskProcedureInstance, field:'id')} |
---|
11 | </td> |
---|
12 | </tr> |
---|
13 | </g:if> |
---|
14 | |
---|
15 | <tr class="prop"> |
---|
16 | <td valign="top" class="name"> |
---|
17 | <label for="taskInstance">Linked Task:</label> |
---|
18 | </td> |
---|
19 | <td valign="top" name="taskInstance" class="value"> |
---|
20 | <g:link controller="taskDetailed" action="show" id="${taskProcedureInstance.linkedTask.id}"> |
---|
21 | ${taskProcedureInstance.linkedTask.encodeAsHTML()} |
---|
22 | </g:link> |
---|
23 | </td> |
---|
24 | </tr> |
---|
25 | |
---|
26 | <tr class="prop"> |
---|
27 | <td valign="top" class="name">Linked Asset:</td> |
---|
28 | <td valign="top" class="value"> |
---|
29 | <g:include controller="assetDetailed" action="assetTreeCompact" id="${taskProcedureInstance.linkedTask.primaryAsset.id}" /> |
---|
30 | </td> |
---|
31 | </tr> |
---|
32 | |
---|
33 | <g:if test="${taskProcedureInstance.id}"> |
---|
34 | <tr class="prop"> |
---|
35 | <td valign="top" class="name">Revisions:</td> |
---|
36 | <td valign="top" class="value"> |
---|
37 | <ul> |
---|
38 | <g:each var="r" in="${taskProcedureInstance.revisions}"> |
---|
39 | <li> |
---|
40 | <g:link action="show" id="${taskProcedureInstance.id}" params="['revision':r.revision]"> |
---|
41 | ${r.fullRevisionString.encodeAsHTML()} |
---|
42 | </g:link> |
---|
43 | </li> |
---|
44 | </g:each> |
---|
45 | </ul> |
---|
46 | </td> |
---|
47 | </tr> |
---|
48 | </g:if> |
---|
49 | |
---|
50 | </tbody> |
---|
51 | </table> |
---|
52 | |
---|
53 | <br /> |
---|
54 | <g:render template="documentReferences" model="['taskProcedureInstance': taskProcedureInstance]" /> |
---|
55 | |
---|
56 | <br /> |
---|
57 | <g:render template="maintenanceActions" model="['taskProcedureInstance': taskProcedureInstance, |
---|
58 | 'assemblies': assemblies]" /> |
---|
59 | <br /> |
---|
60 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.