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 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
12 | <span class="menuButton"><g:link class="list" action="list">MaintenanceAction List</g:link></span> |
---|
13 | <span class="menuButton"><g:link class="create" action="create">New MaintenanceAction</g:link></span> |
---|
14 | </div> |
---|
15 | <div class="body"> |
---|
16 | <h1>Edit MaintenanceAction</h1> |
---|
17 | <g:if test="${flash.message}"> |
---|
18 | <div class="message">${flash.message}</div> |
---|
19 | </g:if> |
---|
20 | <g:hasErrors bean="${maintenanceActionInstance}"> |
---|
21 | <div class="errors"> |
---|
22 | <g:renderErrors bean="${maintenanceActionInstance}" as="list" /> |
---|
23 | </div> |
---|
24 | </g:hasErrors> |
---|
25 | <g:form method="post" > |
---|
26 | <input type="hidden" name="id" value="${maintenanceActionInstance?.id}" /> |
---|
27 | <input type="hidden" name="version" value="${maintenanceActionInstance?.version}" /> |
---|
28 | <div class="dialog"> |
---|
29 | <table> |
---|
30 | <tbody> |
---|
31 | |
---|
32 | <tr class="prop"> |
---|
33 | <td valign="top" class="name"> |
---|
34 | <label for="systemSection">System Section:</label> |
---|
35 | </td> |
---|
36 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'systemSection','errors')}"> |
---|
37 | <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${maintenanceActionInstance?.systemSection?.id}" noSelection="['null':'']"></g:select> |
---|
38 | </td> |
---|
39 | </tr> |
---|
40 | |
---|
41 | <tr class="prop"> |
---|
42 | <td valign="top" class="name"> |
---|
43 | <label for="asset">Asset:</label> |
---|
44 | </td> |
---|
45 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'asset','errors')}"> |
---|
46 | <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${maintenanceActionInstance?.asset?.id}" noSelection="['null':'']"></g:select> |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | |
---|
50 | <tr class="prop"> |
---|
51 | <td valign="top" class="name"> |
---|
52 | <label for="assetType">Asset Type:</label> |
---|
53 | </td> |
---|
54 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetType','errors')}"> |
---|
55 | <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${maintenanceActionInstance?.assetType?.id}" noSelection="['null':'']"></g:select> |
---|
56 | </td> |
---|
57 | </tr> |
---|
58 | |
---|
59 | <tr class="prop"> |
---|
60 | <td valign="top" class="name"> |
---|
61 | <label for="assembly">Assembly:</label> |
---|
62 | </td> |
---|
63 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assembly','errors')}"> |
---|
64 | <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${maintenanceActionInstance?.assembly?.id}" noSelection="['null':'']"></g:select> |
---|
65 | </td> |
---|
66 | </tr> |
---|
67 | |
---|
68 | <tr class="prop"> |
---|
69 | <td valign="top" class="name"> |
---|
70 | <label for="subAssembly">Sub Assembly:</label> |
---|
71 | </td> |
---|
72 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'subAssembly','errors')}"> |
---|
73 | <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${maintenanceActionInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select> |
---|
74 | </td> |
---|
75 | </tr> |
---|
76 | |
---|
77 | <tr class="prop"> |
---|
78 | <td valign="top" class="name"> |
---|
79 | <label for="componentItem">Component Item:</label> |
---|
80 | </td> |
---|
81 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'componentItem','errors')}"> |
---|
82 | <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${maintenanceActionInstance?.componentItem?.id}" noSelection="['null':'']"></g:select> |
---|
83 | </td> |
---|
84 | </tr> |
---|
85 | |
---|
86 | <tr class="prop"> |
---|
87 | <td valign="top" class="name"> |
---|
88 | <label for="maintenanceAction">Maintenance Action:</label> |
---|
89 | </td> |
---|
90 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenanceAction','errors')}"> |
---|
91 | <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:maintenanceActionInstance,field:'maintenanceAction')}"/> |
---|
92 | </td> |
---|
93 | </tr> |
---|
94 | |
---|
95 | <tr class="prop"> |
---|
96 | <td valign="top" class="name"> |
---|
97 | <label for="isActive">Is Active:</label> |
---|
98 | </td> |
---|
99 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}"> |
---|
100 | <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox> |
---|
101 | </td> |
---|
102 | </tr> |
---|
103 | |
---|
104 | <tr class="prop"> |
---|
105 | <td valign="top" class="name"> |
---|
106 | <label for="maintenancePolicy">Maintenance Policy:</label> |
---|
107 | </td> |
---|
108 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> |
---|
109 | <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" ></g:select> |
---|
110 | </td> |
---|
111 | </tr> |
---|
112 | |
---|
113 | <tr class="prop"> |
---|
114 | <td valign="top" class="name"> |
---|
115 | <label for="pmStepNumber">PM Step Number:</label> |
---|
116 | </td> |
---|
117 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'pmStepNumber','errors')}"> |
---|
118 | <input type="text" id="pmStepNumber" name="pmStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'pmStepNumber')}"/> |
---|
119 | </td> |
---|
120 | </tr> |
---|
121 | |
---|
122 | <tr class="prop"> |
---|
123 | <td valign="top" class="name"> |
---|
124 | <label for="plannedMaintenance">Planned Maintenance:</label> |
---|
125 | </td> |
---|
126 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'plannedMaintenance','errors')}"> |
---|
127 | <g:select optionKey="id" from="${PlannedMaintenance.list()}" name="plannedMaintenance.id" value="${maintenanceActionInstance?.plannedMaintenance?.id}" ></g:select> |
---|
128 | </td> |
---|
129 | </tr> |
---|
130 | |
---|
131 | <tr class="prop"> |
---|
132 | <td valign="top" class="name"> |
---|
133 | <label for="reasoning">Reasoning:</label> |
---|
134 | </td> |
---|
135 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> |
---|
136 | <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> |
---|
137 | </td> |
---|
138 | </tr> |
---|
139 | |
---|
140 | </tbody> |
---|
141 | </table> |
---|
142 | </div> |
---|
143 | <div class="buttons"> |
---|
144 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
145 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
146 | </div> |
---|
147 | </g:form> |
---|
148 | </div> |
---|
149 | </body> |
---|
150 | </html> |
---|