[118] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
[271] | 7 | <title>Create Asset</title> |
---|
[139] | 8 | <nav:resources override="true"/> |
---|
[118] | 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
[139] | 12 | <nav:renderSubItems group="nav"/> |
---|
[118] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
[349] | 15 | <g:render template="/shared/messages" /> |
---|
[118] | 16 | <g:hasErrors bean="${assetInstance}"> |
---|
| 17 | <div class="errors"> |
---|
| 18 | <g:renderErrors bean="${assetInstance}" as="list" /> |
---|
| 19 | </div> |
---|
| 20 | </g:hasErrors> |
---|
| 21 | <g:form action="save" method="post" > |
---|
| 22 | <div class="dialog"> |
---|
| 23 | <table> |
---|
| 24 | <tbody> |
---|
| 25 | |
---|
| 26 | <tr class="prop"> |
---|
| 27 | <td valign="top" class="name"> |
---|
[124] | 28 | <label for="name">Name:</label> |
---|
[118] | 29 | </td> |
---|
[124] | 30 | <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> |
---|
[329] | 31 | <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> |
---|
[118] | 32 | </td> |
---|
[271] | 33 | </tr> |
---|
[118] | 34 | |
---|
| 35 | <tr class="prop"> |
---|
| 36 | <td valign="top" class="name"> |
---|
[161] | 37 | <label for="description">Description:</label> |
---|
| 38 | </td> |
---|
| 39 | <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> |
---|
[329] | 40 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> |
---|
[161] | 41 | </td> |
---|
[271] | 42 | </tr> |
---|
[161] | 43 | |
---|
| 44 | <tr class="prop"> |
---|
| 45 | <td valign="top" class="name"> |
---|
[329] | 46 | <label for="comment">Comment:</label> |
---|
| 47 | </td> |
---|
| 48 | <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'comment','errors')}"> |
---|
| 49 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:assetInstance, field:'comment')}</textarea> |
---|
| 50 | </td> |
---|
| 51 | </tr> |
---|
| 52 | |
---|
| 53 | <tr class="prop"> |
---|
| 54 | <td valign="top" class="name"> |
---|
[271] | 55 | <label for="isActive">Is Active:</label> |
---|
[161] | 56 | </td> |
---|
[271] | 57 | <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'isActive','errors')}"> |
---|
| 58 | <g:checkBox name="isActive" value="${assetInstance?.isActive}" ></g:checkBox> |
---|
[161] | 59 | </td> |
---|
[271] | 60 | </tr> |
---|
[161] | 61 | |
---|
| 62 | <tr class="prop"> |
---|
| 63 | <td valign="top" class="name"> |
---|
[271] | 64 | <label for="section">Section:</label> |
---|
[118] | 65 | </td> |
---|
[271] | 66 | <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'section','errors')}"> |
---|
| 67 | <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${assetInstance?.section?.id}" ></g:select> |
---|
[118] | 68 | </td> |
---|
| 69 | </tr> |
---|
[271] | 70 | |
---|
[118] | 71 | </tbody> |
---|
| 72 | </table> |
---|
| 73 | </div> |
---|
| 74 | <div class="buttons"> |
---|
| 75 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 76 | </div> |
---|
| 77 | </g:form> |
---|
| 78 | </div> |
---|
| 79 | </body> |
---|
| 80 | </html> |
---|