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 Assembly</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
12 | <span class="menuButton"><g:link class="list" action="list">Assembly List</g:link></span> |
---|
13 | <span class="menuButton"><g:link class="create" action="create">New Assembly</g:link></span> |
---|
14 | </div> |
---|
15 | <div class="body"> |
---|
16 | <h1>Show Assembly</h1> |
---|
17 | <g:if test="${flash.message}"> |
---|
18 | <div class="message">${flash.message}</div> |
---|
19 | </g:if> |
---|
20 | <div class="dialog"> |
---|
21 | <table> |
---|
22 | <tbody> |
---|
23 | |
---|
24 | |
---|
25 | <tr class="prop"> |
---|
26 | <td valign="top" class="name">Id:</td> |
---|
27 | |
---|
28 | <td valign="top" class="value">${fieldValue(bean:assemblyInstance, field:'id')}</td> |
---|
29 | |
---|
30 | </tr> |
---|
31 | |
---|
32 | <tr class="prop"> |
---|
33 | <td valign="top" class="name">Asset Types:</td> |
---|
34 | |
---|
35 | <td valign="top" style="text-align:left;" class="value"> |
---|
36 | <ul> |
---|
37 | <g:each var="a" in="${assemblyInstance.assetTypes}"> |
---|
38 | <li><g:link controller="assetType" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
39 | </g:each> |
---|
40 | </ul> |
---|
41 | </td> |
---|
42 | |
---|
43 | </tr> |
---|
44 | |
---|
45 | <tr class="prop"> |
---|
46 | <td valign="top" class="name">Description:</td> |
---|
47 | |
---|
48 | <td valign="top" class="value">${fieldValue(bean:assemblyInstance, field:'description')}</td> |
---|
49 | |
---|
50 | </tr> |
---|
51 | |
---|
52 | <tr class="prop"> |
---|
53 | <td valign="top" class="name">Is Active:</td> |
---|
54 | |
---|
55 | <td valign="top" class="value">${fieldValue(bean:assemblyInstance, field:'isActive')}</td> |
---|
56 | |
---|
57 | </tr> |
---|
58 | |
---|
59 | <tr class="prop"> |
---|
60 | <td valign="top" class="name">Maintenance Actions:</td> |
---|
61 | |
---|
62 | <td valign="top" style="text-align:left;" class="value"> |
---|
63 | <ul> |
---|
64 | <g:each var="m" in="${assemblyInstance.maintenanceActions}"> |
---|
65 | <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
66 | </g:each> |
---|
67 | </ul> |
---|
68 | </td> |
---|
69 | |
---|
70 | </tr> |
---|
71 | |
---|
72 | <tr class="prop"> |
---|
73 | <td valign="top" class="name">Name:</td> |
---|
74 | |
---|
75 | <td valign="top" class="value">${fieldValue(bean:assemblyInstance, field:'name')}</td> |
---|
76 | |
---|
77 | </tr> |
---|
78 | |
---|
79 | <tr class="prop"> |
---|
80 | <td valign="top" class="name">Sub Assemblies:</td> |
---|
81 | |
---|
82 | <td valign="top" style="text-align:left;" class="value"> |
---|
83 | <ul> |
---|
84 | <g:each var="s" in="${assemblyInstance.subAssemblies}"> |
---|
85 | <li><g:link controller="subAssembly" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
86 | </g:each> |
---|
87 | </ul> |
---|
88 | </td> |
---|
89 | |
---|
90 | </tr> |
---|
91 | |
---|
92 | </tbody> |
---|
93 | </table> |
---|
94 | </div> |
---|
95 | <div class="buttons"> |
---|
96 | <g:form> |
---|
97 | <input type="hidden" name="id" value="${assemblyInstance?.id}" /> |
---|
98 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
99 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
100 | </g:form> |
---|
101 | </div> |
---|
102 | </div> |
---|
103 | </body> |
---|
104 | </html> |
---|