[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')}"> |
---|
[330] | 54 | <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetSubItemInstance,field:'name')}"/> |
---|
[274] | 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')}"> |
---|
[330] | 63 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:assetSubItemInstance,field:'description')}"/> |
---|
[274] | 64 | </td> |
---|
| 65 | </tr> |
---|
[330] | 66 | |
---|
| 67 | <tr class="prop"> |
---|
| 68 | <td valign="top" class="name"> |
---|
| 69 | <label for="comment">Comment:</label> |
---|
| 70 | </td> |
---|
| 71 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'comment','errors')}"> |
---|
| 72 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:assetSubItemInstance, field:'comment')}</textarea> |
---|
| 73 | </td> |
---|
| 74 | </tr> |
---|
[274] | 75 | |
---|
| 76 | </tbody> |
---|
| 77 | </table> |
---|
| 78 | </div> |
---|
| 79 | <div class="buttons"> |
---|
| 80 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 81 | </div> |
---|
| 82 | </g:form> |
---|
| 83 | </div> |
---|
| 84 | </body> |
---|
| 85 | </html> |
---|