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