Last change
on this file since 796 was
662,
checked in by gav, 14 years ago
|
Removed unneeded hidden field in AssetExtendedAttribute create view.
|
File size:
2.9 KB
|
Rev | Line | |
---|
[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"> |
---|
[413] | 14 | <g:render template="/shared/messages" /> |
---|
[122] | 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"> |
---|
[292] | 27 | <label for="asset">Asset:</label> |
---|
[122] | 28 | </td> |
---|
[656] | 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> |
---|
[122] | 35 | </td> |
---|
[656] | 36 | </tr> |
---|
| 37 | |
---|
[122] | 38 | <tr class="prop"> |
---|
| 39 | <td valign="top" class="name"> |
---|
[656] | 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> |
---|
[122] | 45 | </td> |
---|
[656] | 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')}"/> |
---|
[122] | 48 | </td> |
---|
[656] | 49 | </tr> |
---|
[122] | 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.