[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 AssetSubItem</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <h1>Create Sub Item</h1> |
---|
| 12 | </div> |
---|
| 13 | <div class="body"> |
---|
[285] | 14 | <g:render template="/shared/messages" /> |
---|
[274] | 15 | <g:hasErrors bean="${assetSubItemInstance}"> |
---|
| 16 | <div class="errors"> |
---|
| 17 | <g:renderErrors bean="${assetSubItemInstance}" as="list" /> |
---|
| 18 | </div> |
---|
| 19 | </g:hasErrors> |
---|
| 20 | <g:form action="save" method="post" > |
---|
| 21 | <div class="dialog"> |
---|
| 22 | <table> |
---|
| 23 | <tbody> |
---|
| 24 | |
---|
| 25 | <g:if test="${assetSubItemInstance?.parentItem}" > |
---|
| 26 | <g:hiddenField name="parentItem.id" value="${assetSubItemInstance.parentItem.id}" /> |
---|
| 27 | <tr class="prop"> |
---|
| 28 | <td valign="top" class="name"> |
---|
[285] | 29 | <label for="parentItem">Parent Item:</label> |
---|
[274] | 30 | </td> |
---|
| 31 | <td valign="top" class="value"> |
---|
| 32 | ${assetSubItemInstance.parentItem.encodeAsHTML()} |
---|
| 33 | </td> |
---|
| 34 | </tr> |
---|
| 35 | </g:if> |
---|
[285] | 36 | |
---|
| 37 | <g:if test="${assetInstance}" > |
---|
| 38 | <g:hiddenField name="asset.id" value="${assetInstance.id}" /> |
---|
| 39 | <tr class="prop"> |
---|
| 40 | <td valign="top" class="name"> |
---|
| 41 | <label for="asset">Link with Asset:</label> |
---|
| 42 | </td> |
---|
| 43 | <td valign="top" class="value"> |
---|
| 44 | ${assetInstance.encodeAsHTML()} |
---|
| 45 | </td> |
---|
| 46 | </tr> |
---|
| 47 | </g:if> |
---|
[274] | 48 | |
---|
| 49 | <tr class="prop"> |
---|
| 50 | <td valign="top" class="name"> |
---|
| 51 | <label for="name">Name:</label> |
---|
| 52 | </td> |
---|
| 53 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'name','errors')}"> |
---|
| 54 | <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetSubItemInstance,field:'name')}"/> |
---|
| 55 | </td> |
---|
| 56 | </tr> |
---|
| 57 | |
---|
| 58 | <tr class="prop"> |
---|
| 59 | <td valign="top" class="name"> |
---|
| 60 | <label for="description">Description:</label> |
---|
| 61 | </td> |
---|
| 62 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'description','errors')}"> |
---|
| 63 | <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetSubItemInstance,field:'description')}"/> |
---|
| 64 | </td> |
---|
| 65 | </tr> |
---|
| 66 | |
---|
| 67 | </tbody> |
---|
| 68 | </table> |
---|
| 69 | </div> |
---|
| 70 | <div class="buttons"> |
---|
| 71 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 72 | </div> |
---|
| 73 | </g:form> |
---|
| 74 | </div> |
---|
| 75 | </body> |
---|
| 76 | </html> |
---|