[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" /> |
---|
[268] | 7 | <title>Edit AssetSubItem</title> |
---|
[118] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[268] | 11 | <span class="menuButton"><g:link class="list" action="list">AssetSubItem List</g:link></span> |
---|
| 12 | <span class="menuButton"><g:link class="create" action="create">New AssetSubItem</g:link></span> |
---|
[118] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
[268] | 15 | <h1>Edit AssetSubItem</h1> |
---|
[118] | 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
[268] | 19 | <g:hasErrors bean="${assetSubItemInstance}"> |
---|
[118] | 20 | <div class="errors"> |
---|
[268] | 21 | <g:renderErrors bean="${assetSubItemInstance}" as="list" /> |
---|
[118] | 22 | </div> |
---|
| 23 | </g:hasErrors> |
---|
| 24 | <g:form method="post" > |
---|
[268] | 25 | <input type="hidden" name="id" value="${assetSubItemInstance?.id}" /> |
---|
| 26 | <input type="hidden" name="version" value="${assetSubItemInstance?.version}" /> |
---|
[118] | 27 | <div class="dialog"> |
---|
| 28 | <table> |
---|
| 29 | <tbody> |
---|
| 30 | |
---|
| 31 | <tr class="prop"> |
---|
| 32 | <td valign="top" class="name"> |
---|
[268] | 33 | <label for="name">Name:</label> |
---|
[118] | 34 | </td> |
---|
[268] | 35 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'name','errors')}"> |
---|
| 36 | <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetSubItemInstance,field:'name')}"/> |
---|
[118] | 37 | </td> |
---|
| 38 | </tr> |
---|
| 39 | |
---|
| 40 | <tr class="prop"> |
---|
| 41 | <td valign="top" class="name"> |
---|
[268] | 42 | <label for="description">Description:</label> |
---|
[118] | 43 | </td> |
---|
[268] | 44 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'description','errors')}"> |
---|
| 45 | <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetSubItemInstance,field:'description')}"/> |
---|
[118] | 46 | </td> |
---|
| 47 | </tr> |
---|
| 48 | |
---|
| 49 | <tr class="prop"> |
---|
| 50 | <td valign="top" class="name"> |
---|
[268] | 51 | <label for="isActive">Is Active:</label> |
---|
[160] | 52 | </td> |
---|
[268] | 53 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'isActive','errors')}"> |
---|
| 54 | <g:checkBox name="isActive" value="${assetSubItemInstance?.isActive}" ></g:checkBox> |
---|
[160] | 55 | </td> |
---|
| 56 | </tr> |
---|
| 57 | |
---|
| 58 | <tr class="prop"> |
---|
| 59 | <td valign="top" class="name"> |
---|
[268] | 60 | <label for="parentItem">Parent Item:</label> |
---|
[118] | 61 | </td> |
---|
[268] | 62 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'parentItem','errors')}"> |
---|
| 63 | <g:select optionKey="id" from="${AssetSubItem.list()}" name="parentItem.id" value="${assetSubItemInstance?.parentItem?.id}" noSelection="['null':'']"></g:select> |
---|
[118] | 64 | </td> |
---|
| 65 | </tr> |
---|
| 66 | |
---|
| 67 | <tr class="prop"> |
---|
| 68 | <td valign="top" class="name"> |
---|
[268] | 69 | <label for="assetSubItemExtendedAttributes">Asset Sub Item Extended Attributes:</label> |
---|
| 70 | </td> |
---|
| 71 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'assetSubItemExtendedAttributes','errors')}"> |
---|
| 72 | |
---|
| 73 | <ul> |
---|
| 74 | <g:each var="a" in="${assetSubItemInstance?.assetSubItemExtendedAttributes?}"> |
---|
| 75 | <li><g:link controller="assetSubItemExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
| 76 | </g:each> |
---|
| 77 | </ul> |
---|
| 78 | <g:link controller="assetSubItemExtendedAttribute" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add AssetSubItemExtendedAttribute</g:link> |
---|
| 79 | |
---|
| 80 | </td> |
---|
| 81 | </tr> |
---|
| 82 | |
---|
| 83 | <tr class="prop"> |
---|
| 84 | <td valign="top" class="name"> |
---|
[280] | 85 | <label for="assets">Assets:</label> |
---|
| 86 | </td> |
---|
| 87 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'assets','errors')}"> |
---|
| 88 | |
---|
| 89 | </td> |
---|
| 90 | </tr> |
---|
| 91 | |
---|
| 92 | <tr class="prop"> |
---|
| 93 | <td valign="top" class="name"> |
---|
[122] | 94 | <label for="maintenanceActions">Maintenance Actions:</label> |
---|
[118] | 95 | </td> |
---|
[268] | 96 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'maintenanceActions','errors')}"> |
---|
[122] | 97 | |
---|
| 98 | <ul> |
---|
[268] | 99 | <g:each var="m" in="${assetSubItemInstance?.maintenanceActions?}"> |
---|
[122] | 100 | <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
| 101 | </g:each> |
---|
| 102 | </ul> |
---|
[268] | 103 | <g:link controller="maintenanceAction" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add MaintenanceAction</g:link> |
---|
[122] | 104 | |
---|
[118] | 105 | </td> |
---|
| 106 | </tr> |
---|
| 107 | |
---|
| 108 | <tr class="prop"> |
---|
| 109 | <td valign="top" class="name"> |
---|
[268] | 110 | <label for="subItems">Sub Items:</label> |
---|
[118] | 111 | </td> |
---|
[268] | 112 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'subItems','errors')}"> |
---|
| 113 | |
---|
| 114 | <ul> |
---|
| 115 | <g:each var="s" in="${assetSubItemInstance?.subItems?}"> |
---|
| 116 | <li><g:link controller="assetSubItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
| 117 | </g:each> |
---|
| 118 | </ul> |
---|
| 119 | <g:link controller="assetSubItem" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add AssetSubItem</g:link> |
---|
| 120 | |
---|
[118] | 121 | </td> |
---|
| 122 | </tr> |
---|
| 123 | |
---|
| 124 | </tbody> |
---|
| 125 | </table> |
---|
| 126 | </div> |
---|
| 127 | <div class="buttons"> |
---|
| 128 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 129 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 130 | </div> |
---|
| 131 | </g:form> |
---|
| 132 | </div> |
---|
| 133 | </body> |
---|
| 134 | </html> |
---|