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