[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" /> |
---|
[269] | 7 | <title>Create MaintenanceAction</title> |
---|
[133] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[368] | 11 | <h1>Create Maintenance Action</h1> |
---|
[133] | 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"> |
---|
[269] | 29 | <label for="section">Section:</label> |
---|
[133] | 30 | </td> |
---|
[269] | 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> |
---|
[133] | 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"> |
---|
[269] | 47 | <label for="assetSubItem">Asset Sub Item:</label> |
---|
[133] | 48 | </td> |
---|
[269] | 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> |
---|
[133] | 51 | </td> |
---|
| 52 | </tr> |
---|
| 53 | |
---|
| 54 | <tr class="prop"> |
---|
| 55 | <td valign="top" class="name"> |
---|
[269] | 56 | <label for="maintenancePolicy">Maintenance Policy:</label> |
---|
[133] | 57 | </td> |
---|
[269] | 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> |
---|
[133] | 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"> |
---|
[269] | 83 | <label for="reasoning">Reasoning:</label> |
---|
[133] | 84 | </td> |
---|
[269] | 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')}"/> |
---|
[133] | 87 | </td> |
---|
| 88 | </tr> |
---|
| 89 | |
---|
| 90 | <tr class="prop"> |
---|
| 91 | <td valign="top" class="name"> |
---|
| 92 | <label for="taskProcedure">Task Procedure:</label> |
---|
| 93 | </td> |
---|
| 94 | <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'taskProcedure','errors')}"> |
---|
| 95 | <g:select optionKey="id" from="${TaskProcedure.list()}" name="taskProcedure.id" value="${maintenanceActionInstance?.taskProcedure?.id}" ></g:select> |
---|
[410] | 96 | <p><g:link controller="taskProcedureDetailed" action="create">+Add Task Procedure</g:link></p> |
---|
[133] | 97 | </td> |
---|
[368] | 98 | </tr> |
---|
[133] | 99 | |
---|
| 100 | </tbody> |
---|
| 101 | </table> |
---|
| 102 | </div> |
---|
| 103 | <div class="buttons"> |
---|
| 104 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 105 | </div> |
---|
| 106 | </g:form> |
---|
| 107 | </div> |
---|
| 108 | </body> |
---|
| 109 | </html> |
---|