| [19] | 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 PersonGroup</title> | 
|---|
 | 8 |     </head> | 
|---|
 | 9 |     <body> | 
|---|
 | 10 |         <div class="nav"> | 
|---|
 | 11 |             <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> | 
|---|
 | 12 |             <span class="menuButton"><g:link class="list" action="list">PersonGroup List</g:link></span> | 
|---|
 | 13 |             <span class="menuButton"><g:link class="create" action="create">New PersonGroup</g:link></span> | 
|---|
 | 14 |         </div> | 
|---|
 | 15 |         <div class="body"> | 
|---|
 | 16 |             <h1>Edit PersonGroup</h1> | 
|---|
 | 17 |             <g:if test="${flash.message}"> | 
|---|
 | 18 |             <div class="message">${flash.message}</div> | 
|---|
 | 19 |             </g:if> | 
|---|
 | 20 |             <g:hasErrors bean="${personGroupInstance}"> | 
|---|
 | 21 |             <div class="errors"> | 
|---|
 | 22 |                 <g:renderErrors bean="${personGroupInstance}" as="list" /> | 
|---|
 | 23 |             </div> | 
|---|
 | 24 |             </g:hasErrors> | 
|---|
 | 25 |             <g:form method="post" > | 
|---|
 | 26 |                 <input type="hidden" name="id" value="${personGroupInstance?.id}" /> | 
|---|
 | 27 |                 <div class="dialog"> | 
|---|
 | 28 |                     <table> | 
|---|
 | 29 |                         <tbody> | 
|---|
 | 30 |                          | 
|---|
 | 31 |                             <tr class="prop"> | 
|---|
 | 32 |                                 <td valign="top" class="name"> | 
|---|
| [35] | 33 |                                     <label for="name">Name:</label> | 
|---|
| [19] | 34 |                                 </td> | 
|---|
| [35] | 35 |                                 <td valign="top" class="value ${hasErrors(bean:personGroupInstance,field:'name','errors')}"> | 
|---|
 | 36 |                                     <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:personGroupInstance,field:'name')}"/> | 
|---|
| [19] | 37 |                                 </td> | 
|---|
 | 38 |                             </tr>  | 
|---|
 | 39 |                          | 
|---|
 | 40 |                             <tr class="prop"> | 
|---|
 | 41 |                                 <td valign="top" class="name"> | 
|---|
| [35] | 42 |                                     <label for="description">Description:</label> | 
|---|
| [19] | 43 |                                 </td> | 
|---|
| [35] | 44 |                                 <td valign="top" class="value ${hasErrors(bean:personGroupInstance,field:'description','errors')}"> | 
|---|
 | 45 |                                     <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:personGroupInstance,field:'description')}"/> | 
|---|
| [19] | 46 |                                 </td> | 
|---|
 | 47 |                             </tr>  | 
|---|
 | 48 |                          | 
|---|
 | 49 |                             <tr class="prop"> | 
|---|
 | 50 |                                 <td valign="top" class="name"> | 
|---|
| [35] | 51 |                                     <label for="isActive">Is Active:</label> | 
|---|
| [19] | 52 |                                 </td> | 
|---|
| [35] | 53 |                                 <td valign="top" class="value ${hasErrors(bean:personGroupInstance,field:'isActive','errors')}"> | 
|---|
 | 54 |                                     <g:checkBox name="isActive" value="${personGroupInstance?.isActive}" ></g:checkBox> | 
|---|
| [19] | 55 |                                 </td> | 
|---|
 | 56 |                             </tr>  | 
|---|
 | 57 |                          | 
|---|
 | 58 |                             <tr class="prop"> | 
|---|
 | 59 |                                 <td valign="top" class="name"> | 
|---|
| [25] | 60 |                                     <label for="personGroupType">Person Group Type:</label> | 
|---|
 | 61 |                                 </td> | 
|---|
 | 62 |                                 <td valign="top" class="value ${hasErrors(bean:personGroupInstance,field:'personGroupType','errors')}"> | 
|---|
 | 63 |                                     <g:select optionKey="id" from="${PersonGroupType.list()}" name="personGroupType.id" value="${personGroupInstance?.personGroupType?.id}" ></g:select> | 
|---|
 | 64 |                                 </td> | 
|---|
 | 65 |                             </tr>  | 
|---|
 | 66 |                          | 
|---|
 | 67 |                             <tr class="prop"> | 
|---|
 | 68 |                                 <td valign="top" class="name"> | 
|---|
| [19] | 69 |                                     <label for="persons">Persons:</label> | 
|---|
 | 70 |                                 </td> | 
|---|
 | 71 |                                 <td valign="top" class="value ${hasErrors(bean:personGroupInstance,field:'persons','errors')}"> | 
|---|
 | 72 |                                      | 
|---|
 | 73 | <ul> | 
|---|
 | 74 | <g:each var="p" in="${personGroupInstance?.persons?}"> | 
|---|
 | 75 |     <li><g:link controller="person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li> | 
|---|
 | 76 | </g:each> | 
|---|
 | 77 | </ul> | 
|---|
 | 78 | <g:link controller="person" params="['personGroup.id':personGroupInstance?.id]" action="create">Add Person</g:link> | 
|---|
 | 79 |  | 
|---|
 | 80 |                                 </td> | 
|---|
 | 81 |                             </tr>  | 
|---|
 | 82 |                          | 
|---|
 | 83 |                         </tbody> | 
|---|
 | 84 |                     </table> | 
|---|
 | 85 |                 </div> | 
|---|
 | 86 |                 <div class="buttons"> | 
|---|
 | 87 |                     <span class="button"><g:actionSubmit class="save" value="Update" /></span> | 
|---|
 | 88 |                     <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> | 
|---|
 | 89 |                 </div> | 
|---|
 | 90 |             </g:form> | 
|---|
 | 91 |         </div> | 
|---|
 | 92 |     </body> | 
|---|
 | 93 | </html> | 
|---|