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>Edit MaintenanceAction</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <h1>Edit Maintenance Action</h1> |
---|
12 | </div> |
---|
13 | <div class="body"> |
---|
14 | <g:if test="${flash.message}"> |
---|
15 | <div class="message">${flash.message}</div> |
---|
16 | </g:if> |
---|
17 | <g:hasErrors bean="${maintenanceActionInstance}"> |
---|
18 | <div class="errors"> |
---|
19 | <g:renderErrors bean="${maintenanceActionInstance}" as="list" /> |
---|
20 | </div> |
---|
21 | </g:hasErrors> |
---|
22 | <g:form method="post" > |
---|
23 | <input type="hidden" name="id" value="${maintenanceActionInstance?.id}" /> |
---|
24 | <input type="hidden" name="version" value="${maintenanceActionInstance?.version}" /> |
---|
25 | <div class="dialog"> |
---|
26 | <table> |
---|
27 | <tbody> |
---|
28 | |
---|
29 | <tr class="prop"> |
---|
30 | <td valign="top" class="name"> |
---|
31 | <label for="section">Section:</label> |
---|
32 | </td> |
---|
33 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'section','errors')}"> |
---|
34 | <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${maintenanceActionInstance?.section?.id}" noSelection="['null':'']"></g:select> |
---|
35 | </td> |
---|
36 | </tr> |
---|
37 | |
---|
38 | <tr class="prop"> |
---|
39 | <td valign="top" class="name"> |
---|
40 | <label for="asset">Asset:</label> |
---|
41 | </td> |
---|
42 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'asset','errors')}"> |
---|
43 | <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${maintenanceActionInstance?.asset?.id}" noSelection="['null':'']"></g:select> |
---|
44 | </td> |
---|
45 | </tr> |
---|
46 | |
---|
47 | <tr class="prop"> |
---|
48 | <td valign="top" class="name"> |
---|
49 | <label for="assetSubItem">Asset Sub Item:</label> |
---|
50 | </td> |
---|
51 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetSubItem','errors')}"> |
---|
52 | <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${maintenanceActionInstance?.assetSubItem?.id}" noSelection="['null':'']"></g:select> |
---|
53 | </td> |
---|
54 | </tr> |
---|
55 | |
---|
56 | <tr class="prop"> |
---|
57 | <td valign="top" class="name"> |
---|
58 | <label for="maintenancePolicy">Maintenance Policy:</label> |
---|
59 | </td> |
---|
60 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> |
---|
61 | <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> |
---|
62 | </td> |
---|
63 | </tr> |
---|
64 | |
---|
65 | <tr class="prop"> |
---|
66 | <td valign="top" class="name"> |
---|
67 | <label for="procedureStepNumber">Procedure Step Number:</label> |
---|
68 | </td> |
---|
69 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'procedureStepNumber','errors')}"> |
---|
70 | <input type="text" id="procedureStepNumber" name="procedureStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'procedureStepNumber')}" /> |
---|
71 | </td> |
---|
72 | </tr> |
---|
73 | |
---|
74 | <tr class="prop"> |
---|
75 | <td valign="top" class="name"> |
---|
76 | <label for="description">Description:</label> |
---|
77 | </td> |
---|
78 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'description','errors')}"> |
---|
79 | <input type="text" id="description" name="description" value="${fieldValue(bean:maintenanceActionInstance,field:'description')}"/> |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | |
---|
83 | <tr class="prop"> |
---|
84 | <td valign="top" class="name"> |
---|
85 | <label for="reasoning">Reasoning:</label> |
---|
86 | </td> |
---|
87 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> |
---|
88 | <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> |
---|
89 | </td> |
---|
90 | </tr> |
---|
91 | |
---|
92 | <tr class="prop"> |
---|
93 | <td valign="top" class="name"> |
---|
94 | <label for="taskProcedure">Task Procedure:</label> |
---|
95 | </td> |
---|
96 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'taskProcedure','errors')}"> |
---|
97 | <g:select optionKey="id" from="${TaskProcedure.list()}" name="taskProcedure.id" value="${maintenanceActionInstance?.taskProcedure?.id}" ></g:select> |
---|
98 | </td> |
---|
99 | </tr> |
---|
100 | |
---|
101 | </tbody> |
---|
102 | </table> |
---|
103 | </div> |
---|
104 | <div class="buttons"> |
---|
105 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
106 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
107 | </div> |
---|
108 | </g:form> |
---|
109 | </div> |
---|
110 | </body> |
---|
111 | </html> |
---|