[162] | 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 Department</title> |
---|
[412] | 8 | <nav:resources override="true"/> |
---|
[162] | 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
[412] | 12 | <nav:renderSubItems group="navAlt"/> |
---|
[162] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
[412] | 15 | <g:render template="/shared/messages" /> |
---|
[162] | 16 | <g:hasErrors bean="${departmentInstance}"> |
---|
| 17 | <div class="errors"> |
---|
| 18 | <g:renderErrors bean="${departmentInstance}" as="list" /> |
---|
| 19 | </div> |
---|
| 20 | </g:hasErrors> |
---|
| 21 | <g:form method="post" > |
---|
| 22 | <input type="hidden" name="id" value="${departmentInstance?.id}" /> |
---|
| 23 | <input type="hidden" name="version" value="${departmentInstance?.version}" /> |
---|
| 24 | <div class="dialog"> |
---|
| 25 | <table> |
---|
| 26 | <tbody> |
---|
| 27 | |
---|
| 28 | <tr class="prop"> |
---|
| 29 | <td valign="top" class="name"> |
---|
[164] | 30 | <label for="name">Name:</label> |
---|
[162] | 31 | </td> |
---|
[164] | 32 | <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}"> |
---|
[333] | 33 | <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/> |
---|
[162] | 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:departmentInstance,field:'description','errors')}"> |
---|
[333] | 42 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> |
---|
[162] | 43 | </td> |
---|
| 44 | </tr> |
---|
| 45 | |
---|
| 46 | <tr class="prop"> |
---|
| 47 | <td valign="top" class="name"> |
---|
[333] | 48 | <label for="comment">Comment:</label> |
---|
| 49 | </td> |
---|
| 50 | <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'comment','errors')}"> |
---|
| 51 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:departmentInstance, field:'comment')}</textarea> |
---|
| 52 | </td> |
---|
| 53 | </tr> |
---|
| 54 | |
---|
| 55 | <tr class="prop"> |
---|
| 56 | <td valign="top" class="name"> |
---|
[162] | 57 | <label for="isActive">Is Active:</label> |
---|
| 58 | </td> |
---|
| 59 | <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'isActive','errors')}"> |
---|
| 60 | <g:checkBox name="isActive" value="${departmentInstance?.isActive}" ></g:checkBox> |
---|
| 61 | </td> |
---|
| 62 | </tr> |
---|
| 63 | |
---|
| 64 | <tr class="prop"> |
---|
| 65 | <td valign="top" class="name"> |
---|
[268] | 66 | <label for="departmentExtendedAttributes">Department Extended Attributes:</label> |
---|
[162] | 67 | </td> |
---|
[268] | 68 | <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'departmentExtendedAttributes','errors')}"> |
---|
[164] | 69 | |
---|
| 70 | <ul> |
---|
[268] | 71 | <g:each var="d" in="${departmentInstance?.departmentExtendedAttributes?}"> |
---|
[288] | 72 | <li><g:link controller="departmentExtendedAttributeDetailed" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li> |
---|
[164] | 73 | </g:each> |
---|
| 74 | </ul> |
---|
[410] | 75 | <g:link controller="departmentExtendedAttributeDetailed" params="['department.id':departmentInstance?.id]" action="create">+Add Extended Attribute</g:link> |
---|
[164] | 76 | |
---|
[162] | 77 | </td> |
---|
| 78 | </tr> |
---|
| 79 | |
---|
| 80 | <tr class="prop"> |
---|
| 81 | <td valign="top" class="name"> |
---|
[272] | 82 | <label for="persons">Persons:</label> |
---|
| 83 | </td> |
---|
| 84 | <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'persons','errors')}"> |
---|
| 85 | |
---|
| 86 | <ul> |
---|
| 87 | <g:each var="p" in="${departmentInstance?.persons?}"> |
---|
| 88 | <li><g:link controller="person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li> |
---|
| 89 | </g:each> |
---|
| 90 | </ul> |
---|
[410] | 91 | <g:link controller="person" params="['department.id':departmentInstance?.id]" action="create">+Add Person</g:link> |
---|
[272] | 92 | |
---|
| 93 | </td> |
---|
| 94 | </tr> |
---|
| 95 | |
---|
| 96 | <tr class="prop"> |
---|
| 97 | <td valign="top" class="name"> |
---|
[268] | 98 | <label for="sections">Sections:</label> |
---|
[162] | 99 | </td> |
---|
[268] | 100 | <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'sections','errors')}"> |
---|
[162] | 101 | |
---|
| 102 | <ul> |
---|
[268] | 103 | <g:each var="s" in="${departmentInstance?.sections?}"> |
---|
[288] | 104 | <li><g:link controller="sectionDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
[162] | 105 | </g:each> |
---|
| 106 | </ul> |
---|
[410] | 107 | <g:link controller="sectionDetailed" params="['department.id':departmentInstance?.id]" action="create">+Add Section</g:link> |
---|
[162] | 108 | |
---|
| 109 | </td> |
---|
| 110 | </tr> |
---|
| 111 | |
---|
| 112 | </tbody> |
---|
| 113 | </table> |
---|
| 114 | </div> |
---|
| 115 | <div class="buttons"> |
---|
| 116 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
[412] | 117 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
[162] | 118 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 119 | </div> |
---|
| 120 | </g:form> |
---|
| 121 | </div> |
---|
| 122 | </body> |
---|
| 123 | </html> |
---|