Last change
on this file since 913 was
662,
checked in by gav, 14 years ago
|
Removed unneeded hidden field in AssetExtendedAttribute create view.
|
File size:
2.9 KB
|
Line | |
---|
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>Create AssetExtendedAttribute</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <h1>Create 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 action="save" method="post" > |
---|
21 | <div class="dialog"> |
---|
22 | <table> |
---|
23 | <tbody> |
---|
24 | |
---|
25 | <tr class="prop"> |
---|
26 | <td valign="top" class="name"> |
---|
27 | <label for="asset">Asset:</label> |
---|
28 | </td> |
---|
29 | |
---|
30 | <td valign="top" class="value"> |
---|
31 | <g:link controller="assetDetailed" action="show" id="${assetExtendedAttributeInstance?.asset?.id}"> |
---|
32 | <g:hiddenField name="asset.id" value="${assetExtendedAttributeInstance?.asset.id}" /> |
---|
33 | ${assetExtendedAttributeInstance?.asset?.encodeAsHTML()} |
---|
34 | </g:link> |
---|
35 | </td> |
---|
36 | </tr> |
---|
37 | |
---|
38 | <tr class="prop"> |
---|
39 | <td valign="top" class="name"> |
---|
40 | <g:select optionKey="id" |
---|
41 | from="${ExtendedAttributeType.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
42 | name="extendedAttributeType.id" |
---|
43 | value="${assetExtendedAttributeInstance?.extendedAttributeType?.id}" > |
---|
44 | </g:select> |
---|
45 | </td> |
---|
46 | <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}"> |
---|
47 | <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/> |
---|
48 | </td> |
---|
49 | </tr> |
---|
50 | |
---|
51 | </tbody> |
---|
52 | </table> |
---|
53 | </div> |
---|
54 | <div class="buttons"> |
---|
55 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
56 | </div> |
---|
57 | </g:form> |
---|
58 | </div> |
---|
59 | </body> |
---|
60 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.