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