Last change
on this file since 956 was
663,
checked in by gav, 14 years ago
|
Improvements to AssetSubItemExtendedAttribute creation work flow.
|
File size:
3.0 KB
|
Rev | Line | |
---|
[274] | 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 AssetSubItemExtendedAttribute</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <h1>Create Extended Attribute</h1> |
---|
| 12 | </div> |
---|
| 13 | <div class="body"> |
---|
[413] | 14 | <g:render template="/shared/messages" /> |
---|
[274] | 15 | <g:hasErrors bean="${assetSubItemExtendedAttributeInstance}"> |
---|
| 16 | <div class="errors"> |
---|
| 17 | <g:renderErrors bean="${assetSubItemExtendedAttributeInstance}" as="list" /> |
---|
| 18 | </div> |
---|
| 19 | </g:hasErrors> |
---|
| 20 | <g:form action="save" method="post" > |
---|
| 21 | <div class="dialog"> |
---|
| 22 | <table> |
---|
| 23 | <tbody> |
---|
[663] | 24 | |
---|
| 25 | <tr class="prop"> |
---|
| 26 | <td valign="top" class="name"> |
---|
| 27 | <label for="asset">Asset Sub Item:</label> |
---|
| 28 | </td> |
---|
| 29 | |
---|
| 30 | <td valign="top" class="value"> |
---|
| 31 | <g:link controller="assetSubItemDetailed" action="show" id="${assetSubItemExtendedAttributeInstance?.assetSubItem?.id}"> |
---|
| 32 | <g:hiddenField name="assetSubItem.id" value="${assetSubItemExtendedAttributeInstance?.assetSubItem.id}" /> |
---|
| 33 | ${assetSubItemExtendedAttributeInstance?.assetSubItem?.encodeAsHTML()} |
---|
| 34 | </g:link> |
---|
| 35 | </td> |
---|
| 36 | </tr> |
---|
[274] | 37 | |
---|
| 38 | <tr class="prop"> |
---|
| 39 | <td valign="top" class="name"> |
---|
[663] | 40 | <g:select optionKey="id" |
---|
| 41 | from="${ExtendedAttributeType.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
| 42 | name="extendedAttributeType.id" |
---|
| 43 | value="${assetSubItemExtendedAttributeInstance?.extendedAttributeType?.id}" > |
---|
| 44 | </g:select> |
---|
| 45 | |
---|
[274] | 46 | </td> |
---|
| 47 | <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'value','errors')}"> |
---|
| 48 | <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetSubItemExtendedAttributeInstance,field:'value')}"/> |
---|
| 49 | </td> |
---|
| 50 | </tr> |
---|
| 51 | |
---|
| 52 | </tbody> |
---|
| 53 | </table> |
---|
| 54 | </div> |
---|
| 55 | <div class="buttons"> |
---|
| 56 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 57 | </div> |
---|
| 58 | </g:form> |
---|
| 59 | </div> |
---|
| 60 | </body> |
---|
| 61 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.