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