| [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>Edit 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 |             <span class="menuButton"><g:link class="create" action="create">New SystemSection</g:link></span> | 
|---|
 | 13 |         </div> | 
|---|
 | 14 |         <div class="body"> | 
|---|
 | 15 |             <h1>Edit SystemSection</h1> | 
|---|
 | 16 |             <g:if test="${flash.message}"> | 
|---|
 | 17 |             <div class="message">${flash.message}</div> | 
|---|
 | 18 |             </g:if> | 
|---|
 | 19 |             <g:hasErrors bean="${systemSectionInstance}"> | 
|---|
 | 20 |             <div class="errors"> | 
|---|
 | 21 |                 <g:renderErrors bean="${systemSectionInstance}" as="list" /> | 
|---|
 | 22 |             </div> | 
|---|
 | 23 |             </g:hasErrors> | 
|---|
 | 24 |             <g:form method="post" > | 
|---|
 | 25 |                 <input type="hidden" name="id" value="${systemSectionInstance?.id}" /> | 
|---|
 | 26 |                 <input type="hidden" name="version" value="${systemSectionInstance?.version}" /> | 
|---|
 | 27 |                 <div class="dialog"> | 
|---|
 | 28 |                     <table> | 
|---|
 | 29 |                         <tbody> | 
|---|
 | 30 |                          | 
|---|
 | 31 |                             <tr class="prop"> | 
|---|
 | 32 |                                 <td valign="top" class="name"> | 
|---|
| [122] | 33 |                                     <label for="assets">Assets:</label> | 
|---|
| [118] | 34 |                                 </td> | 
|---|
| [122] | 35 |                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'assets','errors')}"> | 
|---|
| [118] | 36 |                                      | 
|---|
 | 37 | <ul> | 
|---|
| [122] | 38 | <g:each var="a" in="${systemSectionInstance?.assets?}"> | 
|---|
 | 39 |     <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> | 
|---|
| [118] | 40 | </g:each> | 
|---|
 | 41 | </ul> | 
|---|
| [122] | 42 | <g:link controller="asset" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link> | 
|---|
| [118] | 43 |  | 
|---|
 | 44 |                                 </td> | 
|---|
 | 45 |                             </tr>  | 
|---|
 | 46 |                          | 
|---|
 | 47 |                             <tr class="prop"> | 
|---|
 | 48 |                                 <td valign="top" class="name"> | 
|---|
| [162] | 49 |                                     <label for="costCode">Cost Code:</label> | 
|---|
 | 50 |                                 </td> | 
|---|
 | 51 |                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}"> | 
|---|
 | 52 |                                     <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/> | 
|---|
 | 53 |                                 </td> | 
|---|
 | 54 |                             </tr>  | 
|---|
 | 55 |                          | 
|---|
 | 56 |                             <tr class="prop"> | 
|---|
 | 57 |                                 <td valign="top" class="name"> | 
|---|
 | 58 |                                     <label for="department">Department:</label> | 
|---|
 | 59 |                                 </td> | 
|---|
 | 60 |                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}"> | 
|---|
 | 61 |                                     <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select> | 
|---|
 | 62 |                                 </td> | 
|---|
 | 63 |                             </tr>  | 
|---|
 | 64 |                          | 
|---|
 | 65 |                             <tr class="prop"> | 
|---|
 | 66 |                                 <td valign="top" class="name"> | 
|---|
| [118] | 67 |                                     <label for="description">Description:</label> | 
|---|
 | 68 |                                 </td> | 
|---|
 | 69 |                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}"> | 
|---|
 | 70 |                                     <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/> | 
|---|
 | 71 |                                 </td> | 
|---|
 | 72 |                             </tr>  | 
|---|
 | 73 |                          | 
|---|
 | 74 |                             <tr class="prop"> | 
|---|
 | 75 |                                 <td valign="top" class="name"> | 
|---|
 | 76 |                                     <label for="isActive">Is Active:</label> | 
|---|
 | 77 |                                 </td> | 
|---|
 | 78 |                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}"> | 
|---|
 | 79 |                                     <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox> | 
|---|
 | 80 |                                 </td> | 
|---|
 | 81 |                             </tr>  | 
|---|
 | 82 |                          | 
|---|
 | 83 |                             <tr class="prop"> | 
|---|
 | 84 |                                 <td valign="top" class="name"> | 
|---|
| [122] | 85 |                                     <label for="maintenanceActions">Maintenance Actions:</label> | 
|---|
| [118] | 86 |                                 </td> | 
|---|
| [122] | 87 |                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'maintenanceActions','errors')}"> | 
|---|
 | 88 |                                      | 
|---|
 | 89 | <ul> | 
|---|
 | 90 | <g:each var="m" in="${systemSectionInstance?.maintenanceActions?}"> | 
|---|
 | 91 |     <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> | 
|---|
 | 92 | </g:each> | 
|---|
 | 93 | </ul> | 
|---|
 | 94 | <g:link controller="maintenanceAction" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link> | 
|---|
| [118] | 95 |  | 
|---|
 | 96 |                                 </td> | 
|---|
 | 97 |                             </tr>  | 
|---|
 | 98 |                          | 
|---|
 | 99 |                             <tr class="prop"> | 
|---|
 | 100 |                                 <td valign="top" class="name"> | 
|---|
 | 101 |                                     <label for="name">Name:</label> | 
|---|
 | 102 |                                 </td> | 
|---|
 | 103 |                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}"> | 
|---|
 | 104 |                                     <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/> | 
|---|
 | 105 |                                 </td> | 
|---|
 | 106 |                             </tr>  | 
|---|
 | 107 |                          | 
|---|
| [122] | 108 |                             <tr class="prop"> | 
|---|
 | 109 |                                 <td valign="top" class="name"> | 
|---|
 | 110 |                                     <label for="site">Site:</label> | 
|---|
 | 111 |                                 </td> | 
|---|
 | 112 |                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}"> | 
|---|
 | 113 |                                     <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select> | 
|---|
 | 114 |                                 </td> | 
|---|
 | 115 |                             </tr>  | 
|---|
 | 116 |                          | 
|---|
| [118] | 117 |                         </tbody> | 
|---|
 | 118 |                     </table> | 
|---|
 | 119 |                 </div> | 
|---|
 | 120 |                 <div class="buttons"> | 
|---|
 | 121 |                     <span class="button"><g:actionSubmit class="save" value="Update" /></span> | 
|---|
 | 122 |                     <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> | 
|---|
 | 123 |                 </div> | 
|---|
 | 124 |             </g:form> | 
|---|
 | 125 |         </div> | 
|---|
 | 126 |     </body> | 
|---|
 | 127 | </html> | 
|---|