[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" /> |
---|
| 7 | <title>Create SystemSection</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <span class="menuButton"><g:link class="list" action="list">SystemSection List</g:link></span> |
---|
| 12 | </div> |
---|
| 13 | <div class="body"> |
---|
| 14 | <h1>Create SystemSection</h1> |
---|
| 15 | <g:if test="${flash.message}"> |
---|
| 16 | <div class="message">${flash.message}</div> |
---|
| 17 | </g:if> |
---|
| 18 | <g:hasErrors bean="${systemSectionInstance}"> |
---|
| 19 | <div class="errors"> |
---|
| 20 | <g:renderErrors bean="${systemSectionInstance}" as="list" /> |
---|
| 21 | </div> |
---|
| 22 | </g:hasErrors> |
---|
| 23 | <g:form action="save" method="post" > |
---|
| 24 | <div class="dialog"> |
---|
| 25 | <table> |
---|
| 26 | <tbody> |
---|
| 27 | |
---|
| 28 | <tr class="prop"> |
---|
| 29 | <td valign="top" class="name"> |
---|
[162] | 30 | <label for="name">Name:</label> |
---|
| 31 | </td> |
---|
| 32 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}"> |
---|
| 33 | <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/> |
---|
| 34 | </td> |
---|
| 35 | </tr> |
---|
| 36 | |
---|
| 37 | <tr class="prop"> |
---|
| 38 | <td valign="top" class="name"> |
---|
[118] | 39 | <label for="description">Description:</label> |
---|
| 40 | </td> |
---|
| 41 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}"> |
---|
| 42 | <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/> |
---|
| 43 | </td> |
---|
[162] | 44 | </tr> |
---|
[118] | 45 | |
---|
| 46 | <tr class="prop"> |
---|
| 47 | <td valign="top" class="name"> |
---|
[162] | 48 | <label for="costCode">Cost Code:</label> |
---|
[118] | 49 | </td> |
---|
[162] | 50 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}"> |
---|
| 51 | <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/> |
---|
[118] | 52 | </td> |
---|
| 53 | </tr> |
---|
| 54 | |
---|
| 55 | <tr class="prop"> |
---|
| 56 | <td valign="top" class="name"> |
---|
[162] | 57 | <label for="department">Department:</label> |
---|
[118] | 58 | </td> |
---|
[162] | 59 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}"> |
---|
| 60 | <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select> |
---|
[118] | 61 | </td> |
---|
| 62 | </tr> |
---|
| 63 | |
---|
[122] | 64 | <tr class="prop"> |
---|
| 65 | <td valign="top" class="name"> |
---|
| 66 | <label for="site">Site:</label> |
---|
| 67 | </td> |
---|
| 68 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}"> |
---|
| 69 | <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select> |
---|
| 70 | </td> |
---|
| 71 | </tr> |
---|
| 72 | |
---|
[162] | 73 | <tr class="prop"> |
---|
| 74 | <td valign="top" class="name"> |
---|
| 75 | <label for="isActive">Is Active:</label> |
---|
| 76 | </td> |
---|
| 77 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}"> |
---|
| 78 | <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox> |
---|
| 79 | </td> |
---|
| 80 | </tr> |
---|
| 81 | |
---|
[118] | 82 | </tbody> |
---|
| 83 | </table> |
---|
| 84 | </div> |
---|
| 85 | <div class="buttons"> |
---|
| 86 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 87 | </div> |
---|
| 88 | </g:form> |
---|
| 89 | </div> |
---|
| 90 | </body> |
---|
| 91 | </html> |
---|