[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')}"> |
---|
[330] | 32 | <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetSubItemInstance,field:'name')}"/> |
---|
[274] | 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')}"> |
---|
[330] | 41 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:assetSubItemInstance,field:'description')}"/> |
---|
[274] | 42 | </td> |
---|
[330] | 43 | </tr> |
---|
| 44 | |
---|
| 45 | <tr class="prop"> |
---|
| 46 | <td valign="top" class="name"> |
---|
| 47 | <label for="comment">Comment:</label> |
---|
| 48 | </td> |
---|
| 49 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'comment','errors')}"> |
---|
| 50 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:assetSubItemInstance, field:'comment')}</textarea> |
---|
| 51 | </td> |
---|
[274] | 52 | </tr> |
---|
| 53 | |
---|
| 54 | <tr class="prop"> |
---|
| 55 | <td valign="top" class="name"> |
---|
| 56 | <label for="isActive">Is Active:</label> |
---|
| 57 | </td> |
---|
| 58 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'isActive','errors')}"> |
---|
| 59 | <g:checkBox name="isActive" value="${assetSubItemInstance?.isActive}" ></g:checkBox> |
---|
| 60 | </td> |
---|
| 61 | </tr> |
---|
| 62 | |
---|
| 63 | <tr class="prop"> |
---|
| 64 | <td valign="top" class="name"> |
---|
| 65 | <label for="assetSubItemExtendedAttributes">Asset Sub Item Extended Attributes:</label> |
---|
| 66 | </td> |
---|
| 67 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'assetSubItemExtendedAttributes','errors')}"> |
---|
| 68 | |
---|
| 69 | <ul> |
---|
| 70 | <g:each var="a" in="${assetSubItemInstance?.assetSubItemExtendedAttributes?}"> |
---|
| 71 | <li><g:link controller="assetSubItemExtendedAttributeDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
| 72 | </g:each> |
---|
| 73 | </ul> |
---|
| 74 | <g:link controller="assetSubItemExtendedAttributeDetailed" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add AssetSubItemExtendedAttribute</g:link> |
---|
| 75 | |
---|
| 76 | </td> |
---|
[276] | 77 | </tr> |
---|
[274] | 78 | |
---|
| 79 | <tr class="prop"> |
---|
[276] | 80 | |
---|
| 81 | <tr class="prop"> |
---|
[274] | 82 | <td valign="top" class="name"> |
---|
| 83 | <label for="maintenanceActions">Maintenance Actions:</label> |
---|
| 84 | </td> |
---|
| 85 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'maintenanceActions','errors')}"> |
---|
| 86 | |
---|
| 87 | <ul> |
---|
| 88 | <g:each var="m" in="${assetSubItemInstance?.maintenanceActions?}"> |
---|
| 89 | <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
| 90 | </g:each> |
---|
| 91 | </ul> |
---|
| 92 | <g:link controller="maintenanceActionDetailed" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add MaintenanceAction</g:link> |
---|
| 93 | |
---|
| 94 | </td> |
---|
[285] | 95 | </tr> |
---|
[274] | 96 | |
---|
| 97 | <tr class="prop"> |
---|
| 98 | <td valign="top" class="name"> |
---|
[285] | 99 | <label for="parentItem">Parent Item:</label> |
---|
| 100 | </td> |
---|
| 101 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'parentItem','errors')}"> |
---|
| 102 | <g:select optionKey="id" from="${AssetSubItem.list()}" name="parentItem.id" value="${assetSubItemInstance?.parentItem?.id}" noSelection="['null':'']"></g:select> |
---|
| 103 | </td> |
---|
| 104 | </tr> |
---|
| 105 | |
---|
| 106 | <tr class="prop"> |
---|
| 107 | <td valign="top" class="name">Assets:</td> |
---|
| 108 | |
---|
| 109 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 110 | <ul> |
---|
| 111 | <g:each var="a" in="${assetSubItemInstance.assets}"> |
---|
| 112 | <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
| 113 | </g:each> |
---|
| 114 | </ul> |
---|
| 115 | </td> |
---|
| 116 | |
---|
| 117 | </tr> |
---|
| 118 | |
---|
| 119 | <tr class="prop"> |
---|
| 120 | <td valign="top" class="name"> |
---|
[274] | 121 | <label for="subItems">Sub Items:</label> |
---|
| 122 | </td> |
---|
| 123 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'subItems','errors')}"> |
---|
| 124 | |
---|
| 125 | <ul> |
---|
| 126 | <g:each var="s" in="${assetSubItemInstance?.subItems?}"> |
---|
| 127 | <li><g:link controller="assetSubItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
| 128 | </g:each> |
---|
| 129 | </ul> |
---|
[285] | 130 | <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItemInstance?.id]" action="create">Add AssetSubItem</g:link> |
---|
[274] | 131 | |
---|
| 132 | </td> |
---|
| 133 | </tr> |
---|
| 134 | |
---|
| 135 | </tbody> |
---|
| 136 | </table> |
---|
| 137 | </div> |
---|
| 138 | <div class="buttons"> |
---|
| 139 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 140 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 141 | </div> |
---|
| 142 | </g:form> |
---|
| 143 | </div> |
---|
| 144 | </body> |
---|
| 145 | </html> |
---|