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"> |
---|
11 | <h1>Edit Extended Attribute</h1> |
---|
12 | </div> |
---|
13 | <div class="body"> |
---|
14 | <g:render template="/shared/messages" /> |
---|
15 | <g:hasErrors bean="${assetExtendedAttributeInstance}"> |
---|
16 | <div class="errors"> |
---|
17 | <g:renderErrors bean="${assetExtendedAttributeInstance}" as="list" /> |
---|
18 | </div> |
---|
19 | </g:hasErrors> |
---|
20 | <g:form method="post" > |
---|
21 | <input type="hidden" name="id" value="${assetExtendedAttributeInstance?.id}" /> |
---|
22 | <input type="hidden" name="version" value="${assetExtendedAttributeInstance?.version}" /> |
---|
23 | <div class="dialog"> |
---|
24 | <table> |
---|
25 | <tbody> |
---|
26 | |
---|
27 | <tr class="prop"> |
---|
28 | <td valign="top" class="name"> |
---|
29 | <label for="value">Value:</label> |
---|
30 | </td> |
---|
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')}"/> |
---|
33 | </td> |
---|
34 | </tr> |
---|
35 | |
---|
36 | <tr class="prop"> |
---|
37 | <td valign="top" class="name"> |
---|
38 | <label for="isActive">Is Active:</label> |
---|
39 | </td> |
---|
40 | <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'isActive','errors')}"> |
---|
41 | <g:checkBox name="isActive" value="${assetExtendedAttributeInstance?.isActive}" ></g:checkBox> |
---|
42 | </td> |
---|
43 | </tr> |
---|
44 | |
---|
45 | <tr class="prop"> |
---|
46 | <td valign="top" class="name"> |
---|
47 | <label for="asset">Asset:</label> |
---|
48 | </td> |
---|
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> |
---|
51 | </td> |
---|
52 | </tr> |
---|
53 | |
---|
54 | <tr class="prop"> |
---|
55 | <td valign="top" class="name"> |
---|
56 | <label for="extendedAttributeType">Extended Attribute Type:</label> |
---|
57 | </td> |
---|
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> |
---|
60 | </td> |
---|
61 | </tr> |
---|
62 | |
---|
63 | </tbody> |
---|
64 | </table> |
---|
65 | </div> |
---|
66 | <div class="buttons"> |
---|
67 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
68 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
69 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
70 | </div> |
---|
71 | </g:form> |
---|
72 | </div> |
---|
73 | </body> |
---|
74 | </html> |
---|