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