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