[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 AssetSubItemExtendedAttribute</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <h1>Edit Extended Attribute</h1> |
---|
| 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="${assetSubItemExtendedAttributeInstance}"> |
---|
| 18 | <div class="errors"> |
---|
| 19 | <g:renderErrors bean="${assetSubItemExtendedAttributeInstance}" as="list" /> |
---|
| 20 | </div> |
---|
| 21 | </g:hasErrors> |
---|
| 22 | <g:form method="post" > |
---|
| 23 | <input type="hidden" name="id" value="${assetSubItemExtendedAttributeInstance?.id}" /> |
---|
| 24 | <input type="hidden" name="version" value="${assetSubItemExtendedAttributeInstance?.version}" /> |
---|
| 25 | <div class="dialog"> |
---|
| 26 | <table> |
---|
| 27 | <tbody> |
---|
| 28 | |
---|
| 29 | <tr class="prop"> |
---|
| 30 | <td valign="top" class="name"> |
---|
| 31 | <label for="value">Value:</label> |
---|
| 32 | </td> |
---|
| 33 | <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'value','errors')}"> |
---|
| 34 | <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetSubItemExtendedAttributeInstance,field:'value')}"/> |
---|
| 35 | </td> |
---|
| 36 | </tr> |
---|
| 37 | |
---|
| 38 | <tr class="prop"> |
---|
| 39 | <td valign="top" class="name"> |
---|
| 40 | <label for="isActive">Is Active:</label> |
---|
| 41 | </td> |
---|
| 42 | <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'isActive','errors')}"> |
---|
| 43 | <g:checkBox name="isActive" value="${assetSubItemExtendedAttributeInstance?.isActive}" ></g:checkBox> |
---|
| 44 | </td> |
---|
| 45 | </tr> |
---|
| 46 | |
---|
| 47 | <tr class="prop"> |
---|
| 48 | <td valign="top" class="name"> |
---|
| 49 | <label for="assetSubItem">Asset Sub Item:</label> |
---|
| 50 | </td> |
---|
| 51 | <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'assetSubItem','errors')}"> |
---|
| 52 | <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${assetSubItemExtendedAttributeInstance?.assetSubItem?.id}" ></g:select> |
---|
| 53 | </td> |
---|
| 54 | </tr> |
---|
| 55 | |
---|
| 56 | <tr class="prop"> |
---|
| 57 | <td valign="top" class="name"> |
---|
| 58 | <label for="extendedAttributeType">Extended Attribute Type:</label> |
---|
| 59 | </td> |
---|
| 60 | <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'extendedAttributeType','errors')}"> |
---|
| 61 | <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${assetSubItemExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select> |
---|
| 62 | </td> |
---|
| 63 | </tr> |
---|
| 64 | |
---|
| 65 | </tbody> |
---|
| 66 | </table> |
---|
| 67 | </div> |
---|
| 68 | <div class="buttons"> |
---|
| 69 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
[388] | 70 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
[274] | 71 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 72 | </div> |
---|
| 73 | </g:form> |
---|
| 74 | </div> |
---|
| 75 | </body> |
---|
| 76 | </html> |
---|