| [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" /> |
|---|
| [273] | 7 | <title>Create Section</title> |
|---|
| [385] | 8 | <nav:resources override="true"/> |
|---|
| [118] | 9 | </head> |
|---|
| 10 | <body> |
|---|
| 11 | <div class="nav"> |
|---|
| [385] | 12 | <nav:renderSubItems group="navAlt"/> |
|---|
| [118] | 13 | </div> |
|---|
| 14 | <div class="body"> |
|---|
| [355] | 15 | <g:render template="/shared/messages" /> |
|---|
| [273] | 16 | <g:hasErrors bean="${sectionInstance}"> |
|---|
| [118] | 17 | <div class="errors"> |
|---|
| [273] | 18 | <g:renderErrors bean="${sectionInstance}" as="list" /> |
|---|
| [118] | 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"> |
|---|
| [162] | 28 | <label for="name">Name:</label> |
|---|
| 29 | </td> |
|---|
| [273] | 30 | <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'name','errors')}"> |
|---|
| [331] | 31 | <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:sectionInstance,field:'name')}"/> |
|---|
| [162] | 32 | </td> |
|---|
| [273] | 33 | </tr> |
|---|
| [162] | 34 | |
|---|
| 35 | <tr class="prop"> |
|---|
| 36 | <td valign="top" class="name"> |
|---|
| [118] | 37 | <label for="description">Description:</label> |
|---|
| 38 | </td> |
|---|
| [273] | 39 | <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'description','errors')}"> |
|---|
| [331] | 40 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:sectionInstance,field:'description')}"/> |
|---|
| [118] | 41 | </td> |
|---|
| [331] | 42 | </tr> |
|---|
| 43 | |
|---|
| 44 | <tr class="prop"> |
|---|
| 45 | <td valign="top" class="name"> |
|---|
| 46 | <label for="comment">Comment:</label> |
|---|
| 47 | </td> |
|---|
| 48 | <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'comment','errors')}"> |
|---|
| 49 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:sectionInstance, field:'comment')}</textarea> |
|---|
| 50 | </td> |
|---|
| [273] | 51 | </tr> |
|---|
| [118] | 52 | |
|---|
| 53 | <tr class="prop"> |
|---|
| 54 | <td valign="top" class="name"> |
|---|
| [273] | 55 | <label for="isActive">Is Active:</label> |
|---|
| [118] | 56 | </td> |
|---|
| [273] | 57 | <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'isActive','errors')}"> |
|---|
| 58 | <g:checkBox name="isActive" value="${sectionInstance?.isActive}" ></g:checkBox> |
|---|
| [118] | 59 | </td> |
|---|
| 60 | </tr> |
|---|
| 61 | |
|---|
| 62 | <tr class="prop"> |
|---|
| 63 | <td valign="top" class="name"> |
|---|
| [162] | 64 | <label for="department">Department:</label> |
|---|
| [118] | 65 | </td> |
|---|
| [273] | 66 | <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}"> |
|---|
| 67 | <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select> |
|---|
| [308] | 68 | <p> |
|---|
| 69 | <g:link controller="departmentDetailed" action="create">Add Department</g:link> |
|---|
| 70 | </p> |
|---|
| [118] | 71 | </td> |
|---|
| 72 | </tr> |
|---|
| 73 | |
|---|
| [122] | 74 | <tr class="prop"> |
|---|
| 75 | <td valign="top" class="name"> |
|---|
| 76 | <label for="site">Site:</label> |
|---|
| 77 | </td> |
|---|
| [273] | 78 | <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'site','errors')}"> |
|---|
| 79 | <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${sectionInstance?.site?.id}" ></g:select> |
|---|
| [385] | 80 | <p> |
|---|
| 81 | <g:link controller="siteDetailed" action="create">Add Site</g:link> |
|---|
| 82 | </p> |
|---|
| [122] | 83 | </td> |
|---|
| 84 | </tr> |
|---|
| 85 | |
|---|
| [118] | 86 | </tbody> |
|---|
| 87 | </table> |
|---|
| 88 | </div> |
|---|
| 89 | <div class="buttons"> |
|---|
| 90 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
|---|
| 91 | </div> |
|---|
| 92 | </g:form> |
|---|
| 93 | </div> |
|---|
| 94 | </body> |
|---|
| 95 | </html> |
|---|