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