[118] | 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>Edit ComponentItem</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[151] | 11 | <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> |
---|
[118] | 12 | <span class="menuButton"><g:link class="list" action="list">ComponentItem List</g:link></span> |
---|
| 13 | <span class="menuButton"><g:link class="create" action="create">New ComponentItem</g:link></span> |
---|
| 14 | </div> |
---|
| 15 | <div class="body"> |
---|
| 16 | <h1>Edit ComponentItem</h1> |
---|
| 17 | <g:if test="${flash.message}"> |
---|
| 18 | <div class="message">${flash.message}</div> |
---|
| 19 | </g:if> |
---|
| 20 | <g:hasErrors bean="${componentItemInstance}"> |
---|
| 21 | <div class="errors"> |
---|
| 22 | <g:renderErrors bean="${componentItemInstance}" as="list" /> |
---|
| 23 | </div> |
---|
| 24 | </g:hasErrors> |
---|
| 25 | <g:form method="post" > |
---|
| 26 | <input type="hidden" name="id" value="${componentItemInstance?.id}" /> |
---|
| 27 | <input type="hidden" name="version" value="${componentItemInstance?.version}" /> |
---|
| 28 | <div class="dialog"> |
---|
| 29 | <table> |
---|
| 30 | <tbody> |
---|
| 31 | |
---|
| 32 | <tr class="prop"> |
---|
| 33 | <td valign="top" class="name"> |
---|
| 34 | <label for="description">Description:</label> |
---|
| 35 | </td> |
---|
| 36 | <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'description','errors')}"> |
---|
| 37 | <input type="text" id="description" name="description" value="${fieldValue(bean:componentItemInstance,field:'description')}"/> |
---|
| 38 | </td> |
---|
| 39 | </tr> |
---|
| 40 | |
---|
| 41 | <tr class="prop"> |
---|
| 42 | <td valign="top" class="name"> |
---|
| 43 | <label for="isActive">Is Active:</label> |
---|
| 44 | </td> |
---|
| 45 | <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'isActive','errors')}"> |
---|
| 46 | <g:checkBox name="isActive" value="${componentItemInstance?.isActive}" ></g:checkBox> |
---|
| 47 | </td> |
---|
| 48 | </tr> |
---|
| 49 | |
---|
| 50 | <tr class="prop"> |
---|
| 51 | <td valign="top" class="name"> |
---|
[122] | 52 | <label for="maintenanceActions">Maintenance Actions:</label> |
---|
[118] | 53 | </td> |
---|
[122] | 54 | <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'maintenanceActions','errors')}"> |
---|
| 55 | |
---|
| 56 | <ul> |
---|
| 57 | <g:each var="m" in="${componentItemInstance?.maintenanceActions?}"> |
---|
| 58 | <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
| 59 | </g:each> |
---|
| 60 | </ul> |
---|
| 61 | <g:link controller="maintenanceAction" params="['componentItem.id':componentItemInstance?.id]" action="create">Add MaintenanceAction</g:link> |
---|
| 62 | |
---|
[118] | 63 | </td> |
---|
| 64 | </tr> |
---|
| 65 | |
---|
| 66 | <tr class="prop"> |
---|
| 67 | <td valign="top" class="name"> |
---|
| 68 | <label for="name">Name:</label> |
---|
| 69 | </td> |
---|
| 70 | <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'name','errors')}"> |
---|
| 71 | <input type="text" id="name" name="name" value="${fieldValue(bean:componentItemInstance,field:'name')}"/> |
---|
| 72 | </td> |
---|
| 73 | </tr> |
---|
| 74 | |
---|
| 75 | <tr class="prop"> |
---|
| 76 | <td valign="top" class="name"> |
---|
[131] | 77 | <label for="subAssembly">Sub Assembly:</label> |
---|
[118] | 78 | </td> |
---|
[131] | 79 | <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'subAssembly','errors')}"> |
---|
| 80 | <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${componentItemInstance?.subAssembly?.id}" ></g:select> |
---|
[118] | 81 | </td> |
---|
| 82 | </tr> |
---|
| 83 | |
---|
| 84 | </tbody> |
---|
| 85 | </table> |
---|
| 86 | </div> |
---|
| 87 | <div class="buttons"> |
---|
| 88 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 89 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 90 | </div> |
---|
| 91 | </g:form> |
---|
| 92 | </div> |
---|
| 93 | </body> |
---|
| 94 | </html> |
---|