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