[122] | 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 AssetExtendedAttribute</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[293] | 11 | <h1>Edit Extended Attribute</h1> |
---|
[122] | 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="${assetExtendedAttributeInstance}"> |
---|
| 18 | <div class="errors"> |
---|
| 19 | <g:renderErrors bean="${assetExtendedAttributeInstance}" as="list" /> |
---|
| 20 | </div> |
---|
| 21 | </g:hasErrors> |
---|
| 22 | <g:form method="post" > |
---|
| 23 | <input type="hidden" name="id" value="${assetExtendedAttributeInstance?.id}" /> |
---|
| 24 | <input type="hidden" name="version" value="${assetExtendedAttributeInstance?.version}" /> |
---|
| 25 | <div class="dialog"> |
---|
| 26 | <table> |
---|
| 27 | <tbody> |
---|
| 28 | |
---|
| 29 | <tr class="prop"> |
---|
| 30 | <td valign="top" class="name"> |
---|
[292] | 31 | <label for="value">Value:</label> |
---|
[122] | 32 | </td> |
---|
[292] | 33 | <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}"> |
---|
| 34 | <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/> |
---|
[122] | 35 | </td> |
---|
| 36 | </tr> |
---|
| 37 | |
---|
| 38 | <tr class="prop"> |
---|
| 39 | <td valign="top" class="name"> |
---|
[292] | 40 | <label for="isActive">Is Active:</label> |
---|
[122] | 41 | </td> |
---|
[292] | 42 | <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'isActive','errors')}"> |
---|
| 43 | <g:checkBox name="isActive" value="${assetExtendedAttributeInstance?.isActive}" ></g:checkBox> |
---|
[122] | 44 | </td> |
---|
| 45 | </tr> |
---|
| 46 | |
---|
| 47 | <tr class="prop"> |
---|
| 48 | <td valign="top" class="name"> |
---|
[292] | 49 | <label for="asset">Asset:</label> |
---|
[122] | 50 | </td> |
---|
[292] | 51 | <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> |
---|
| 52 | <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> |
---|
[122] | 53 | </td> |
---|
| 54 | </tr> |
---|
| 55 | |
---|
| 56 | <tr class="prop"> |
---|
| 57 | <td valign="top" class="name"> |
---|
[292] | 58 | <label for="extendedAttributeType">Extended Attribute Type:</label> |
---|
[122] | 59 | </td> |
---|
[292] | 60 | <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'extendedAttributeType','errors')}"> |
---|
| 61 | <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${assetExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select> |
---|
[122] | 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> |
---|
[122] | 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> |
---|