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 | <h1>Create 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 action="save" method="post" > |
---|
23 | <div class="dialog"> |
---|
24 | <table> |
---|
25 | <tbody> |
---|
26 | |
---|
27 | <tr class="prop"> |
---|
28 | <td valign="top" class="name"> |
---|
29 | <label for="section">Section:</label> |
---|
30 | </td> |
---|
31 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'section','errors')}"> |
---|
32 | <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${maintenanceActionInstance?.section?.id}" noSelection="['null':'']"></g:select> |
---|
33 | </td> |
---|
34 | </tr> |
---|
35 | |
---|
36 | <tr class="prop"> |
---|
37 | <td valign="top" class="name"> |
---|
38 | <label for="asset">Asset:</label> |
---|
39 | </td> |
---|
40 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'asset','errors')}"> |
---|
41 | <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${maintenanceActionInstance?.asset?.id}" noSelection="['null':'']"></g:select> |
---|
42 | </td> |
---|
43 | </tr> |
---|
44 | |
---|
45 | <tr class="prop"> |
---|
46 | <td valign="top" class="name"> |
---|
47 | <label for="assetSubItem">Asset Sub Item:</label> |
---|
48 | </td> |
---|
49 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetSubItem','errors')}"> |
---|
50 | <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${maintenanceActionInstance?.assetSubItem?.id}" noSelection="['null':'']"></g:select> |
---|
51 | </td> |
---|
52 | </tr> |
---|
53 | |
---|
54 | <tr class="prop"> |
---|
55 | <td valign="top" class="name"> |
---|
56 | <label for="maintenancePolicy">Maintenance Policy:</label> |
---|
57 | </td> |
---|
58 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> |
---|
59 | <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> |
---|
60 | </td> |
---|
61 | </tr> |
---|
62 | |
---|
63 | <tr class="prop"> |
---|
64 | <td valign="top" class="name"> |
---|
65 | <label for="procedureStepNumber">Procedure Step Number:</label> |
---|
66 | </td> |
---|
67 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'procedureStepNumber','errors')}"> |
---|
68 | <input type="text" id="procedureStepNumber" name="procedureStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'procedureStepNumber')}" /> |
---|
69 | </td> |
---|
70 | </tr> |
---|
71 | |
---|
72 | <tr class="prop"> |
---|
73 | <td valign="top" class="name"> |
---|
74 | <label for="description">Description:</label> |
---|
75 | </td> |
---|
76 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'description','errors')}"> |
---|
77 | <input type="text" id="description" name="description" value="${fieldValue(bean:maintenanceActionInstance,field:'description')}"/> |
---|
78 | </td> |
---|
79 | </tr> |
---|
80 | |
---|
81 | <tr class="prop"> |
---|
82 | <td valign="top" class="name"> |
---|
83 | <label for="reasoning">Reasoning:</label> |
---|
84 | </td> |
---|
85 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> |
---|
86 | <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> |
---|
87 | </td> |
---|
88 | </tr> |
---|
89 | |
---|
90 | <tr class="prop"> |
---|
91 | <td valign="top" class="name"> |
---|
92 | <label for="isActive">Is Active:</label> |
---|
93 | </td> |
---|
94 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}"> |
---|
95 | <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox> |
---|
96 | </td> |
---|
97 | </tr> |
---|
98 | |
---|
99 | <tr class="prop"> |
---|
100 | <td valign="top" class="name"> |
---|
101 | <label for="taskProcedure">Task Procedure:</label> |
---|
102 | </td> |
---|
103 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'taskProcedure','errors')}"> |
---|
104 | <g:select optionKey="id" from="${TaskProcedure.list()}" name="taskProcedure.id" value="${maintenanceActionInstance?.taskProcedure?.id}" ></g:select> |
---|
105 | <p><g:link controller="taskProcedureDetailed" action="create">Add Task Procedure</g:link></p> |
---|
106 | </td> |
---|
107 | </tr> |
---|
108 | |
---|
109 | </tbody> |
---|
110 | </table> |
---|
111 | </div> |
---|
112 | <div class="buttons"> |
---|
113 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
114 | </div> |
---|
115 | </g:form> |
---|
116 | </div> |
---|
117 | </body> |
---|
118 | </html> |
---|