[441] | 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>Edit CostCode</title> |
---|
| 8 | <nav:resources override="true"/> |
---|
| 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
| 12 | <nav:renderSubItems group="navAlt"/> |
---|
| 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <g:render template="/shared/messages" /> |
---|
| 16 | <g:hasErrors bean="${costCodeInstance}"> |
---|
| 17 | <div class="errors"> |
---|
| 18 | <g:renderErrors bean="${costCodeInstance}" as="list" /> |
---|
| 19 | </div> |
---|
| 20 | </g:hasErrors> |
---|
| 21 | <g:form method="post" > |
---|
| 22 | <input type="hidden" name="id" value="${costCodeInstance?.id}" /> |
---|
| 23 | <input type="hidden" name="version" value="${costCodeInstance?.version}" /> |
---|
| 24 | <div class="dialog"> |
---|
| 25 | <table> |
---|
| 26 | <tbody> |
---|
| 27 | |
---|
| 28 | <tr class="prop"> |
---|
| 29 | <td valign="top" class="name"> |
---|
| 30 | <label for="name">Name:</label> |
---|
| 31 | </td> |
---|
| 32 | <td valign="top" class="value ${hasErrors(bean:costCodeInstance,field:'name','errors')}"> |
---|
| 33 | <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:costCodeInstance,field:'name')}"/> |
---|
| 34 | </td> |
---|
| 35 | </tr> |
---|
| 36 | |
---|
| 37 | <tr class="prop"> |
---|
| 38 | <td valign="top" class="name"> |
---|
| 39 | <label for="description">Description:</label> |
---|
| 40 | </td> |
---|
| 41 | <td valign="top" class="value ${hasErrors(bean:costCodeInstance,field:'description','errors')}"> |
---|
| 42 | <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:costCodeInstance,field:'description')}"/> |
---|
| 43 | </td> |
---|
| 44 | </tr> |
---|
| 45 | |
---|
| 46 | <tr class="prop"> |
---|
| 47 | <td valign="top" class="name"> |
---|
| 48 | <label for="isActive">Is Active:</label> |
---|
| 49 | </td> |
---|
| 50 | <td valign="top" class="value ${hasErrors(bean:costCodeInstance,field:'isActive','errors')}"> |
---|
| 51 | <g:checkBox name="isActive" value="${costCodeInstance?.isActive}" ></g:checkBox> |
---|
| 52 | </td> |
---|
| 53 | </tr> |
---|
| 54 | |
---|
| 55 | </tbody> |
---|
| 56 | </table> |
---|
| 57 | </div> |
---|
| 58 | <div class="buttons"> |
---|
| 59 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 60 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
| 61 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 62 | </div> |
---|
| 63 | </g:form> |
---|
| 64 | </div> |
---|
| 65 | </body> |
---|
| 66 | </html> |
---|